Contributions

Features (Category Index)
Search: 

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

Just more info if this file was modified 27 Aug 2005

Better instructions

Detailed Instructions 25 Jul 2005
It works ;-) Tor Olav Brueland 28 Apr 2005
doesn't work Cosmo 18 Apr 2005
Delete cart item when quantity set to 0 Benjamin Allfree 14 Apr 2005

Note: Contributions are used at own risk.