---
title: "Conditions in Pricepep: how they work and combine"
description: Conditions limit Pricepep rules by product, cart, customer, checkout, order history and date. All must match. How to add and combine them.
url: "https://pricepep.com/docs/conditions-overview/"
updated: "2026-12-02"
category: Conditions
---

# Conditions in Pricepep: how they work and combine

Conditions decide **when a rule applies and to what**. Every rule has a **Conditions** section (cart, customer, checkout, purchase history and date conditions), and rules also have a product section: **Products** in product pricing rules, **Items** in cart discounts and checkout fees with a per cart item or per cart line method. All conditions of a rule must match (AND); a rule with no conditions applies in all cases.

Pricepep has 81 condition types in 17 groups (six of them new in 2.6.0: Product sale price, Product total sales and the product weight and dimensions), plus a condition for each custom product taxonomy you enable (for example brands). This page explains how they work together; the reference pages list every condition with its fields and operators.

## How do I add a condition to a rule?

1. Go to **WooCommerce > Pricepep** and open the **Product Pricing**, **Cart Discounts** or **Checkout Fees** tab.
2. Click a rule to open it, or click **Add Rule**.
3. To limit the products: in the **Products** section (**Items** in cart discounts and checkout fees, shown with the per cart item and per cart line methods) click **Add Product**. To limit when the rule applies: in the **Conditions** section click **Add Condition**.
4. Pick the condition type in the first dropdown. Types are grouped as in the reference below (Product, Cart, Customer...).
5. Pick the operator (for example **in list**, **at least**, **all of selected**) and fill in the values.
6. Click **Save Changes**.

A rule with no product conditions shows "Applies to all products." (or "Applies to all items."), and a rule with no conditions shows "Applies in all cases."

