Commit 61c77ca
committed
Run legacy promotion handler "cart" if legacy promo system present
In the legacy promotion system, there's a separation of tasks between
`order.recalculate` and `PromotionHandler::Cart`. `order.recalculate`
will only recalculate already existing promotion adjustments, but will
not check for any new promotions that might need to be applied. In the
new promotion system, both of these tasks are handled by
`order.recalculate`.
If the legacy promotion system is present, but not active, calling this
promotion handler will result in a single database call, which is an
acceptable price to pay I think.1 parent 6d6be7a commit 61c77ca
File tree
2 files changed
+6
-0
lines changed- lib/solidus_subscriptions
2 files changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
| |||
0 commit comments