Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem with passing variables in shopping_cart.php


danvanw

Recommended Posts

The problem I have had is with 'catalog/shopping_cart.php' where no form input is being passed back to the cart when you push the update button.

 

Can anybody give me some clues as to what could be happening?

I am using version 2.2-CVS with PHP Version 4.3.0.

 

I suspect it could be something to do with the class 'catalog/includes/classes/shopping_cart.php'. But I could be wrong!

 

Thanks,

Dan

Dan

Link to comment
Share on other sites

I've added hidden input to the form in the shopping cart (the one that gets submitted when you press "update"); it's not there in HTTP_POST_VARS.

Something "special" is happening with this form, and when I modify the shopping cart class it breaks. Is it the cart contents array perhaps? I've added another field, but I can't imagine how these two things could possibly be related. I've reverted to the original shopping cart class file and it works, but the HTML in the form looks exactly the same with the original and the modified shopping cart. Needless to say, I need to make these modifications. Help!

Dan

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...