The confirmation message (Cart quantity updated to N) always displays the quantity (N) of the first item if there are multiple items in the cart.
In other words, if I update the quantity of the second item to X, the confirmation message will refer to the first item's quantity N. I hope this is clear...
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | amazon_store.confirmation_message_d7.patch | 1.07 KB | rfay |
| #2 | amazon_store_update_quantity.module.patch | 911 bytes | the_g_bomb |
Comments
Comment #1
the_g_bomb commentedConfirmed
If 2 items are in the cart change the second item quantity and click update quantity. The quantity of the first item is displayed in the message.
This comes from around line 707 in the amazon_store.module
When the $result is returned the 0 index CartItem is used to update the message display message.
Changing the line to this should fix it.
I will create a patch that will check each CartItem to see if that is the cartitem that has been updated, then set the message as required.
Comment #2
the_g_bomb commentedHope this helps
Comment #3
rfayComment #4
rfaySame issue here - please don't use one-line conditionals.
Powered by Dreditor.
Comment #5
rfayThanks for the excellent work. Committed (with that one change) to DRUPAL-6--2:
http://drupal.org/cvs?commit=437446
Comment #6
rfayComment #7
rfayComment #8
rfayCommitted to HEAD: http://drupal.org/cvs?commit=437492
Thanks so much!