Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add to Cart does not work


robertk1

Recommended Posts

Posted

When I hit the Add to Cart button, products are not added to the cart. It always remains "Your Shopping Cart is empty!"

 

We are using the Plesk 8.1 installer with no modifcations (yet). This is driving me crazy, as I have 8 carts to move over to a new server!

 

see it here: osCommerce Test Site

Please feel free to go there and add items to the cart. I'll be deleting this one once the solution is found ......

 

Any ideas where to begin looking? Your help is appreciated..... Thanks!

Posted
When I hit the Add to Cart button, products are not added to the cart. It always remains "Your Shopping Cart is empty!"

 

We are using the Plesk 8.1 installer with no modifcations (yet). This is driving me crazy, as I have 8 carts to move over to a new server!

 

see it here: osCommerce Test Site

Please feel free to go there and add items to the cart. I'll be deleting this one once the solution is found ......

 

Any ideas where to begin looking? Your help is appreciated..... Thanks!

Depending on your version of php, it may not like certain superglobal references, such as $HTTP_POST_VARS instead of $_POST... Easiest way to debug this would be to put a check in includes/application_top.php and have it print_r($HTTP_POST_VARS) inside of the add_product section of the $action switch statement...

 

Richard.

Richard Lindsey

Posted
Depending on your version of php, it may not like certain superglobal references, such as $HTTP_POST_VARS instead of $_POST... Easiest way to debug this would be to put a check in includes/application_top.php and have it print_r($HTTP_POST_VARS) inside of the add_product section of the $action switch statement...

 

Richard.

 

Adding this crashes the cart ..... any other suggestions that may help? I am investigating the php issue.

Thanks!

Posted
Adding this crashes the cart ..... any other suggestions that may help? I am investigating the php issue.

Thanks!

Define "crashes the cart", because just adding that line shouldn't do anything so dramatic... It should print out that superglobal array and then fail to redirect to the shopping_cart page since output was already sent to the screen...

 

Richard.

Richard Lindsey

Posted
Adding this crashes the cart ..... any other suggestions that may help? I am investigating the php issue.

Thanks!

Define "crashes the cart", because just adding that line shouldn't do anything so dramatic... It should print out that superglobal array and then fail to redirect to the shopping_cart page since output was already sent to the screen...

 

Richard.

Richard Lindsey

Posted
Define "crashes the cart", because just adding that line shouldn't do anything so dramatic... It should print out that superglobal array and then fail to redirect to the shopping_cart page since output was already sent to the screen...

 

Richard.

Doh, stupid double-posting...

 

Richard.

Richard Lindsey

Posted
Define "crashes the cart", because just adding that line shouldn't do anything so dramatic... It should print out that superglobal array and then fail to redirect to the shopping_cart page since output was already sent to the screen...

 

Richard.

 

If you would be so kind, please email me the modified file and I will insert it. After adding your mod, the screen just showed 100% blank. I strongly suspect I was inserting it into the wrong area. Email me HERE

 

Thank you for your kind help!

Posted
If you would be so kind, please email me the modified file and I will insert it. After adding your mod, the screen just showed 100% blank. I strongly suspect I was inserting it into the wrong area. Email me HERE

 

Thank you for your kind help!

Ok, instead of that, how about you send me your application_top.php file, and I'll modify it and send it back... That way, in case you or someone else have made changes to it, those changes are still in there along with mine... You can email it to me at rllindsey <at> gmail.com...

 

Richard.

Richard Lindsey

Posted
Ok, instead of that, how about you send me your application_top.php file, and I'll modify it and send it back... That way, in case you or someone else have made changes to it, those changes are still in there along with mine... You can email it to me at rllindsey <at> gmail.com...

 

Richard.

 

 

Sent --- thanks

Posted
Sent --- thanks

Sorry, just checked the forums for today and saw this, and it had gone to my spam folder in email so I didn't notice it come in yesterday... It's on its way back to you now...

 

Richard.

Richard Lindsey

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...