How to override Vendure's promotion system to allow only one promotion per order? #3741
DuongVanDuc97
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Vendure's built-in promotion system allows multiple promotions to be applied to a single order simultaneously, and non-coupon promotions are automatically evaluated and applied when orders are modified. However, my business requirements dictate that only one promotion can be applied to an order at a time (similar to how many retail stores operate).
Desired Behavior
I've considered several approaches, but they all seem to require aggressive modifications to Vendure's core methods
Has anyone implemented similar functionality? What approach would you recommend for overriding Vendure's default promotion behavior?
Beta Was this translation helpful? Give feedback.
All reactions