close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

add to cart button not working

Thread began 9/08/2009 10:44 am by andykeltic379625 | Last modified 9/14/2009 3:48 pm by Jason Byrnes | 942 views | 5 replies |

andykeltic379625

add to cart button not working

My site works fine on my local server but when it's uploaded to my server the 'add to cart' buttons don't add anything to my shopping cart. They redirect OK but the shopping cart is empty.

any ideas please.

Thanks a lot.

Sign in to reply to this post

Jason ByrnesWebAssist

One thins I would suspect is a session management problem on the server.

Add the following to your add to cart page and the cart page just after the <body> tag:

php:
<?php 
if(!session_id()) session_start();
echo 
"Session ID = ".session_id(); 
?>



the session ID should stay the same on both pages. If it changes, you will need to contact the host to have them look into the session management settings on the php server.

If you continue to have problems, send a link to your add to cart page soI can investigate further..

Sign in to reply to this post

andykeltic379625

add to cart button note working

added the following as i was told to both pages but still not working

<?php
if(!session_id()) session_start();
echo "Session ID = ".session_id();
?>

the pages link is as follows

ballcaps.php

Sign in to reply to this post

Jason ByrnesWebAssist

That code wasn't intended to fix any problems, just check to see if session management where working correctly be displaying the session ID on the page, if the session ID is not the same when you visit each page, the session contents wont be kept.

When I visit you page, I am not able to reproduce a problem, I add an item to the page and the cart page displays the item I just added.


Do you have cookies enabled in your browser? Can you try on another computer? Or in another browser?

Sign in to reply to this post

andykeltic379625

Add to cart button

Thanks for looking, managed to sort the night i posted. Thanks very much Andy

Sign in to reply to this post

Jason ByrnesWebAssist

You're welcome.

Sign in to reply to this post

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...