How do Smart Order Notifications rules work and how do they interact?
As discussed in our Triggers & Filter's guide, Smart Order Notifications uses rules to determine when to send an notification (or include it in a batch) and which line items to include in the notification. These rules are configured using the Triggers & Filters form in the notification edit screen.
Both sections of the form function and behave in the same manner. First they ask for a field, then an operator and finally a value. The three in combination make up a rule.
Product SKU is equal to ABC123
In the rule above breaks down like so:
Field: Product SKU Operator: is equal to Value: ABC123
Our rule matcher uses these elements to determine if the order matches your rule or not. In the case of our example we would look at each line item on the order and check if any of their product SKUs are equal to "ABC123". If it finds a match, the order will trigger a notification or will be included in the batch.
Think of this process as a funnel. At the top of the funnel triggers check which orders qualify to send a notification. At the bottom of the funnel filters weed out line items that are not relervant. This gives you complete control over when the notification sends and what it contains.
At the top of each rule form you have control over whether Smart Order Notifications should match all conditions of the rule or any condition of the rule. See example below:
How do these condition options work?
Using the all conditions option is powerful when you want to match very specific order states, for example: an order with a product with a certain SKU, with a destination country of the USA and a customer tag of VIP.
On the other hand, the any condition will allow you to create much broader rules. For example: any order with one of 15 different product types or any order with a destination postal code that contains "BA1".