Fields that select products, variations or coupons search as you type. Since 2.6.0 a search lists at most 50 results, not counting items already selected in the field, so type more of the name, SKU or coupon code to find others. A search for a product or variation ID lists that item first when it has no SKU (for a variation: neither its own nor its product's; its label then shows #ID instead of a SKU).

## Which conditions can I use in each part of a rule?

| Part of the rule | Rule types | Condition groups offered |
| --- | --- | --- |
| **Products** / **Products - Buy** | Product pricing (Simple adjustment, Bulk, Tiered, Buy / Get, Exclude, Restrict purchase) | Product, Product Property, Other (Cart item data, Coupons applied), Custom Taxonomy |
| **Products - Get** | Buy x get y | Product, Product Property, Other (Coupons applied), Custom Taxonomy |
| **Product Group** entries | Group of products | Product (Product, Product variation, Product category, Product attributes, Product tags), Custom Taxonomy |
| **Conditions** | Product pricing | Cart, Cart - Items, Cart - Items - Quantity, Customer, Customer - Value, Purchase History (all three), Date & Time, Checkout - Address (since 2.6.0) |
| **Items** | Cart discounts, checkout fees (per cart item and per cart line methods) | Product, Product Property, Other (Cart item data, Coupons applied; Any pricing rule applied in cart discounts only), Custom Taxonomy |
| **Conditions** | Cart discounts, checkout fees | Everything in product pricing Conditions, plus Cart subtotal, Cart - Items - Subtotal, Checkout (payment and shipping method); cart discounts also Other (Any pricing rule applied) |

Payment method, shipping method and subtotal conditions are offered in cart discounts and checkout fees only, not in product pricing rules. Shipping address conditions (Checkout - Address) are offered in product pricing rules too since 2.6.0; see [checkout conditions](/docs/checkout-conditions/#checkout-address-conditions).

## How are several conditions combined?

- **Between conditions: AND.** Every condition in the section must match. "User role in list Wholesale customer" plus "Cart total quantity at least 10" applies only to wholesale customers with 10 or more units in the cart.
- **Inside one condition: the operator decides.** For lists of products, categories, tags and so on, choose **at least one of selected** (any), **all of selected**, **only selected** (nothing else) or **none of selected**. Simple lists (Product, Product category, User role...) use **in list** (any of the selected) and **not in list**.
- **OR between conditions:** create one rule per alternative. To stop the customer getting two of them, use the rule's exclusivity setting or the tab's **Rule selection method** (see [how pricing rules combine](/docs/how-pricing-rules-combine/)).

Example: "20% off for wholesale customers OR for orders of 50+ units" is two product pricing rules with the same adjustment, one with **User role in list Wholesale customer**, the other with **Cart total quantity at least 50**, and **Rule selection method** set to **Apply first applicable rule** (the default), so nobody gets both.

## How do product conditions work in each rule type?

- **Product pricing rules:** a product must match all conditions in **Products** to be changed by the rule. In Buy x get y, **Products - Buy** says what must be bought and **Products - Get** what gets the discount (empty = any product). In Group of products, each **Product Group** entry has its own quantity and one condition.
- **Cart discounts and checkout fees:** **Items** appear only with the **per cart item** and **per cart line** methods: the rule applies when at least one cart item matches all **Items** conditions, and only the matching items are counted. Plain **Fixed discount** / **Percentage discount** (and **Fixed fee** / **Percentage fee**) have no Items and apply to the whole cart.

Example cart: 3 T-shirts at $20 and 2 caps at $15 (category Shirts) and a mug at $12. A cart discount with **Items: Product category in list Shirts** and **Percentage discount per cart item 10** gives $9.00 off (10% of $90). **Percentage discount 10** with the condition **Cart items - Categories** at least one of selected Shirts gives $10.20 (10% of the whole $102 cart): the condition only checks that a shirt is in the cart, and the mug is discounted too.

## Which conditions need the customer to be logged in?

The **Customer** group (Customer, User role, User capability, User meta) reads the logged-in user. Guests have no account, role, capability or user meta, so **in list** never matches them and **not in list** always does. Use **Is logged in** to target guests or members.

**Customer - Value** and **Purchase History** conditions use paid orders, found by the customer account and by billing email. A guest is recognised only by the billing email entered at checkout, on the classic checkout page (it refreshes totals when the email changes) or in the Checkout block; in the cart and on product pages, before the email is entered, a guest has no order history.

## Which orders count for order history conditions?

Orders with a status WooCommerce treats as paid: **Processing** and **Completed** by default. Pending, on-hold, cancelled, failed and refunded orders don't count. Guest orders placed with the customer's billing email count as the customer's orders (developers can turn this off with the `rightpress_conditions_match_guest_orders_by_billing_email` filter). Periods use the date the order was created: **last month** is the previous calendar month, **1 month** the time since this date last month, and **current month** since the first of this month.

## Which timezone do date and time conditions use?

The timezone set in **Settings > General > Timezone** in WordPress. "Current week" and "last week" start on the day set in **Settings > General > Week Starts On**. See [date and time conditions](/docs/date-time-conditions/).

## Do amounts in conditions include tax?

When WooCommerce taxes are enabled, **WooCommerce > Pricepep > Settings > Amounts in conditions include tax** (on by default) decides whether **Cart subtotal**, **Cart item subtotal - ...** and **Value purchased - ...** include tax.

## Do conditions affect prices shown in the shop?

Only when **Settings > Change display prices in shop** is set to a **Change** option (the promotion tools on product pages, such as the [volume pricing table](/docs/volume-pricing-table/), Your Price and Product Banners, check their rules' conditions whenever they're on). Shop prices are worked out for the current visitor and their cart, so a rule with cart conditions changes shop prices only when the cart meets them. Calculated prices are cached, except where they depend on the visitor: for every visitor while an active product pricing rule has a shipping address condition (since 2.6.0); for logged-in customers when rules use customer, customer value or purchase history conditions; for guests whose billing email is known when rules use customer value or purchase history conditions; and with items in the cart when rules use cart conditions, or for the products that quantity, group, Buy x get x and Buy x get y rules can price with **Change - Include all adjustment types**. See [caching](/docs/caching/#how-does-pricepeps-own-price-cache-work).

## Condition reference

| Group (as in the admin) | Conditions | Reference |
| --- | --- | --- |
| Product | Product, Product variation, Product category, Product attributes, Product tags | [Product conditions](/docs/product-conditions/) |
| Product Property | Product regular price, Product sale price, Product is on sale, Product stock quantity, Product total sales, Product shipping class, Product weight, Product length, Product width, Product height, Product metadata | [Product conditions](/docs/product-conditions/) |
| Other (product) | Cart item data, Any pricing rule applied, Coupons applied | [Product conditions](/docs/product-conditions/) |
| Cart | Cart subtotal, Cart total quantity, Cart item count, Cart total weight, Coupons applied | [Cart conditions](/docs/cart-conditions/) |
| Cart - Items | Cart items - Products, Variations, Categories, Attributes, Tags, Shipping Classes | [Cart conditions](/docs/cart-conditions/) |
| Cart - Items - Quantity | Cart item quantity - Products, Variations, Categories, Attributes, Tags, Shipping classes | [Cart conditions](/docs/cart-conditions/) |
| Cart - Items - Subtotal | Cart item subtotal - Products, Variations, Categories, Attributes, Tags, Shipping classes | [Cart conditions](/docs/cart-conditions/) |
| Checkout | Payment method, Shipping method | [Checkout conditions](/docs/checkout-conditions/) |
| Checkout - Address | Shipping country, Shipping state, Shipping postcode, Shipping zone | [Checkout conditions](/docs/checkout-conditions/) |
| Customer | Customer, User role, User capability, User meta, Is logged in | [Customer conditions](/docs/customer-conditions/) |
| Customer - Value | Spent - Total, Spent - Average per order, Spent - Last order, Order count, Last order, Customer review count | [Customer conditions](/docs/customer-conditions/) |
| Purchase History | Purchased - Products, Variations, Categories, Attributes, Tags | [Purchase history conditions](/docs/purchase-history-conditions/) |
| Purchase History - Quantity | Quantity purchased - Products, Variations, Categories, Attributes, Tags | [Purchase history conditions](/docs/purchase-history-conditions/) |
| Purchase History - Value | Value purchased - Products, Variations, Categories, Attributes, Tags | [Purchase history conditions](/docs/purchase-history-conditions/) |
| Date & Time | Date, Time, Date & time, Days of week, Days of month, Months | [Date and time conditions](/docs/date-time-conditions/) |
| Custom Taxonomy | one per enabled product taxonomy (for example brands) | [Custom taxonomy conditions](/docs/custom-taxonomy-conditions/) |
| Other | Any pricing rule applied (cart discounts) | [Cart conditions](/docs/cart-conditions/) |

Developers can add their own condition types: see [creating custom conditions](/docs/creating-custom-conditions/).

## Why is my condition not matching?

- **The customer is a guest.** Customer conditions need a logged-in customer; order history needs a login or, for guests, the billing email entered at checkout (see above).
- **The order statuses.** Only Processing and Completed orders count by default.
- **Another rule wins.** With **Apply first applicable rule**, an earlier matching rule is used instead. See [how pricing rules combine](/docs/how-pricing-rules-combine/).
- **Excluded items.** In product pricing rules, cart conditions don't count products matched by **Exclude products from all rules**.
- **The wrong section.** Product conditions in **Products** limit which products change; cart quantity conditions in **Conditions** count the whole cart (or the items you select in the condition).
- **Time zone.** Date & Time conditions follow the WordPress timezone, not the server's or your computer's.
- **A disabled taxonomy.** If a rule shows "Custom taxonomy condition was disabled...", enable the taxonomy again in **Settings** or remove the condition.

## Frequently asked questions

### Do all conditions in a rule have to match?

Yes. Conditions in a rule are combined with AND. For OR, create a rule for each alternative.

### What is the difference between the Products section and Conditions?

Products (Items in cart discounts and fees) says which products or cart items the rule is about. Conditions says when the rule applies: cart, customer, checkout, purchase history and date.

### How many condition types are there?

81 built-in condition types in 17 groups, plus one condition for each custom product taxonomy you enable, such as brands.

### Why does my rule with a role condition not work for guests?

Guests have no user role. Customer conditions need a logged-in customer; use Is logged in or the not in list operator for guests.

## Related articles

- [Product conditions: products, categories, tags, price](https://pricepep.com/docs/product-conditions/)
- [Cart conditions: subtotal, quantity and items in the cart](https://pricepep.com/docs/cart-conditions/)
- [Customer conditions: roles, users and order history](https://pricepep.com/docs/customer-conditions/)
- [Date and time conditions: schedule sales and happy hours](https://pricepep.com/docs/date-time-conditions/)
- [How multiple pricing rules combine in Pricepep](https://pricepep.com/docs/how-pricing-rules-combine/)

All articles in [Conditions](https://pricepep.com/docs-category/conditions/)
