kapilt / getpaid

Automatically exported from code.google.com/p/getpaid
0 stars 0 forks source link

Changing quantity of an item to zero does not remove it from the cart #144

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add a product to your cart
2. Change the quantity to 0 and update the cart
3. The item is still there with the quantity 0

What is the expected output? What do you see instead?
The payable line should disappear (be deleted) by default if the quantity is 0.

Original issue reported on code.google.com by lucielej...@gmail.com on 16 Nov 2007 at 4:20

GoogleCodeExporter commented 8 years ago

Original comment by horacio....@gmail.com on 13 Dec 2007 at 7:23

GoogleCodeExporter commented 8 years ago
Ok finally I added a delete method to LineItemFactory then added functinality 
to the
handle_update method on the cart to call delete on items with quantity 0. And of
course tests for this.

Original comment by horacio....@gmail.com on 18 Dec 2007 at 5:20