---
title: Can I discount products by attribute, like size or colour?
description: "Yes. Pricepep's Product attributes condition discounts every product or variation with an attribute term, such as everything red or every XL size."
url: "https://pricepep.com/docs/can-i-discount-products-by-attribute/"
updated: "2026-12-02"
category: FAQ
---

# Can I discount products by attribute, like size or colour?

Yes. Under a rule's **Products**, add **Product attributes** **at least one of selected** and choose the terms, for example "Red". Example: a **Simple adjustment** with **Percentage discount** 15 makes every red product and every red variation 15% cheaper: a red T-shirt costs $17.00 instead of $20.00, while a blue one stays at $20.00.

## How do I set it up?

1. Go to **WooCommerce > Pricepep > Product Pricing** and click **Add Rule**.
2. Set **Method** to **Simple adjustment**, and under **Adjustment** choose **Percentage discount** and type `15`.
3. Under **Products**, click **Add Product**, choose **Product attributes** and **at least one of selected**, and pick the term "Red".
4. Click **Save Changes**.

## Which operator do I need?

| Operator | Matches products that have | Example |
| --- | --- | --- |
| **at least one of selected** | any of the selected terms | Red or Blue |
| **all of selected** | every selected term | Red and XL |
| **only selected** | the selected terms and no other attribute terms | only Red |
| **none of selected** | none of the selected terms | everything that isn't Red |

## What should I know?

- **Global attributes only:** attributes created in **Products > Attributes** have terms to select; attributes typed on a single product don't.
- **Variations** use the option they stand for: the "Red, XL" variation of a shirt matches Red and XL. For attributes that aren't used for variations, all the product's terms count.
- **Tags** work the same way with **Product tags**. Custom taxonomies such as brands, once enabled, have only **in list** and **not in list**; see [custom taxonomy conditions](/docs/custom-taxonomy-conditions/).
- **In the cart:** use **Product attributes** under **Items** of a cart discount or fee with a per cart item or per cart line method, or **Cart items - Attributes** in **Conditions** to require such an item in the cart.

For one single variation, see [discount only one variation](/docs/can-i-discount-only-one-variation-of-a-product/); all product conditions are in [product conditions](/docs/product-conditions/).

## Frequently asked questions

### Why can't I select my attribute?

Only global attributes (Products > Attributes) have terms to select. Attributes typed on one product only can't be used in conditions.

### Can I discount everything except one colour?

Yes. Use Product attributes with none of selected and that colour.

### Do tags work the same way?

Yes. Product tags has the same operators: at least one of selected, all of selected, only selected and none of selected.

## Related articles

- [Product conditions: products, categories, tags, price](https://pricepep.com/docs/product-conditions/)
- [Can I discount only one variation of a product?](https://pricepep.com/docs/can-i-discount-only-one-variation-of-a-product/)
- [Custom taxonomy conditions: discounts by brand and more](https://pricepep.com/docs/custom-taxonomy-conditions/)

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