Product Conditions
Product conditions evaluate properties of individual cart items to determine if a rule applies.
Product
Matches specific product IDs.
- Operators: equals, not equals, in, not in
- Value: one or more product IDs
Category
Matches products belonging to specific categories.
- Operators: in, not in
- Value: one or more category IDs
Tag
Matches products with specific tags.
- Operators: in, not in
- Value: one or more tag IDs
SKU
Matches products by their SKU.
- Operators: equals, not equals
- Value: one or more SKU strings
Attribute
Matches products by WooCommerce product attributes (e.g., color, size).
- Operators: equals, not equals, contains, not contains
- Value: attribute value string
- Parameter: attribute name (e.g.,
pa_color)
Price
Evaluates the product's unit price.
- Operators: greater or equal (
gte), less or equal (lte), equals - Value: numeric price
Regular Price
Matches the product's regular price before any sale.
- Operators: greater or equal, less or equal, equals
- Value: numeric price
Quantity
Evaluates the quantity of the product in the cart.
- Operators: greater or equal (
gte), less or equal (lte), equals - Value: numeric quantity
Stock Quantity
Matches the product's current stock level.
- Operators: greater or equal, less or equal, equals
- Value: numeric stock count
On Sale
Checks whether the product is currently on sale.
- Operators: equals
- Value:
yesorno
Shipping Class
Matches products by their shipping class.
- Operators: equals, in, not in
- Value: one or more shipping class IDs