Conditions

Understanding Conditions

Conditions determine when a rule should activate. You can combine multiple conditions using AND/OR logic to create sophisticated rules.

Condition Logic

Within a condition group, ALL conditions must be true (AND logic).

Between condition groups, ANY group can be true (OR logic).

Available Conditions

User Role

Target specific user roles like customers, subscribers, or custom roles.

Operators:

  • is - User has this role

  • is not - User doesn't have this role

Example:

User Role is Guest (not logged in)

Session Status

Check if user is logged in or not.

Operators:

  • is - Session status matches

  • is not - Session status doesn't match

Values:

  • Logged In

  • Logged Out

Product Price

Check product price (useful for variable products).

Operators:

  • Equal to

  • Not equal to

  • Greater than or equal to

  • Less than or equal to

Example:

Product Price Greater than or equal to 100

Product On Sale

Check if product is currently on sale.

Operators:

  • is - Product is on sale

  • is not - Product is not on sale

Values:

  • Yes

  • No

Product Stock Status

Check product stock availability.

Operators:

  • is - Stock status matches

  • is not - Stock status doesn't match

Values:

  • In Stock

  • Out of Stock

  • On Backorder

Cart Total

Check the total value of items in cart.

Operators:

  • Equal to

  • Not equal to

  • Greater than or equal to

  • Less than or equal to

Example:

Cart Total Less than or equal to 50

Cart Subtotal

Check cart subtotal (before taxes and shipping).

Operators:

  • Equal to

  • Not equal to

  • Greater than or equal to

  • Less than or equal to

Cart Quantity

Check total number of items in cart.

Operators:

  • Equal to

  • Not equal to

  • Greater than or equal to

  • Less than or equal to

Cart Contains Product

Check if specific product is in cart.

Operators:

  • contains - Cart has this product

  • does not contain - Cart doesn't have this product

Cart Contains Category

Check if products from specific category are in cart.

Operators:

  • contains - Cart has products from this category

  • does not contain - Cart doesn't have products from this category

Country

Target users from specific countries (based on billing/shipping address or IP).

Operators:

  • is - User is from this country is not - User is not from this country

Time

Check current time for daily recurring time windows (business hours, flash sales).

Operators:

  • is - Current time is exactly this time

  • is not - Current time is not this time

  • is before or at - Current time is before or equal to this time

  • is after or at - Current time is after or equal to this time

Example:

Time is after or at 09:00 AND Time is before or at 17:00

Result: Rule active during business hours (9 AM - 5 PM) every day

Date/Time

Check specific date and time for one-time events (product launches, deadlines, limited offers).

Operators:

  • is - Current time is exactly this time

  • is not - Current time is not this time

  • is before or at - Current time is before or equal to this time

  • is after or at - Current time is after or equal to this time

Example:

Date/Time is after or on 2024-12-25 00:00

Result: Product becomes available at midnight on Christmas

Combining Conditions

AND Logic (Within a Group)

All conditions in a group must be true for the rule to activate.

Example: Hide button for guests on expensive products

Condition 1: Session Status is Logged Out

AND

Condition 2: Product Price Greater than or equal to 100

Both conditions must be true for the rule to activate.

OR Logic (Between Groups)

Click "Add Condition Group" to create alternative conditions. If ANY group matches, the rule activates.

Example: Hide button for guests OR wholesale customers

Group 1: Session Status is Logged Out

OR

Group 2: User Role is Wholesale Customer

If either group is true, the rule activates.

Pro Tip

Start with simple conditions and test them. Then add more conditions to refine your rules.

Last updated