You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Along the same lines: from a cart display page, where multiple items have an editable quantity field, there should be a way to update more than one of them. Right now you get something like:
isa check for "quantity" failed: ARRAY(0xaf1d1f8) is not a positive numeric. at (eval 1538) line 104.
The text was updated successfully, but these errors were encountered:
I was asked to provide a sample POST here. This is from a cart display page ("basket") where three items are in the cart, and we want to update more than one of them.
We cannot use simple post data with quantity and sku defined multiple times since this fails if the user deletes the value in the 1st quantity field resulting in one fewer quantity field compared to sku. To handle this we need to use input names for the quantity fields which include sku like quantity[sku] so the posted form would then include params so:
quantity[112] = 2
quantity[ADC87] = 3
This is sadly a fail for us long-term since we also want to be able to have a single sku added multiple times and not combined together in the cart (interchange/Interchange6#13).
Perhaps this could be handled using Cart::Product->id since we fill this attribute from the database on cart load; so for id 763 and quantity 4 we'd have quantity[763] = 4. @racke thoughts?
@murwiz added this to issue #25:
Along the same lines: from a cart display page, where multiple items have an editable quantity field, there should be a way to update more than one of them. Right now you get something like:
isa check for "quantity" failed: ARRAY(0xaf1d1f8) is not a positive numeric. at (eval 1538) line 104.
The text was updated successfully, but these errors were encountered: