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
When placing an order using coupon code for shipping discount (provided via cart price rules) usage counter doesn't get updated.
Preconditions
Magento 2.1.0
Cart Price Rule applicable to some (any) cart
2.1. Use specific coupon, any coupon code
2.2. Actions providing only shipping discount
2.3. Uses per coupon \ customer set to some value > 0
Steps to reproduce
Add some product to cart,
Checkout using coupon code from the rule you've created
When placing an order using coupon code for shipping discount (provided via cart price rules) usage counter doesn't get updated.
Preconditions
2.1. Use specific coupon, any coupon code
2.2. Actions providing only shipping discount
2.3. Uses per coupon \ customer set to some value > 0
Steps to reproduce
Expected result
Actual result
Clue
Since 2.1.0 there is extra condition in
Which in previous versions was simpler:
if (!$order)
When a rule provide only a shipping discount, getDiscountAmount() returns 0, and the script execution ends.
Proposed variant is the following:
In such way script will continue execution, and usage counters will get updated.
Please consider implementing this fix in the upcoming patches.
The text was updated successfully, but these errors were encountered: