Open/closed: discount rules
Add a new discount by adding a rule, without editing the code that computes prices.
Level Intermediate
What you will see
- Discounts keep coming
- The same switch, twice
- One question per discount
- A list instead of a switch
- When not to open
Before / after
Base: open-closed-base-tsView the diff