Problem/Motivation
For the same reasons as per #2878155: When I press return to update the quantity of a line item it shouldn't be deleted, when user enters a coupon code and press enter, the first submit button of the form is triggered.
- If used from the checkout sidebar, it may go to next step
- When your coupon form is within the cart via #2872455: Allow coupons to be redeemed on the cart page, the first order item is remove from cart.
Even if not used within the cart, it makes sense that, if user press enter while writing a coupon code in the form, it submits the coupon.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | auto_submit_coupon--2896303-2.patch | 2.25 KB | dom. |
Comments
Comment #2
dom. commentedPatch attached for review.
Comment #3
sorabh.v6Comment #4
sorabh.v6Hi All,
I confirm that the patch in #2 is working correctly for me and code also looks good.
Setting it to RTBC.
Thanks All
Comment #5
bojanz commentedWe need to sync this with the improvements made in #2878155: When I press return to update the quantity of a line item it shouldn't be deleted (:input, once).
Comment #7
bojanz commentedDone. Thank you both.