close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Add To Cart Button Not Working

Thread began 10/27/2009 8:25 am by latellogroup375248 | Last modified 10/27/2009 4:18 pm by latellogroup375248 | 17095 views | 18 replies |

latellogroup375248

Add To Cart Button Not Working

Since I have loaded up to my server and gone live the "add to cart" button has stopped working. All it does is refresh the current page. Can someone please help give details on how to fix this error? Please be specific.Products_Detail.php?ProductID=4 Big dumb animal here learning and getting smarter everyday, LOL.

Sign in to reply to this post

Office Guy-172461

It points to:
btn_addtocart.png

I think you put the path to the image instead of the link.

Sign in to reply to this post

latellogroup375248

when i click on the image in design view in DWcs4 I see a place for the source but no place for a link. So I am not sure how I would make this link to put in the cart. Also would this button possibly supposed to be associated with a recordset? when i click on the "source" to point to a file I have to choose between "data sources" or "file system". In data sources the first thing is "Recordset (WADA Products)" when I click to open this I get this error:

MySQL Error#: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2

Could this be the problem and if so how would I fix it?

Sign in to reply to this post

Office Guy-172461

MySQL Reserved Words

You are probably using a reserved word.

156/

Sign in to reply to this post

Jason ByrnesWebAssist

Sorry Office Guy, lets get back to the beginning on this one.

The image button is supposed to link to the image source file. It is used to submit the form. As for the recordset, it is to complex for Dreamweaver to parse so throws that error.


latellogroup,

there is probably a php error occurring when adding the item to the cart. you say it is working on your local testing server? it is only when pushed to the remote server that there is a problem?

add the following code to line 1 of your page:

php:
<?php 

error_reporting
(E_ALL);
ini_set('display_errors','on');
?>



This will display any PHP errors that may be occuring on the page.

Sign in to reply to this post

latellogroup375248

Ok, Did this and I am getting the following error. Wanted to post it before I started looking for it Thanks

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/l/i/v/livingtrue/html/Products_Detail.php:5) in /home/content/l/i/v/livingtrue/html/WA_eCart/WA_eCart_Definition_PHP.php on line 479

The following is what is on my lines 479-482 in my "product_details.php. Couldn't tell you what is right or wrong on this one?

<div id="checkingAvail" style="display:none" > Checking availability. </div>
<div id="notSold" <?php echo(($row_WADAProducts["ProductLive"] == 0)?'':'style="display:none"'); ?> >
<div id="notSold2" <?php echo(($row_WADAProducts["ProductLive"] == 0)?'':'style="display:none"'); ?> >
<div id="notSold3" <?php echo(($row_WADAProducts["ProductLive"] == 0)?'':'style="display:none"'); ?> >This item is not available online. </div>

Sign in to reply to this post

Jason ByrnesWebAssist

the error is occurring on line 4 or 5 of the product detail page:
output started at /home/content/l/i/v/livingtrue/html/Products_Detail.php:5


Look for blank space after a closing PHP tag:
"?> "

or a blank line between a closing php tag and an opening one:
...?>

<?php...



you may also be running into a session problem on the server. Try uploading the attached file and running it.

Attached Files
sessionTest.zip
Sign in to reply to this post

latellogroup375248

Thank you. I am looking and downloading now. Will update as soon as I have something new.

Sign in to reply to this post

latellogroup375248

Ok uploaded the sessions page opened it up and clicked and the variable did not change which if I understand is good. Second found some spaces on lines 4 and 5 and deleted them. Now when i go to the products detail page there is nothing and a link at the top of the page that says: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/l/i/v/livingtrue/html/Products_Detail.php:4) in /home/content/l/i/v/livingtrue/html/WA_eCart/WA_eCart_Definition_PHP.php on line 479

when I click on the link it gives the following error:


Not Found
The requested URL /function.session-start was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.33 Server at www.livingtrue2me.com Port 80

Am I getting better or worse????

Also should I undo any of the stuff I have done so far. I.e upload the sessions page etc.

Sign in to reply to this post

Jason ByrnesWebAssist

There is still a problem at line 3 or 4, send a copy of the deail page so I can take a look at the code.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...