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
In the scenario above, the order has two adjustments: one for shipping and one for the order itself.
Is this an expected behavior? When I set the usage limit to 5, I expect the promotion to be applied to 5 orders. But now, I must set it to 5 times the number of adjustments to be applied to the order.
Expected Behavior
I expect the usage count to increase by one when I apply the above coupon to the order.
Actual Behavior
The usage count went up by two since the order had two adjustments.
Your Environment
Version used: 4.4.0
Please let me know if I need to do anything differently here or if my understanding of how the credits work needs to be corrected. I was not able to find documentation on it anywhere.
The text was updated successfully, but these errors were encountered:
This same issue happens if you have a line item-based promotion (since spree doesn't do whole order adjustments for tax calculations. See #10907) and you have multiple items in the order. The number of usages ends up being the amount of line items there are. If you have a usage limit set to 1, only one line item gets the promotion. Not sure if the root cause is the same here, but it seems related.
I created a promotion with two actions:
When I successfully apply this coupon and checkout, the current usage goes up by 2.
Context
We use the credits_count method to show the current usage. The
credits
method is defined as follows:In the scenario above, the order has two adjustments: one for shipping and one for the order itself.
Is this an expected behavior? When I set the usage limit to 5, I expect the promotion to be applied to 5 orders. But now, I must set it to 5 times the number of adjustments to be applied to the order.
Expected Behavior
I expect the usage count to increase by one when I apply the above coupon to the order.
Actual Behavior
The usage count went up by two since the order had two adjustments.
Your Environment
Please let me know if I need to do anything differently here or if my understanding of how the credits work needs to be corrected. I was not able to find documentation on it anywhere.
The text was updated successfully, but these errors were encountered: