Start a free 14-day trial by December 1 on a wide range of WooCommerce Marketplace extensions and themes. Explore products

B2B Pricing

B2B Pricing gives each customer group its own prices in WooCommerce: role based pricing, customer specific pricing, country prices, quantity discounts, and hidden prices for guests, all from one list of rules. It’s for stores that sell to retail shoppers and trade accounts at the same time and need trade account registration, approval, minimum orders, and tax exempt customers. View the product page.

Quick start

↑ Back to top

Give a “Wholesale” customer group 25% off in five steps:

  1. Go to WooCommerce > Settings > B2B Pricing > Custom Roles, select Add Role, enter “Wholesale”, and select Save changes.
  2. Go to Users, open a customer, set Role to Wholesale, and select Update User.
  3. Go to WooCommerce > B2B Pricing and select Add pricing rule.
  4. Choose Decrease by Percentage, enter 25 in Amount, turn on All products, and choose Wholesale in Roles.
  5. Select Publish, then use Price preview on the same screen, or log in as that customer, to see the new price.
Get started with B2B Pricing checklist with four steps: create a customer role, create a pricing rule, mark a customer tax exempt, and preview prices

The Get started with B2B Pricing checklist on the rules and settings screens tracks the same steps. Select Dismiss to hide it.

Installation

↑ Back to top

To start using a product from WooCommerce.com, you can use the “Add to store” functionality on the order confirmation page or the My subscriptions section in your account.

  1. Navigate to My subscriptions.
  2. Find the Add to store button next to the product you’re planning to install.
  3. Follow the instructions on the screen, and the product will be automatically added to your store.

Alternative options and more information at:
Managing WooCommerce.com subscriptions.

Requirements

↑ Back to top
  • WordPress 6.5 or later.
  • WooCommerce 8.5 or later.
  • PHP 7.4 or later.
  • For trade account registration: tick On “My account” page under Account creation in WooCommerce > Settings > Accounts & Privacy.
  • For country rules that target guests: WooCommerce geolocation, set in WooCommerce > Settings > General > Default customer location.

The plugin works with the Cart and Checkout blocks, the classic cart and checkout, and High-Performance Order Storage (HPOS). Fixed amounts are converted automatically with WPML and WooCommerce Multilingual, Aelia Currency Switcher, and CURCY. A wpml-config.xml file is included for translating admin texts.

Setup and configuration

↑ Back to top

B2B Pricing has two places in your dashboard:

  • WooCommerce > B2B Pricing: your pricing rules.
  • WooCommerce > Settings > B2B Pricing: five sections for General Settings, User Approval, Registration, Custom Roles, and Checkout Rules.

The header on these screens links to Pricing rules, Settings, this documentation, and support.

Pricing rules

↑ Back to top

The rules list shows each rule’s Pricing Type, Customers, Products, and Priority, so you can see who pays what at a glance.

List of B2B pricing rules with a contract price, tiered pricing, country, role-based discounts, and a hide price rule

Select Add pricing rule to create one. Give it a name, such as “Wholesale 10% off”, then fill in the sections below.

Price change:

Rule editor with the Tiered Pricing rule type and three quantity tiers of 25, 30, and 35 percent
  • Rule Type: Decrease by Percentage, Decrease by Fixed Price, Fixed Price, Increase by Percentage, Increase by Fixed Price, Tiered Pricing, or Hide Price. Hide Price hides the price and the Add to cart button.
  • Amount: A percentage for percentage rules, or an amount in your store currency for fixed rules. Enter a positive number; the rule type sets the direction. A percentage decrease can’t be more than 100%.
  • Tiered Pricing: For tiered rules, choose Percentage off, Amount off per item, or Fixed price per item, then add rows with From quantity and Discount / Amount. Each row applies from its quantity up to the next row. Quantities are counted per cart line, so each variation has its own tier.

Products:

  • Apply to: Turn on All products, or pick products and categories below.
  • Include Products: Products or single variations.
  • Include Categories: Categories include their subcategories, and variable products include all their variations.
  • Exclude Products: Products the rule never touches.

