-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Promotion eligibility? ambiguous behavior #1437
Comments
On it |
Any news on this ? I have an issue that looks really similar. After adding the second product, the promotion eligibility is recalculated. it's still found the line item promotion eligible.
this is because in
because the order is "blacklisted" in 2 quick suggestions for a fix:
If one of these seems like a good fix, I could send a PR. |
Closing as stale. |
Sorry I don't understand why you close it ? I think there is still a bug, I was asking what would be a good path for a fix and didn't have any response since. |
According to @kennyadsl, "Order level promotions have been downgraded to second class citizens, if not deprecated". This issue refers to version 1.3, and we will need to take a look if the problem still makes sense / applies. |
On 1.3 (and on):
Expected behavior: the promotion applies to one line item but not the other
Got: the order is ineligible for this coupon
This is being missed due to a logical discrepancy in the spec:
there are two test cases in "eligible?" that aren't both possible:
"and at least one item is non-promotionable" should be return false
"and at least one item is promotionable" should return true
What should the case where one is promotionable and is isn't? Both cases can't be right.
I'm guessing this arises from having both Order and LineItem level promotion actions, so I'm not sure how to resolve. Looking for guidance and I'll work on a PR.
The text was updated successfully, but these errors were encountered: