Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Cart
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Mar 2011 at 18:50 UTC
Updated:
6 Apr 2011 at 03:31 UTC
Jump to comment: Most recent file
Comments
Comment #1
torgospizzaI agree. This is how Ubercart behaves, and how other shopping systems like Amazon behave. Plus, it's a faster way of deleting the entire cart - setting every qty to 0, rather than hitting every Remove button.
My two cents.
Comment #2
pcambraHere is the change to allow 0 qty for deleting line items
Not really sure what info is needed for the commit:
Repo: git.drupal.org:sandbox/pcambra/1081200.git
Branch: 1080342
Diff: http://drupalcode.org/sandbox/pcambra/1081200.git/commitdiff/01acdd66348...
Comment #3
himerus commentedThis works like a champ for me... everything works as expected.
Remove button (per line item) functionality remains unchanged
Setting all or individual items to 0 quantity and updating cart removes the appropriate line items as expected.
Thank you for this fix! Marking RTBC. Please feel free to mark back to review if you feel it needs more testing. Normally I don't mark RTBC if I'm the first/only tester, but this one seems like a pretty simple patch.
Great addition.
Comment #4
pcambraOh, I forgot to say that I didn't change the order management page for qty = 0 as we have already a checkbox for removing there.
Comment #5
rszrama commentedGonna see if I can run this by the test bot. (Trying to get it working again.)
Comment #6
rszrama commentedI forgot to update this when we discovered the test bot doesn't support projects with dependencies. : P
Committed and we'll try again with the test bot once we can actually use it.