My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 144: Changing quantity of an item to zero does not remove it from the cart
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  horacio.duran
Closed:  Dec 2007
Type-Defect
Priority-Medium


Sign in to add a comment
 
Reported by lucielejard, Nov 16, 2007
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.

 
Comment 1 by horacio.duran, Dec 13, 2007
(No comment was entered for this change.)
Status: Started
Owner: horacio.duran
Comment 2 by horacio.duran, Dec 18, 2007
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.
Status: Fixed
Sign in to add a comment

Hosted by Google Code