You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/commerce/5.x/extend/adjusters.md
+3-18Lines changed: 3 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,10 +20,9 @@ The rest of this page covers discount and shipping adjusters even though there i
20
20
21
21
## Registering a New Adjuster
22
22
23
-
You can register your adjuster class by including it in the `types`array attribute of the [`registerOrderAdjusters`](events.md#registerorderadjusters) or [`registerDiscountAdjusters`](events.md#registerdiscountadjusters) event model.
23
+
You can register your adjuster class by pushing it onto the `types` attribute of the model emitted by [`EVENT_REGISTER_ORDER_ADJUSTERS`](events.md#registerorderadjusters):
The order of the adjustments within the `types` array is important because adjusters will be called in exactly that sequence when an order is calculated.
39
+
The order of the adjustments within the `types` array is important: adjusters are called in exactly that sequence when an order is calculated.
55
40
56
41
::: tip
57
42
Even if you don’t add or replace an adjuster you might still use either event solely to change the order in which *existing* adjustments are applied.
0 commit comments