Category discounts with Dynamic Pricing

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
  1. Go to WooCommerce › Dynamic Pricing and choose Add rule on the Rules tab.
  2. Choose Category Pricing. The table lists every product category.
  3. Tick Clearance, leave Type on Percentage discount and enter 30 in Amount.
  4. Tick Hoodies and enter 20.
  5. Tick Mugs, set Type to Price discount and enter 5.
  6. 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
ColumnWhat it does
OnTicked, the category’s discount applies. Cleared, the discount is kept and switched off.
CategoryThe product category.
TypePercentage discount takes a percentage off. Price discount takes an amount off each item.
AmountA number, such as 30.

What the customer is charged

↑ Back to top

Measured with the three discounts above:

ProductCategoriesRegular priceCharged
Rain jacketClearance$100.00$70.00
Pullover hoodieHoodies$50.00$40.00
Zip hoodieHoodies and Clearance$50.00$35.00
Coffee mugMugs$20.00$15.00
Logo teeT-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 wantChange
Pause one category’s discountOpen Edit as table and clear its tick. The amount stays for next time.
Remove a category’s discountClear its tick and empty its Amount.
A discount that ends on its ownOpen the rule on the Rules tab and fill From and To under Dates. See A limited-time sale.
A category discount for trade customers onlyChoose 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 categorySee Tiered quantity discounts.

The Dynamic Pricing documentation shows how rules work together.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.