Originally Posted by
DrByte
Sounds like you don't want a "remove", but rather an "update" option.
So, the process would go something like this:
a. you need to create a form, instead of just a clickable A HREF (see the real shopping cart page as an example)
NOTE: A separate form needs to surround each product in the sidebox, complete with its own submit button, etc.
b. set the form action to point to FILENAME_DEFAULT instead of FILENAME_SHOPPING_CART (so goes to index page)
c. you'll notice that the shopping-cart example uses "update_quantity" instead of "remove_product" for its cart action, so follow that example.
d. make the qty field a hidden field so it's not visible, but also set its value to be 1 less than the current "real" qty
Now, when they click on the form's submit button, it'll do the update.
Hope that helps ...
Bookmarks