Last updated 1 Dec 2026
B2B Pricing lets one WooCommerce store sell to retail shoppers and trade accounts at the same time. You write rules that say who pays what: a percentage off for a customer role, a fixed price for one customer, quantity tiers, prices by country, or no prices at all for guests. It also handles trade sign-up and approval, minimum orders and tax-exempt customers. This page covers setting it up, every setting, everyday tasks and what to check when a price looks wrong. See what the plugin does.
Quick start
Give a "Wholesale" customer group 25% off in five steps:
- Go to WooCommerce > Settings > B2B Pricing > Custom Roles, select Add Role, enter "Wholesale", and select Save changes.
- Go to Users, open a customer, set Role to Wholesale, and select Update User.
- Go to WooCommerce > B2B Pricing and select Add pricing rule.
- Choose Decrease by Percentage, enter 25 in Amount, turn on All products, and choose Wholesale in Roles.
- Select Publish, then use Price preview on the same screen, or log in as that customer, to see the new price.
The Get started with B2B Pricing checklist on the rules and settings screens tracks the same steps. Select Dismiss to hide it.
Installation
Bought on wpkoders.com
- Sign in to your account on wpkoders.com and open Licences. Your licence key is there, and in your order email.
- Select Download to get the plugin zip.
- In WordPress, go to Plugins > Add New Plugin > Upload Plugin, choose the zip, select Install Now, then Activate.
- Paste your licence key when the plugin asks for it. Updates then arrive in your dashboard like any other plugin.
Bought on WooCommerce.com
- Buy the plugin on WooCommerce.com. It's added to your WooCommerce.com account straight away.
- Download the zip from My Account > Downloads on WooCommerce.com.
- In WordPress, go to Plugins > Add New Plugin > Upload Plugin, choose the zip, select Install Now, then Activate.
- Connect your store to your WooCommerce.com account (WooCommerce > Extensions), so updates arrive in your dashboard like any other plugin.
Update on a staging copy first if your store takes orders all day. Every release is listed in the changelog below.
Requirements
- 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
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
The rules list shows each rule's Pricing Type, Customers, Products, and Priority, so you can see who pays what at a glance.
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 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:
- 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
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.
General Settings
- 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
- 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
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
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
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
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.
How-to guides
How to set up role based pricing and customer specific pricing
- Create the role in Custom Roles, for example "Wholesale", and assign it to your trade customers in Users.
- Go to WooCommerce > B2B Pricing > Add pricing rule.
- Choose a Rule Type, such as Decrease by Percentage, and an Amount.
- Choose the products, then set User Restrictions to Registered Users and choose the role in Roles.
- 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
- Create a rule with Rule Type set to Tiered Pricing.
- Choose Percentage off, Amount off per item, or Fixed price per item.
- Add a row for each tier, for example 1 at 25%, 10 at 30%, and 25 at 35%.
- 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.
How to hide prices from guests
- Create a rule with Rule Type set to Hide Price.
- Choose the products or categories.
- Set User Restrictions to Guest Users and select Publish.
- In General Settings, enter your Hidden price text, for example "Log in for trade prices".
How to set up trade account registration and approval
- Turn on registration on the My account page in WooCommerce > Settings > Accounts & Privacy.
- In B2B Pricing > Registration, turn on Enable Roles and Enable Admin Approval, and choose the Roles for Registration.
- Set Company name and VAT number to Optional or Required.
- In User Approval, turn on Enable Approve User and write your Pending Message.
- When customers register, go to Users, select them, and choose Approve and grant requested role in Bulk actions.
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.
How to set up tax exempt customers and minimum orders
- In General Settings, set Tax Exempt to Allow claim tax exempt for approved users (or the automatic option).
- Open each eligible customer in Users and tick Tax Exempt in B2B Options.
- 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.
If the cart is below the minimum, the customer sees what's missing and can't check out.
Video
- B2B pricing for every buyer
- Prices by role, customer or country, and quantity tiers
- Price preview, minimums and trade accounts
- Try it risk-free for 30 days
Read the transcript
Every buyer sees their own price. Automatically. But one price for everyone doesn't work for trade buyers. Stop juggling discount codes and price lists by email. Set prices by role, customer or country, all in one list. Your trade buyers log in, and see their own price right away. Quantity tiers reward bigger orders. Buy twelve, and the price drops automatically. The cart applies the right tier, and shows the savings. Preview exactly what any buyer will pay, before you publish a rule. Set minimum orders per role, so small trade orders don't eat your margins. Trade buyers sign up with their company and tax ID. And approve new trade accounts, with the right role, in one step. The right price for every buyer, and less admin for you. B2B Pricing, by WPKoders. Try it risk-free for 30 days on WooCommerce.com. Your success, koded.
Frequently asked questions
Several rules match the same customer. Which one is used?
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?
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?
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?
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?
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?
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?
Nothing, unless you turn on Delete data on uninstall in General Settings first. Custom roles are always kept.
Troubleshooting
A customer doesn't see their price
- 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
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
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
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
The role still has users. Assign them another role first.
Known limitations
- 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
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
- Quote Offer: let trade buyers request a quote for large or custom orders and turn the agreed quote into an order.
- Hide Price & Show Custom Button: replace hidden prices with a login link, an enquiry form, or your own button.
- Restrict Checkout: checkout rules beyond roles, such as maximum order amounts, product combinations, regions, or purchase history.
- PDF Invoice, Packing Slips & Credit Notes: sequentially numbered PDF invoices for your trade orders.
Support
Bought here, using the free Lite version, or a question before buying? Open a ticket with us: the developers who wrote the plugin reply within 1 business day.
Bought on WooCommerce.com? Open your ticket in your WooCommerce.com account, where your licence is.
Changelog
Version 1.1.0
- Improved Now requires WordPress 6.5 or later and WooCommerce 8.5 or later.
- Fixed Pricing rules are now resolved per product. When several rules match a customer, each product gets the first rule (by priority) that covers it; previously only the first matching rule was ever used.
- Fixed Category and variable-product rules now apply to variations (including subcategories); hidden prices can no longer be bypassed on variable products.
- Fixed Quantity-tier prices are always correct in the mini-cart and the block cart, also right after a quantity change.
- Fixed Variable product price ranges are cached per customer group, so guests never see wholesale ranges (and vice versa).
- Fixed Customer prices and hidden prices also apply in quick view, AJAX filters and page builders.
- Fixed Hidden prices are no longer reported as 0 in structured data and the Store API.
- Fixed "Everyone" rules now respect the Countries field.
- New "All products" option, tier modes (percentage off, amount off, fixed price per item) and a live price preview on the rule screen.
- New Checkout rules per role: minimum order amount and quantity, hidden payment and shipping methods.
- New Company name and VAT number fields on the registration form; "Approve and grant requested role" bulk action.
- New Block checkout "Claim tax exemption" checkbox built on the Store API.
- New Hidden price text setting, opt-in "Delete data on uninstall", wpml-config.xml.
- New Redesigned admin screens with a setup checklist, clearer rule editor and rule list.
- Improved No more full product queries per price; rules are memoized per request; geolocation only when a rule uses countries; storefront assets only where needed.
- Improved Page-cache context cookie (LiteSpeed Cache, WP Rocket), multi-currency conversion of fixed amounts (WPML/WCML, Aelia, CURCY), B2B Pricing Lite price filters disabled while active.
- Improved Accessible tier table (caption, headers, non-colour active tier, live total), labelled checkout checkbox, keyboard-operable admin controls.
- Improved Tested up to WordPress 7.1 and WooCommerce 11.2.
Version 1.0.4
- Security Tax exemption can only be claimed by logged-in customers marked "Tax Exempt" when the claim option is enabled. Previously any visitor could make their order tax-free, including on the block checkout.
- Security Only users who can manage WooCommerce can create, edit or publish pricing rules (Authors and Editors no longer can).
- Security "Custom User Roles" can no longer modify or delete administrator, shop manager or other existing privileged roles.
- Security Bulk Approve / Disapprove now checks permission per user, so shop managers cannot lock administrators out.
- Fixed PHP 8 fatal error on products without a price (grouped, call-for-price) covered by a pricing rule.
- Fixed With "user approval" enabled, creating an account at checkout (or adding a user in wp-admin) no longer aborts the request.
- Fixed Renaming a custom role keeps its slug, so users assigned to it keep their role.
- Fixed Tax exemption is applied consistently on classic and block checkout, and no longer overrides exemptions set by VAT-number plugins.
- Improved New filter b2b_rule_capability; new helper b2b_get_tax_exempt_mode().
- Improved Tested up to WordPress 7.1 and WooCommerce 11.2.
- Improved Version 1.0.3 was skipped. The previous release's changelog listed 1.0.3 while its plugin header said 1.0.2.
Version 1.0.3
- Fixed Tiered-pricing meta-box no longer triggers a PHP 8 "illegal string offset" warning when creating a new rule (empty default row is now an empty array, not an empty string).
- Fixed Saving the Custom Roles section no longer overwrites the General Settings (Tax Exempt option, Pricing Table Position) with empty values — the generic field save is now skipped when on the custom-roles section.
- Fixed b2b_pricing_table AJAX now verifies wc_get_product() returned a valid WC_Product before rendering the table, preventing a fatal when a stale/invalid variation ID is posted.
- Fixed User list columns (User Approval, Requested Role) now esc_html() the displayed meta to prevent stored XSS via crafted user-meta values.
- Fixed b2b-pricing CPT is now registered with public=false / publicly_queryable=false / has_archive=false / query_var=false, eliminating a dead public archive URL and a mismatched public/publicly_queryable configuration.
- Fixed Pending-account notice on the My Account login page now reads from b2b_user_status_pending_message (the option that is actually exposed in settings) instead of the undefined b2b_message_after_registration; typo "You account" corrected to "Your account"; redundant WP_Error wrapper removed.
- Fixed Default pending/disapproved messages in b2b_authenticate_user now read "Your account needs admin approval." and "Your account has been disapproved." (previously "You account need…" / "You account has been…").
Version 1.0.2
- Fixed Undefined variable in disapproval email notification.
- Fixed Admin assets now scoped to B2B Pricing screens only.
- Fixed Frontend script now scoped to WooCommerce and account pages.
- Fixed Price floor added — discount types can no longer produce negative prices.
- Fixed Category product lookup skipped when no categories are configured.
- Fixed WC check changed to class_exists() for reliable detection.
- Fixed Singleton pattern applied to prevent double instantiation.
- Fixed Plugin version constant added.
- Fixed else if replaced with elseif throughout (WPCS).
- Fixed Discount and Price column labels in the pricing table now use distinct b2b_discount_label and b2b_pricing_label filters (were all bound to b2b_quantity_label).
- Fixed Pricing table discounted price now floored at 0 (was allowing negative prices in the display).
- Fixed b2b_user_country() no longer triggers an undefined array key warning when WC_Geolocation returns no country.
- Fixed b2b_add_tax_status_to_order_meta() now returns early when tax exemption is disabled, preventing a PHP warning from indexing false.
- Fixed User-status dropdown "Pending" option now passes false as the third argument to selected() so the attribute renders inline instead of being echoed early.
- Fixed Duplicate id="b2b_user_status" on the tax-exempt checkbox renamed to b2b_user_tax_exempt to fix invalid HTML and JS targeting collisions.
- Fixed b2b_set_tax_exempt AJAX now passes the actual claim value to set_is_vat_exempt() instead of always setting true (unchecking the box no longer left the customer VAT-exempt).
- Fixed product_id and variation_id in the pricing-table AJAX are now cast with absint() instead of treated as free-form text.
- Fixed b2b_authenticate_user is now registered with add_filter() and guards against $user being null (avoided a fatal on the first authenticate filter call).
- Fixed b2b_auth_new_customer no longer overwrites the filter's $status with the user_meta value, returning a proper boolean as the filter contract requires.
- Fixed Post-registration redirect now uses the My Account permalink instead of the bare post slug (which produced an invalid URL).
- Fixed Wholesale registration role request is now validated against the admin-allowed b2b_choose_roles whitelist (prevents privilege escalation by submitting an arbitrary role slug).
- Fixed b2b_grant_roles now bails early when no role was requested, null-checks the user object, and clears the b2b_user_role_requested meta after sending the email (stops the approval/disapproval email from re-firing on every later role change).
- Fixed b2b_bulk_action_handler now performs a current_user_can( 'edit_users' ) check and skips emailing when the user object/email is missing.
- Fixed b2b_get_customers AJAX now requires list_users capability, returns early on an empty term, and uses a bounded number argument.
- Fixed Removed broken role-migration loop in custom-roles settings save that referenced undefined $termObj and $new_slug (would fatal under PHP 8 with custom roles configured).
- Fixed Tiered-pricing save loop now verifies that b2b_quantity and b2b_discount POST values are arrays before counting/iterating (PHP 8 compatibility).
- Fixed Include/exclude products, categories, customers, and countries POST inputs are now type-checked, cast with absint where appropriate, and array-validated before save.
- Fixed Rule type and user restriction values are now validated against an allow-list on save.
- Fixed Include/Exclude Products and Customers meta-box selects now always emit a balanced <select>/</select> pair (previously the closing tag was conditional, breaking the form when no options were selected).
- Fixed Pricing-table tab AJAX in frontend-script.js now targets the correct woocommerce-Tabs-panel–pricing_table / pricing_table_tab selectors (the JS referenced the legacy discount_table class so variation switches never populated the tab).
- Fixed Missing whitespace between value and name attributes on the classic-checkout tax-exempt checkbox.
- Fixed "Tax Exempt:" label on the admin order screen is now translatable.
- Fixed Loose == comparison in bulk-action dispatch tightened to === .
Version 1.0.1
- Fixed General bug fixes and stability improvements.
Version 1.0.0
- Improved Initial release.
Was this page helpful?
Thanks: every answer helps us improve this page.
Plugin releases and store tips, once a month
New releases, update warnings and one fix worth making.



