in reply to Re: Re: Re: Need some help to review code
in thread Need some help to review code
Hi Derby,
I think I found the root of my problem. It is located in the sub format_cart_html section of the code. In this subroutine I created a form to post a new quantity when entered in the quantity. Here's what's happening: I add an item with a quantity of 2 to my cart. I then add another item with a quantity of 5 to my cart. When I add the item with 5, it also changes my item of quantity 2 to a 5.
It appears to me that the form I created and the parameters I am using are overriding the values of previous items that were added with the most recent value that is being added.
Can you take a look at this section of code and give me some opinions?
Thanks.
Helen