Skip to content
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

When promotions conflict due to stackability use the promotion that produces the largest discount amount #6817

Open
brent-hoover opened this issue Feb 28, 2023 · 0 comments
Labels
Promotions Issues related to the Promotions project

Comments

@brent-hoover
Copy link
Collaborator

When one or more promotions are to be applied but cannot because of their stackability, the system needs to calculate which will produce the largest discount amount. I realize that this may produce a performance issue if we do this every time so we need to figure out how to optimize this calculation so that it only needs to be done the minimum amount of times.

Note that I think this only applies to "Offers", not to coupons (because the customer caused the offer to happen) or for shipping discounts since we won't know what the amount is until checkout.

@brent-hoover brent-hoover added the Promotions Issues related to the Promotions project label Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Promotions Issues related to the Promotions project
Projects
None yet
Development

No branches or pull requests

1 participant