Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunitySubmit a ticketLog In
GitHubNuGetDev CommunitySubmit a ticket

Create rule types

Create custom Rule Types and Rule Type Options to further use the Rules Engine in Optimizely Configured Commerce.

📘

Note

Custom development may be required to employ added Rule Types and Rule > Type Options.

Create a rule type

  1. Go to Admin Console > Administration > Rule Types.

  2. Click Add Rule Type.

    You can edit existing rule types and add additional rule type options to them.

  3. Enter the name of the Rule Type.

  4. 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

  1. Go to Admin Console > Administration > Rule Types.

  2. Click Edit on the Rule Type.

  3. Click the Rule Options finger tab.

  4. Click Add Rule Type Options.

  5. Add a description of the Rule Type Option.

  6. 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.

  7. 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.

  8. Click Save.