Contributions
Delete cart item when quantity set to 0
Add this line to delete cart items when the item quantity is set to 0 by the user:
/includes/classes/shopping_cart.php:113
if ($quantity==0) $this->remove($products_id);
Expand All / Collapse All
It works, you only have to put the code above line 113!
nice little code :-)
Tested 29.04.2005
It works just fine ;-)
Great code, but it doesn't work with my shop version, osCommerce 2.2-MS2.
See under www.ledstore.ch
Add this line to delete cart items when the item quantity is set to 0 by the user:
/includes/classes/shopping_cart.php:113
if ($quantity==0) $this->remove($products_id);
Note: Contributions are used at own risk.