Customers:

Rule editor Products, Customers, and Priority sections with roles, customers, and countries
  • User Restrictions: Registered Users (logged-in customers, optionally limited to roles or customers), Guest Users (visitors who aren’t logged in), or Everyone.
  • Roles: The customer roles the rule applies to. Leave it empty for any role.
  • Customers: Specific customer accounts. When both roles and customers are set, a customer must match both.
  • Countries: Logged-in customers are matched by billing country (or shipping country), guests by geolocated country. Leave it empty for all countries.

Priority:

  • Priority: Lower numbers are checked first. For each product, the first rule that matches the customer and covers the product is used, and other rules are ignored for that product. A rule for one category doesn’t block a lower-priority rule for another category.

Price preview

↑ Back to top

The Price preview box on the rule screen shows the price a customer would pay with this rule, before you save it. Choose a Product, a Customer role (or a guest), and a Quantity, then select Preview price.

Price preview box showing the catalog price of $42.00 and the price per item at quantity 10 of $29.40 for the Wholesale role

General Settings

↑ Back to top
General settings with tax exempt options, pricing table position, hidden price text, and delete data on uninstall
  • Tax Exempt: Disable Tax Exempt, Automatically Tax Exempt approved users on checkout, or Allow claim tax exempt for approved users. It applies to customers marked Tax Exempt on their user profile.
  • Pricing Table Position: Where the quantity-tier table of Tiered Pricing rules shows on product pages: Before Add to Cart Button, After Add to Cart Button, or Product Tabs (a “Pricing Table” tab).
  • Hidden price text: Shown instead of the price for products covered by a Hide Price rule, for example “Log in to see prices”. The default is “Prices hidden”.
  • Delete data on uninstall: When the plugin is deleted, also delete its settings, pricing rules, and B2B user data. Custom roles are always kept so customers aren’t left without a role.

User Approval

↑ Back to top
User approval settings with approve new users, pending and disapprove messages, and approval emails
  • Enable Approve User: New accounts start as Pending and need your approval before they can log in.
  • Pending Message: Shown to new customers after they register and when a pending account tries to log in.
  • Disapprove Message: Shown when a disapproved account tries to log in.
  • Enable, Subject, and Message (approved): Email the customer when you approve the account.
  • Enable, Subject, and Message (disapproved): Email the customer when you disapprove the account.

Registration

↑ Back to top
Registration settings with role selection, role status notifications, and company name and VAT number fields

Role Selection:

  • Enable Roles: Let customers choose a role on the My account registration form.
  • Enable Admin Approval: The requested role is only given when you approve it. When this is off, the customer gets the requested role right away.
  • Role Field Label: The label of the role field, for example “Account type”.
  • Make the Field Required: Customers must choose a role to register.
  • Roles for Registration: The roles customers can choose.

Role Status Notifications:

  • Enable, Email Subject, Email Heading, and Message: Email the customer when their requested role is approved.
  • Enable, Email Subject, Email Heading, and Message: Email the customer when their requested role is denied.

Registration fields:

  • Company name: Hidden, Optional, or Required. Saved as the customer’s billing company.
  • VAT number: Hidden, Optional, or Required.
  • VAT number label: For example “Tax ID”, “ABN”, or “EIN”.

Custom Roles

↑ Back to top
Custom user roles table with Wholesale and Distributor roles, their slugs, and number of users

Create customer roles such as “Wholesale” or “Distributor”, then target them in pricing rules and checkout rules. Select Add Role, enter the Role Label and Role Slug, and select Save changes. The slug is fixed once saved, so renaming a role never detaches its customers. A role that still has users isn’t removed; assign those users another role first.

Checkout Rules

↑ Back to top
Checkout rules for the Wholesale role with a minimum order amount of 150, minimum quantity of 6, and hidden payment and shipping methods

Each role, including guests, has its own block:

  • Minimum order amount: The cart subtotal required to check out. Leave it empty for no minimum.
  • Minimum quantity: The number of items required in the cart to check out.
  • Hide payment methods: Payment methods not offered to this role.
  • Hide shipping methods: Shipping methods not offered to this role.

