---
title: Does a category discount include subcategories?
description: Yes. In Pricepep, a Product category condition matches the selected category and all its subcategories. How to leave one subcategory out.
url: "https://pricepep.com/docs/does-a-category-discount-include-subcategories/"
updated: "2026-12-02"
category: FAQ
---

# Does a category discount include subcategories?

Yes. When a rule uses **Product category** **in list** "Clothing", products in "Clothing > Shirts" and "Clothing > Shirts > Polo" match too, at any depth. Example: a **Simple adjustment** with **Percentage discount** 20 on Clothing makes a $30.00 shirt from the Shirts subcategory $24.00.

## Which products match?

Rule: **Products**: **Product category** **in list** Clothing, **Percentage discount** 20.

| Product | Its category | Price |
| --- | --- | --- |
| Jacket | Clothing | $80.00 → $64.00 |
| Polo shirt | Clothing > Shirts > Polo | $30.00 → $24.00 |
| Socks | Clothing > Socks | $10.00 → $8.00 |
| Mug | Kitchen | $12.00 (no change) |

## How do I leave one subcategory out?

Add a second product condition to the same rule:

1. Open the rule in **WooCommerce > Pricepep > Product Pricing**.
2. Under **Products**, click **Add Product**, choose **Product category**, **not in list**, and select Socks.
3. Click **Save Changes**.

All product conditions must match, so the rule now covers Clothing and its subcategories except Socks: the socks stay at $10.00. A sock product that is also in another category is still left out, because one of its categories is listed.

## Where else does this apply?

- **not in list** with a parent category leaves out its subcategories as well.
- Cart and checkout rules: **Product category** under **Items** (per cart item and per cart line methods), and the conditions **Cart items - Categories**, **Cart item quantity - Categories** and **Cart item subtotal - Categories** count subcategories.
- Purchase history: **Purchased - Categories**, **Quantity purchased - Categories** and **Value purchased - Categories** do the same.

See [product conditions](/docs/product-conditions/) for the full reference and [discount everything except one category](/docs/can-i-discount-everything-except-one-category/) for exclusions.

## Frequently asked questions

### Can I target a parent category without its subcategories?

Not with one condition. Add a second product condition, Product category not in list, with the subcategories to leave out.

### Do cart and purchase history conditions include subcategories too?

Yes. Cart items - Categories, Cart item quantity - Categories, Cart item subtotal - Categories and the Purchased category conditions count subcategories as well.

## Related articles

- [Product conditions: products, categories, tags, price](https://pricepep.com/docs/product-conditions/)
- [Can I discount everything except one category?](https://pricepep.com/docs/can-i-discount-everything-except-one-category/)
- [Limited-time sale for a product category](https://pricepep.com/docs/limited-time-offer-for-product-category/)

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