oh and when a product is removed, can i make it go back to the index page?
oh and when a product is removed, can i make it go back to the index page?
nobody?
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 ...
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
For some reason its not working... i added the form field and everything... any ideas?
still cant figure it out....