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| Use | When |
|---|---|
| A store rule on WooCommerce › Dynamic Pricing | Trade customers get the same discount across your catalogue or a category. |
| The product’s Pricing tab | The trade discount differs by product, or applies to selected products. |
Route 1: the whole catalogue
↑ Back to top- Go to WooCommerce › Dynamic Pricing and choose Add rule on the Rules tab, then Simple.
- Enter a Name, such as Wholesale 25% off.
- Set Kind to Simple discount.
- Set Type to Percentage discount and Amount to 25.
- Under Who, choose your wholesale role.
- Choose Save rule.
Measured with this rule on two products:
| Signed in as | Regular price | Charged |
|---|---|---|
| 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- Edit the product and open the Pricing tab in the Product data panel.
- Choose Add rule, then Simple.
- Enter a Name, such as Trade price.
- Set Kind to Simple discount, Type to Percentage discount and Amount to 25.
- Under Who, choose your wholesale role.
- Choose Save rule, then update the product.
Measured on a $100 product with this rule:
| Signed in as | Quantity | Unit price | Charged |
|---|---|---|---|
| Guest | 4 | $100.00 | $400.00 |
| Retail customer | 4 | $100.00 | $400.00 |
| Wholesale customer | 1 | $75.00 | $75.00 |
| Wholesale customer | 4 | $75.00 | $300.00 |
Role discounts and product rules together
↑ Back to topA 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:
- On the Rules tab, choose Add group and name it, such as Trade pricing.
- Open the wholesale rule’s menu and choose the new group under Move to group.
- 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 want | Change |
|---|---|
| An amount off each unit | Type Price discount, amount 25 for $25 off each unit. |
| A set trade price | On the product, Type Fixed price, amount 75. |
| Several trade levels, such as silver and gold | One rule for each role, together in a group set to Best price. |
| Trade customers also get quantity tiers | On the product, set Kind to Bulk and add your rows. See Tiered quantity discounts. |
| Trade pricing on one category | In the store rule, choose Add filter under Applies to and pick the category. |
The Dynamic Pricing documentation shows how rules work together.