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?
- Go to WooCommerce > Pricepep > Product Pricing and click Add Rule.
- Set Method to Simple adjustment, and under Adjustment choose Percentage discount and type
15. - Under Products, click Add Product, choose Product attributes and at least one of selected, and pick the term "Red".
- 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.
- 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; all product conditions are in 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.