---
title: Exclude products from all pricing rules
description: Keep gift cards, sale items or any products out of every Pricepep product pricing rule with the method Exclude products from all rules.
url: "https://pricepep.com/docs/exclude-products-from-all-rules/"
updated: "2026-12-02"
category: Product pricing
---

# Exclude products from all pricing rules

The method **Exclude products from all rules** removes matching products from every product pricing rule. Use it for products that must never be discounted, such as gift cards. Cart discounts and checkout fees are not affected. To leave a category out of one rule only, see [discount everything except one category](/docs/can-i-discount-everything-except-one-category/).

## How do I exclude products?

1. Go to **WooCommerce > Pricepep > Product Pricing** and click **Add Rule**.
2. Set **Method** to **Exclude products from all rules**.
3. Under **Products**, choose the products to exclude, for example **Product category** in list "Gift cards".
4. Optional: add **Conditions** to exclude them only sometimes, for example only for a user role.
5. Click **Save Changes**.

The rule works wherever it is in the list. It has no select field in its header, so it can't be set to Disabled; delete it to stop excluding (export your settings first if you might want it back). Setting the tab's **Rule selection method** to **All rules disabled** turns exclude rules off too, together with every other product pricing rule.

## What exactly is excluded?

- Matching cart items get no product pricing adjustments.
- They don't count towards quantities of other rules (bulk ranges, buy/get, groups).
- With **Change display prices in shop** on, their shop prices aren't changed either, and the Volume Pricing Table doesn't show for them.

## How do I leave wholesale customers out of all discounts?

1. Add a rule with **Method** **Exclude products from all rules**, leave **Products** empty (all products), and under **Conditions** add **User role** **in list** Wholesale customer. No product pricing rule then changes prices for customers with that role.
2. Exclude rules don't reach cart discounts and checkout fees: add **User role** **not in list** Wholesale customer to each of those rules. A developer can instead switch them all off for the role with the `rp_wcdpd_process_cart_discounts` and `rp_wcdpd_process_checkout_fees` filters (see the [filter reference](/docs/filter-reference/#rules-filters)).

The exclude rule also stops a Pricepep rule that sets the wholesale prices themselves. If your wholesale prices come from Pricepep, add **User role** **not in list** Wholesale customer to the other product pricing rules instead; see [wholesale prices by user role](/docs/wholesale-prices-by-user-role/).

## How do I keep sale items out of discounts?

If "excluded" means "already on sale", you don't need a rule: set **Base price for products on sale** to **Exclude products already on sale** on the **Settings** tab. To exclude sale items from one rule only, add **Product is on sale** with **no** to that rule's **Products**.

## How do I exclude products from a cart discount?

Choose a "per cart item" method in the cart discount and select the discounted items under **Items**. See [discount only some categories](/docs/category-discount-in-cart/). To stop customers buying products instead of excluding them from discounts, see [restrict purchase](/docs/restrict-purchase/).

## Frequently asked questions

### Does an exclude rule also exclude products from cart discounts?

No. It only affects product pricing rules. In a cart discount, choose the discounted items with a per cart item method and Items.

### Do excluded products still count towards quantity discounts?

No. Excluded items are removed before other rules count quantities.

### How do I leave wholesale customers out of all discounts?

Add an Exclude products from all rules rule with no Products and the condition User role in list Wholesale customer. For cart discounts and checkout fees, add User role not in list Wholesale customer to each rule.

## Related articles

- [Product pricing rules in WooCommerce: how they work](https://pricepep.com/docs/product-pricing/)
- [Restrict purchase: stop some customers buying products](https://pricepep.com/docs/restrict-purchase/)
- [Cart discount for one category (or excluding one)](https://pricepep.com/docs/category-discount-in-cart/)
- [Are discounts added on top of the sale or regular price?](https://pricepep.com/docs/are-discounts-added-on-top-of-sale-or-regular-price/)

All articles in [Product pricing](https://pricepep.com/docs-category/product-pricing/)
