The Order Item Attribute Filter rule can be used to filter out order items with certain characteristics from an order. For example, if an order item's SKU is ABC123, remove that item from the order.
The parameters of this rule are:
Attribute - A list of attributes of an order which can be used to filter, e.g. product SKU, product name.
Comparison type - Determines how the value that you specify should be compared to the actual value of the attribute, e.g. "Starts with".
Value - The value of an order attribute, e.g. ABC123
To add a new Order Item Attribute Filter rule:
- Open the desired store.
- Click the Rules tab.
- Click +Add rule.
- Name the rule. Then click +Add action.
- Select Filter order items from the Rule Category option list.
- Click Edit in the top left corner of the For Every Order Item box.
- Select Compare Order Item attribute from the dropdown menu next to IF.
- Specify an attribute and a value.
- Click Save changes.
To change the method of comparison, see Attribute comparison in order rules.
To filter orders by attributes of order items, see Quantifiers in Order Rules.
To filter orders by attributes of orders, see Order Attribute Filter Rule.