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:
- Open the rule in WooCommerce > Pricepep > Product Pricing.
- Under Products, click Add Product, choose Product category, not in list, and select Socks.
- 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 for the full reference and 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.