Custom Rules

Creating custom rulesĀ for AutomateWoo can get complex very quickly so there are abstract rule classes for each rule type (string, number, object, select) that add helperĀ methods. For the sake of simplicity the example below doesn’t use one of the abstract classes.

Below is a basic example of creating a rule that checks whether the billing post code of an order matches or doesn’t match a supplied value.

rule-custom