Wholesale pricing by role with Dynamic Pricing

This recipe gives wholesale or trade customers their own prices with Dynamic Pricing: one catalogue with a retail price and a trade price. The cart totals below were measured on a real cart.

The price follows the WordPress user role. A customer in that role sees the trade price after logging in: in the shop, on the product page and in the cart. Everyone else sees the regular price.

What you need

↑ Back to top
  • Dynamic Pricing, activated
  • A user role for your trade customers. Any role works, including one a membership plugin created.
  • At least one customer in that role, so you can check the result

Two places to put it

↑ Back to top
UseWhen
A store rule on WooCommerce › Dynamic PricingTrade customers get the same discount across your catalogue or a category.
The product’s Pricing tabThe trade discount differs by product, or applies to selected products.

Route 1: the whole catalogue

↑ Back to top
  1. Go to WooCommerce › Dynamic Pricing and choose Add rule on the Rules tab, then Simple.
  2. Enter a Name, such as Wholesale 25% off.
  3. Set Kind to Simple discount.
  4. Set Type to Percentage discount and Amount to 25.
  5. Under Who, choose your wholesale role.
  6. Choose Save rule.

Measured with this rule on two products:

Signed in asRegular priceCharged
Retail customer$100.00$100.00
Retail customer$40.00$40.00
Wholesale customer$100.00$75.00
Wholesale customer$40.00$30.00

Route 2: one product

↑ Back to top
  1. Edit the product and open the Pricing tab in the Product data panel.
  2. Choose Add rule, then Simple.
  3. Enter a Name, such as Trade price.
  4. Set Kind to Simple discount, Type to Percentage discount and Amount to 25.
  5. Under Who, choose your wholesale role.
  6. Choose Save rule, then update the product.

Measured on a $100 product with this rule:

Signed in asQuantityUnit priceCharged
Guest4$100.00$400.00
Retail customer4$100.00$400.00
Wholesale customer1$75.00$75.00
Wholesale customer4$75.00$300.00

Role discounts and product rules together

↑ Back to top

A store rule and a product’s own rule both apply. Measured on a $100 product with quantity tiers of 20% off from 10, beside the 25% wholesale store rule: a wholesale customer buying 10 pays $60 each, $600.

To give trade customers the product’s own rules alone on those products:

  1. On the Rules tab, choose Add group and name it, such as Trade pricing.
  2. Open the wholesale rule’s menu and choose the new group under Move to group.
  3. Turn on Stop here on the Product rules group, above it.

Stop here covers every product that has its own rules. Every group below Product rules skips those products, including category, brand and order total discounts. To keep a discount on those products, move its group above Product rules.

It applies at every quantity. On a product with tiers from 5, a wholesale customer buying 1 pays the regular price. To keep a trade price at every quantity, give that product a rule for the wholesale role too.

Variations on the same rule

↑ Back to top
You wantChange
An amount off each unitType Price discount, amount 25 for $25 off each unit.
A set trade priceOn the product, Type Fixed price, amount 75.
Several trade levels, such as silver and goldOne rule for each role, together in a group set to Best price.
Trade customers also get quantity tiersOn the product, set Kind to Bulk and add your rows. See Tiered quantity discounts.
Trade pricing on one categoryIn the store rule, choose Add filter under Applies to and pick the category.

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.