This recipe gives each product category its own discount with Dynamic Pricing: 30% off Clearance, 20% off Hoodies and $5 off each mug, all on one screen. The cart totals below were measured on a real cart.
One table holds every category. Tick a category, enter its discount, and save.
What you need
↑ Back to top- Dynamic Pricing, activated
- Products sorted into categories
Set up the discounts
↑ Back to top- Go to WooCommerce › Dynamic Pricing and choose Add rule on the Rules tab.
- Choose Category Pricing. The table lists every product category.
- Tick Clearance, leave Type on Percentage discount and enter 30 in Amount.
- Tick Hoodies and enter 20.
- Tick Mugs, set Type to Price discount and enter 5.
- Choose Save pricing.
The Rules tab now shows a Category Pricing group with one rule per category, such as 30% off · Clearance. To change an amount later, open the group’s menu and choose Edit as table.
What each column does
↑ Back to top| Column | What it does |
|---|---|
| On | Ticked, the category’s discount applies. Cleared, the discount is kept and switched off. |
| Category | The product category. |
| Type | Percentage discount takes a percentage off. Price discount takes an amount off each item. |
| Amount | A number, such as 30. |
What the customer is charged
↑ Back to topMeasured with the three discounts above:
| Product | Categories | Regular price | Charged |
|---|---|---|---|
| Rain jacket | Clearance | $100.00 | $70.00 |
| Pullover hoodie | Hoodies | $50.00 | $40.00 |
| Zip hoodie | Hoodies and Clearance | $50.00 | $35.00 |
| Coffee mug | Mugs | $20.00 | $15.00 |
| Logo tee | T-shirts | $40.00 | $40.00 |
A cart with one of each and two mugs comes to $215.00 instead of $280.00.
A product in two categories gets the larger discount. The zip hoodie is in Hoodies and Clearance, so it gets 30% off, not 20%.
Variations on the same setup
↑ Back to top| You want | Change |
|---|---|
| Pause one category’s discount | Open Edit as table and clear its tick. The amount stays for next time. |
| Remove a category’s discount | Clear its tick and empty its Amount. |
| A discount that ends on its own | Open the rule on the Rules tab and fill From and To under Dates. See A limited-time sale. |
| A category discount for trade customers only | Choose Add rule, then Simple. Set Kind to Simple discount, pick the category under Categories and choose the role under Who. |
| A lower price as the customer buys more from a category | See Tiered quantity discounts. |
The Dynamic Pricing documentation shows how rules work together.