Skip to content

Conditions

Conditions determine when a rule’s actions are applied. All conditions in a rule group must be met (AND logic). Click Add within a condition section to add a new condition.

Control rules based on cart totals, weight or item count.

Condition TypeDescription
Cart subtotalCart subtotal amount (products only, before shipping and fees)
Cart totalFull cart total including shipping, fees and taxes
Cart weightTotal weight of all products in cart
Cart items countTotal quantity of items in cart

For the cart subtotal condition, you can optionally include additional amounts in the calculation:

ComponentDescription
Shipping totalAdd the shipping cost to the compared value
Fees totalAdd fee amounts to the compared value
Coupons discountAdd coupon discount amounts to the compared value
OperatorMeaning
More thanValue must be greater than the specified amount
More or equalValue must be greater than or equal to the specified amount
LessValue must be less than the specified amount
Less or equalValue must be less than or equal

Control rules based on products in the cart.

Condition TypeDescription
Cart contains productsRule applies when the cart contains specified products
Cart does not contain productsRule applies when the cart does NOT contain specified products

You can filter products by:

  • Products — select specific products
  • Categories — select product categories
  • Tags — select product tags
  • Attributes — select product attributes
  • Shipping classes — select shipping classes

You can combine multiple selection criteria. If any of the criteria groups (products, categories, tags, attributes, shipping classes) matches, the condition is considered met (OR logic between groups).

Within product conditions, you can add quantity-based sub-rules:

FieldDescription
ProductSelect the product to check quantity for
ComparisonMore than / More or equal / Less than / Less or equal
Cart quantityThe quantity value to compare against

Control rules based on product dimensions.

Condition TypeDescription
HeightProduct height
WidthProduct width
LengthProduct length
Sum of all valuesSum of all three dimensions (height + width + length)

Each dimension condition has:

FieldDescription
ComparisonMore than / More or equal / Less than / Less or equal
ValueThe dimension value to compare against
Sum valuesWhen enabled, sums dimensions of all products in cart. When disabled, compares each product individually.

Control rules based on product shipping classes.

Condition TypeDescription
Product has shipping classRule applies when any product in cart has the specified shipping class
Product does not have shipping classRule applies when no product in cart has the specified shipping class

Select one or more shipping classes to check against.

Control rules based on the logged-in user’s WordPress role.

Condition TypeDescription
User has roleRule applies when the logged-in user has the specified role
User does not have roleRule applies when the logged-in user does NOT have the specified role

Select one or more user roles. If the user is not logged in, the “User has role” condition always fails and the “User does not have role” condition always passes.

Control rules based on the active WooCommerce currency.

Condition TypeDescription
Currency is one ofRule applies when the active currency matches one of the selected currencies
Currency is not one ofRule applies when the active currency does NOT match any of the selected currencies

Useful for multi-currency stores.

Control rules based on the customer’s country. The plugin checks the shipping country first, then falls back to the billing country.

Condition TypeDescription
Country is one ofRule applies when the customer’s country matches one of the selected countries
Country is not one ofRule applies when the customer’s country does NOT match any of the selected countries

Control rules based on applied coupon codes.

Condition TypeDescription
Cart contains couponRule applies when the specified coupon code is applied to the cart
Cart does not contain couponRule applies when the specified coupon code is NOT applied to the cart

Enter the exact coupon code to check.

Shipping Method Conditions (Payment Rules Only)

Section titled “Shipping Method Conditions (Payment Rules Only)”

Available only in payment rules. Control payment methods based on the selected shipping method.

Condition TypeDescription
Shipping method is selectedRule applies when the customer has selected one of the specified shipping methods
Shipping method is not selectedRule applies when the customer has NOT selected any of the specified shipping methods