PDA

View Full Version : After clicking Add To Cart the shopping is still empty


pledge204907
04-02-2009, 03:41 AM
Hi,

I've created an add to cart button and it seems to populate the cookies, however when I redirect to the cart, it is always empty. Any help or ideas would be very welcome.

Thanks,

Paul.

pledge204907
04-02-2009, 08:57 AM
To shed a little more light on it, I have got the cart to work now, but only if I disable the RedirectAfter....

Ray Borduin
04-02-2009, 11:46 AM
What is your server language? what version of eCart?

pledge204907
04-03-2009, 12:43 AM
Sorry Ray, I should have thought of that. It's PHP version 4.1.5 of eCart in Dreamweaver CS4.

Ray Borduin
04-03-2009, 07:35 AM
What php version? is it a linux or windows server?

You may need to add session_commit() before the redirect in some cases I seem to recall this from earlier versions of php on linux servers... you might want to give it a try and see if that fixes it.

pledge204907
04-03-2009, 08:00 AM
Thank Ray. That's done it! FYI it's a windows server running PHP version 5.0.2.

Thanks again!

pledge204907
04-03-2009, 08:26 AM
Sorry Ray, spoke too soon. The button now redirects, but doesn't add anything to the cart.

Ray Borduin
04-03-2009, 08:52 AM
Please post a support incident. We will have an engineer debug this with you to determine the problem and solution. I'm stumped.