Jump to content

Archived

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

danvanw

Problem with passing variables in shopping_cart.php

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

×