I have a shopping cart that is working great, except there are 2 things I want to change (more than likely the same function would work for both of these) and am not sure how to go about it.....
1) If a shopper adds an item to the cart, then adds another quantity of the same item, it shows 2 times instead of updating the cookie. Is there an easy way to handle this?
2) On the checkout page, I would like the shopper to be able to update the quantity there also through basicall an input field that could either work with an onChange or with an update button.
My code is pretty straight forward, but this is something I have never had to work with before and any help would be appreciated. If anyone could just give me a general push in the right direction, or a piece of sample code, I can probably stumble my way from there.
Thanks in advance,
Jim
1) If a shopper adds an item to the cart, then adds another quantity of the same item, it shows 2 times instead of updating the cookie. Is there an easy way to handle this?
2) On the checkout page, I would like the shopper to be able to update the quantity there also through basicall an input field that could either work with an onChange or with an update button.
My code is pretty straight forward, but this is something I have never had to work with before and any help would be appreciated. If anyone could just give me a general push in the right direction, or a piece of sample code, I can probably stumble my way from there.
Thanks in advance,
Jim