Rule types let you customize the rules applied to dynamic categories, promotions, personas, and shipping rules, as well as define custom rule types. Optimizely Configured Commerce contains four collections of rule types. However, you can create other types to meet specific business needs.
Users can create custom rule types and rule type options to further use the Rules Engine. Custom development may be required to employ added Rule Types and Rule Type Options.
Configured Commerce has multiple rule types by default:
- Badge
- Category
- Product Restrictions
- Product Visibility
- Promotion
- Shipping
- WishList
Each rule type has a combination of rule type options. These options define the "IF" statement of the rule. You can create new rule types and rule type options in the Admin Console. These require custom development to assign the rule types to the entity.
To use custom properties in the rules engine, add a Custom Property Rule Type option for the desired rule type in Administration > Rule Types.
Valid rule type options
Below is a list of valid rule type options. Although other rule type options may be visible, they do not create valid rule type option without custom development.
Badge
- Product Custom Properties
- Product Fields
Category
- Product Custom Properties
- Product Fields
Product Restrictions
- Product Fields
- Product in Category
- Product in Warehouse
- Product from Vendor
- Product in Category Branch
Product Visibility
- Customer Ship To Fields
- Customer Bill To Fields
Promotion
- Authenticated
- Current Persona
- Customer Custom Properties
- Customer Order Custom Properties
- Customer Fields
- Customer Order Fields
- Order Bill To
- Order Carrier Services
- Order Currency
- Order Product
- Order Product From Category
- Order Product With Product Code
- Order Product From Vendor
- Order Line Count
- Order Product Total
- Order Contains/ Does Not Contain a Promotion
- Order Shipping Weight
- Order Ship To Country
- Order Ship To State/Provence
- Order Total
- Promotion Maximum Times Used Per Customer
- Promotion Maximum Times Used
- Requested Ship Date Is Day of Week
Shipping
- Current Persona
- Customer Custom Properties
- Customer Order Custom Properties
- Customer Fields
- Customer Order Fields
- Order Products
- Order Products From Category
- Order Product From Product Code
- Order Product from Vendor
- Order Line Count
- Order Product Total
- Order Ship Weight
- Order Ship To Country
- Order Ship To State/Province
- Requested Ship Date is Day of Week
WishList
- Product Fields
- Product Attributes
- Product Custom Properties
Create a rule type
- Go to Admin Console > Administration > Rule Types.
- Click Add Rule Type. You can edit existing rule types and add additional rule type options to them.
- Enter the name of the Rule Type.
- Click Save.
Now that a Rule Type is created, the next step is to add Rule Type Options to Rule Type.
Create rule type options
- Go to Admin Console > Administration > Rule Types.
- Click Edit on the Rule Type.
- Click the Rule Options finger tab.
- Click Add Rule Type Options.
- Add a description of the Rule Type Option.
- Select the Criteria Type from the drop-down list.
- Criteria Types are coded plug-ins and define the rules around a particular rule type option. The intent is to allow the user interface to be derived automatically from the criteria type so that partners can develop additional rules without having to modify the user interface.
- When applicable, select the Criteria Object and Criteria Property from the contextual drop-down lists.
Selecting Object as a Criteria Type, will provide a super-set of all Criteria Objects available - it is up the Implementer to ensure that the Criteria Object is available at the time a rule is being invoked.
- Click Save.
Please sign in to leave a comment.