When a customer has several roles, the highest minimum applies and the hidden methods of all their roles are hidden.

Customer profile and users list

↑ Back to top

Each user profile has a B2B Options section with User Status (Approved, Disapproved, or Pending), the Requested Role, the VAT number, and Tax Exempt. The order screen shows the customer’s VAT number and whether tax exemption was applied.

B2B Options on a user profile with user status, requested role, VAT number, and tax exempt checkbox

How-to guides

↑ Back to top

How to set up role based pricing and customer specific pricing

↑ Back to top
  1. Create the role in Custom Roles, for example “Wholesale”, and assign it to your trade customers in Users.
  2. Go to WooCommerce > B2B Pricing > Add pricing rule.
  3. Choose a Rule Type, such as Decrease by Percentage, and an Amount.
  4. Choose the products, then set User Restrictions to Registered Users and choose the role in Roles.
  5. For one customer’s contract price, create another rule with Fixed Price, pick the customer in Customers, and give it a lower Priority number so it’s checked first.

How to add tiered pricing and quantity discounts

↑ Back to top
  1. Create a rule with Rule Type set to Tiered Pricing.
  2. Choose Percentage off, Amount off per item, or Fixed price per item.
  3. Add a row for each tier, for example 1 at 25%, 10 at 30%, and 25 at 35%.
  4. Choose the products and customers, then select Publish.

The product page shows a “Quantity discounts” table with each tier and its price per item, and a summary that updates as the customer changes the quantity. The cart, mini-cart, and block cart apply the matching tier.

Product page with a quantity discounts table showing 25, 30, and 35 percent tiers and the price per item

How to hide prices from guests

↑ Back to top
  1. Create a rule with Rule Type set to Hide Price.
  2. Choose the products or categories.
  3. Set User Restrictions to Guest Users and select Publish.
  4. In General Settings, enter your Hidden price text, for example “Log in for trade prices”.
Shop category for a guest with hidden prices and the text Log in for trade prices instead of the price

How to set up trade account registration and approval

↑ Back to top
  1. Turn on registration on the My account page in WooCommerce > Settings > Accounts & Privacy.
  2. In B2B Pricing > Registration, turn on Enable Roles and Enable Admin Approval, and choose the Roles for Registration.
  3. Set Company name and VAT number to Optional or Required.
  4. In User Approval, turn on Enable Approve User and write your Pending Message.
  5. When customers register, go to Users, select them, and choose Approve and grant requested role in Bulk actions.
Trade account registration form with company name, tax ID, and account type fields

The Users screen shows a User Approval and a Requested Role column. The bulk actions are Approve User, Approve and grant requested role, and Disapprove User.

Users screen with User Approval and Requested Role columns and the Approve and grant requested role bulk action

How to set up tax exempt customers and minimum orders

↑ Back to top
  1. In General Settings, set Tax Exempt to Allow claim tax exempt for approved users (or the automatic option).
  2. Open each eligible customer in Users and tick Tax Exempt in B2B Options.
  3. In Checkout Rules, enter a Minimum order amount or Minimum quantity for the role.

Eligible customers see a “Claim tax exemption” checkbox at checkout. Guests and customers who aren’t marked tax exempt can never claim it.

Checkout order summary with the Claim tax exemption checkbox ticked and no sales tax

If the cart is below the minimum, the customer sees what’s missing and can’t check out.

Cart with the error Your account has a minimum order quantity of 6 items. Add 5 more items to check out

Video

↑ Back to top

Frequently asked questions

↑ Back to top

Several rules match the same customer. Which one is used?

↑ Back to top

For each product, the first rule by priority (lowest number first) that covers the product. Use the price preview on the rule screen to check the result.

Do category rules apply to variable products?

↑ Back to top

Yes. A rule that covers a variable product or its category applies to all its variations, and excluding a variable product excludes its variations. You can also target single variations.

