---
title: Rules engine
slug: configured-commerce/docs/RwIq-rules-engine
docTags: 
createdAt: 2026-08-13T10:46:28.000Z
---

Optimizely Configured Commerce has several basic rule types by default:

- Category
- Promotion
- Shipping
- User
- Customer

Each rule type has a combination of rule type options. These options define the "if" statement of the rule. You can create rule types and rule type options in the Admin Console and assign the rule types to the entity.

:::hint{type="info"}
**Note**

You can find the rules engine under a Category's **Products** tab (for assigning Dynamic Rules) or in the **Promotions**,  **Shipping & Fulfillment** > **Carriers**, **Page Variants**, and **Catalog** > **Restriction Groups** sections. While each instance contains different options, the basic functionality remains the same.
:::

Begin by choosing to match **All** or **Any** of the following rules. **All** requires that each rule is true for the results to execute, while **Any** allows any of the rules to be true to render the result.

Select a **Rule Type** using the drop-down list, and fill out the remaining fields as applicable. See [Rule type options ](docId\:NjOExR93Mlb57js3aTNNI)for a list of all options. Rule types that require numbers use the decimal control type. The **Maximum Value** field is optional for Ordered Product rule types.

Finally, select if the rule requires an additional **Rule Group**. Add a rule group to reveal an additional dropdown with **And/Or** logic options. If the rule requires all/any of the rules in the first group and all/any of the rules in the second group to be true, select **And**. If the rule can execute with either all/any of the rules in the first group or all/any of the rules in the second group, select **Or**.

:::hint{type="info"}
**Note**

While multiple rule groups may be added to one rule, all groups must use either the **And** or the **Or** logic option; both options may not be used on the same rule.
:::
