Can anyone tell me how to make it possible for a customer to delete an item from this shopping cart summary? How would I add an form input checkbox to delete? I'm a complete noob as I just stumbled across Zen Cart today.
Can anyone tell me how to make it possible for a customer to delete an item from this shopping cart summary? How would I add an form input checkbox to delete? I'm a complete noob as I just stumbled across Zen Cart today.
You don't, you need to go to the shopping cart page itself.
Please do not PM for support issues: a private solution doesn't benefit the community.
Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.
What I had in mind was creating a more flexible cart summary in the sidebox with the ability to remove items from the cart without having to go to the actual shopping cart page. I would still have the shopping cart page but I thought the sidebox cart summary would be a nice feature.
Some place there is code that is writing out the contents of adding an item. I just want to delete as well.![]()
You could try adapting from the shopping_cart this line of code by changing the products_id:
PHP Code:<a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, 'action=remove_product&product_id=' . $product['id']); ?>"><?php echo zen_image($template->get_template_dir(ICON_IMAGE_TRASH, DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . ICON_IMAGE_TRASH, ICON_TRASH_ALT); ?></a>
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!