Add a global per-promotion amount limit #6370
Closed
+247
−9
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
For this year's BFCM we're running into a situation where we would like to give "x percent off selected items, up to 250 USD". "Selected items" is a complicated set of items, so we need more than one benefit to capture all requirements.
What this allows is adding a limit to every promotion that discounts. The limit is not distributed, but simply stops discounting when the limit is reached.
One could also do this at the calculator level, but that would be a bit tedious - because every benefit's calculator would need to a) support the limit and b) promo admins would have to enter the same number for every benefit.
RfC. This can probably be improved, and it's not clear yet how this would relate to shipping rate discounts and prices.
Checklist
Check out our PR guidelines for more details.
The following are mandatory for all PRs:
The following are not always needed: