Creating Rules
This guide walks through the process of creating a new pricing rule in PredictCart.
Accessing the Rules Page
Navigate to WooCommerce → PredictCart → Rules in your WordPress admin.
Adding a New Rule
- Click Add New Rule
- Configure the rule settings:
Basic Settings
| Field | Description |
|---|---|
| Rule Name | A descriptive name for internal reference |
| Rule Type | Product Pricing, BOGO, Cart Discount, Checkout Fee, or Free Shipping |
| Status | Active or Inactive |
| Method | The pricing method (percentage, fixed amount, etc.) |
| Value | The numeric value for the method |
Product Restrictions
If the rule should only apply to specific products, set:
- Products — one or more product IDs
- Categories — one or more categories
- Tags — one or more tags
Conditions
Add one or more conditions to define when the rule applies. Conditions can be combined in ALL or ANY mode.
Exclusivity
Choose how this rule interacts with other rules:
- Individual — applies independently, can stack with others
- Cannot combine — other rules are skipped when this one matches
- Only this — stops all other rules when this one matches
- Disabled — rule is inactive
Date Conditions
Add a date condition to restrict the rule to specific dates or date ranges. This is a condition like any other — see Time Conditions for details.
Saving the Rule
Click Save to make the rule live. Product Pricing rules apply immediately to new cart calculations.
Rule Evaluation Order
Rules are evaluated in the order they appear. You can drag-and-drop to reorder rules in the admin list.