How do quantity tiers appear to buyers?

↑ Back to top

The tier table on the product page lists each tier and its price per item, and the cart applies the matching tier. The price under the product title and in the shop grid stays your catalog price for products covered by a tier rule.

Can I set a price per user role and per country?

↑ Back to top

Yes. Combine Roles and Countries in one rule. For example, a 30% wholesale price for customers in Germany, France, and the Netherlands, and 25% for other wholesale customers with a higher priority number.

Does it work with the Cart and Checkout blocks?

↑ Back to top

Yes. Rule prices, tier prices, hidden prices, minimum orders, hidden payment and shipping methods, and the tax exemption claim all work in the block cart and checkout.

Does it work with page caching?

↑ Back to top

Logged-in customers normally bypass page caches. If your cache serves logged-in users or you use country rules for guests, make the cache vary on the b2b_pricing_ctx cookie. LiteSpeed Cache and WP Rocket are registered automatically; clear the WP Rocket cache once after activating.

What happens to my data if I delete the plugin?

↑ Back to top

Nothing, unless you turn on Delete data on uninstall in General Settings first. Custom roles are always kept.

Troubleshooting

↑ Back to top

A customer doesn’t see their price

↑ Back to top
  • Check that the customer is logged in and has the role in the rule.
  • Check that the rule covers the product and isn’t excluded.
  • A rule with a lower Priority number may cover the product first. Rules don’t stack.
  • Use Price preview with the same product, role, and quantity.

New customers can’t log in

↑ Back to top

Enable Approve User is on, so new accounts stay Pending until you approve them in Users.

The role field doesn’t show on the registration form

↑ Back to top

Turn on registration on the My account page in WooCommerce > Settings > Accounts & Privacy, and turn on Enable Roles with at least one role in Roles for Registration.

The Claim tax exemption checkbox doesn’t show at checkout

↑ Back to top

The customer needs Tax Exempt ticked on their profile and an approved account, and Tax Exempt in General Settings must be set to the claim option.

A custom role can’t be removed

↑ Back to top

The role still has users. Assign them another role first.

Known limitations

↑ Back to top
  • The product page and shop grid show the catalog price for products covered by a Tiered Pricing rule. The tier table and the cart show the tier price.
  • Only one rule applies to each product for a customer. A tier rule therefore replaces a role discount on the products it covers.

Developer notes

↑ Back to top

All hooks are filters.

  • b2b_pricing_rule_covers_product ($covers, $rule, $product_id, $parent_id): Whether a rule covers a product.
  • b2b_pricing_cart_tier_price ($unit, $base, $cart_item, $rule): The tier price of a cart item.
  • b2b_pricing_convert_amount ($converted, $amount): Converts fixed amounts for other currency switchers.
  • b2b_pricing_customer_country ($country): The country used for country rules.
  • b2b_pricing_is_frontend_request ($is_frontend): Whether prices are changed in the current request.
  • b2b_pricing_context_cookie ($enabled): Turns the b2b_pricing_ctx cache cookie on or off.
  • b2b_pricing_min_amount_message ($message, $min_amount, $subtotal): The minimum order amount notice.
  • b2b_pricing_min_qty_message ($message, $min_qty, $count): The minimum quantity notice.
  • b2b_price_text ($text): The hidden price text.
  • b2b_pricing_table_caption ($caption, $product): The tier table caption.
  • b2b_product_tab_title ($title): The title of the Pricing Table tab.
  • b2b_summary_title, b2b_quantity_label, b2b_discount_label, b2b_pricing_label ($text): Tier table labels.
  • b2b_rule_capability ($capability): The capability needed to manage rules. Default manage_woocommerce.

Works great with

↑ Back to top

Support

↑ Back to top

Need help? Contact WooCommerce.com support for B2B Pricing. Include your WordPress, WooCommerce, and plugin versions and the rule you’re testing.

Related Products

WooCommerce Subscriptions is a WooCommerce extension that lets customers subscribe to your products or...

Offer add-ons like gift wrapping, special messages or other special options for your products.

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.