🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

WooCommerce Wholesale & B2B Add-on Setup Guide

Updated 11 min read WooCommerce Store & Checkout
On this page
  1. Video walkthrough
  2. Step 1: Install and Activate Your License
  3. Step 2: Create Your Wholesale Roles
  4. Step 3: Give Customers a Wholesale Role
  5. Step 4: Set Wholesale Prices on Products
  6. Step 5: Hide Prices from Guests (Catalog Mode)
  7. Step 6: Show Products Only to Some Customers
  8. Step 7: The Registration Form
  9. Step 8: Approve or Decline Applications
  10. Step 9: The Bulk Order Table
  11. Step 10: Minimum Orders, Tax and Methods at Checkout
  12. Step 11: Import and Export Wholesale Prices
  13. Works with Price Breaks & Cart Deals
  14. License: What Needs an Active Key
  15. Troubleshooting
  16. A wholesale buyer sees retail prices
  17. The order cannot be placed
  18. The registration form does not appear
  19. Frequently Asked Questions
  20. Does it work with the Checkout block?
  21. Can one customer have different prices from another in the same role?
  22. Is anything sent to an outside service?

Video walkthrough

WooCommerce Wholesale Prices & B2B Roles: Minimum Orders, Payment Rules
Watch: give WooCommerce wholesale buyers their own prices, a minimum order and their own payment methods. Watch on YouTube

The WooCommerce Wholesale & B2B Add-on turns a WooCommerce store into a shop that sells to businesses and to the public at the same time. Wholesale customers get their own user role and see their own prices; everyone else keeps seeing the retail price. On top of the prices you decide, per role, the minimum order, whether tax is charged, which payment and shipping methods are offered and which products can be seen at all. A registration form collects applications that you approve or decline, and a bulk order table lets approved buyers order dozens of products in one go.

This guide walks through every screen in the order you will use them. The examples use one store throughout: a coffee roaster in Portland, Maine, that sells beans, mugs and brewing gear to home customers and, at trade prices, to cafés, offices and grocers. It has two wholesale roles: Wholesale buyer for cafés and offices, and Distributor for shops that resell.

System Requirements & Prerequisites

  • WordPress: Version 6.5 or higher
  • PHP: Version 7.4 or higher (tested on 7.4 and 8.3)
  • WooCommerce: Version 8.9 or higher (tested up to 11.2), Checkout block or classic checkout, block and classic themes, HPOS on or off
  • License: an active GravityExtra license key for the registration approval flow, the bulk order table and the price CSV (see the license section)

Step 1: Install and Activate Your License

  1. Download the add-on zip from your GravityExtra account and go to Plugins → Add New → Upload Plugin.
  2. Upload the zip, click Install Now and then Activate. WooCommerce must be active.
  3. Open WooCommerce → Wholesale → License, paste your key and click Activate License.

After activation there is one wholesale role, Wholesale buyer, with no minimum order and no restrictions. Nothing changes for your retail customers until you give a customer that role.

Step 2: Create Your Wholesale Roles

Open WooCommerce → Wholesale → Wholesale roles. Each card is one role, or tier. A role is a real WordPress user role with the same rights as a WooCommerce customer, so a wholesale buyer can log in, see My Account and check out like anyone else. Click Add wholesale role for each extra tier, give it a name and save.

The Wholesale roles screen: a Wholesale buyer role with a 150 dollar minimum order, bank transfer and check as payment methods and delivery and pickup as shipping methods, and a Distributor role with a 30 percent default discount, a 24 item minimum and tax exemption
Each wholesale role has its own minimum order, default discount, tax exemption and payment and shipping methods.
  • Minimum order — the smallest cart subtotal, before tax and shipping, that the role may check out. Leave it empty for no minimum.
  • Minimum items per order — the smallest number of items in the cart, counted across all products.
  • Default discount — an optional percentage off the regular price for products that have no wholesale price for this role. Leave it empty and those products sell at the retail price. Fixed prices on the product always come first.
  • Tax exempt — no tax on this role’s orders, for buyers with a resale certificate.
  • Payment methods — tick the methods this role may use. None ticked means every enabled method. A common pattern: bank transfer and check for wholesale, card payments for retail.
  • Shipping methods — the same for shipping. Leave free shipping out for wholesale buyers, or offer pickup only to distributors that collect pallets.

The Distributor role of the coffee roaster has a 30% default discount, a minimum of 24 items, tax exemption, bank transfer only and delivery only. A role can be removed with Remove role; its users become retail customers, and wholesale prices saved for that role are ignored.

Step 3: Give Customers a Wholesale Role

There are three ways a customer becomes a wholesale buyer:

  • By hand — open Users → Edit for the customer and choose the role in the Wholesale section at the bottom. No e-mail is sent, which suits accounts you set up during a phone call.
  • By application — the customer fills in the registration form and you approve the application (Steps 7 and 8).
  • Automatically — tick Approve applications automatically in the settings and every application gets the role at once.

A customer has at most one wholesale role at a time. If you add several roles to one user through another tool, the first role in your list of roles counts.

Step 4: Set Wholesale Prices on Products

Edit a product and open the Wholesale tab in the Product data box. There is one price field per role. Enter the fixed price that role pays, for example $19.50 for a bag of beans that sells at $32.00 retail. Leave a field empty to use the role’s default discount, or the retail price when the role has none. A price of 0 is allowed for free samples.

For variable products, open the Variations tab and expand each variation: every variation has its own Wholesale prices fields under the normal price fields. The shop then shows the wholesale price range, such as $8.40 – $25.00, to wholesale buyers.

Wholesale buyers see the retail price crossed out next to their own price, labelled Retail and Your price. You can rename both labels or hide the retail price in Settings → Prices. When a product is on sale and the sale price is lower than the wholesale price, wholesale buyers pay the sale price; untick Sales in the settings if wholesale prices should always apply.

The price is used everywhere WooCommerce shows or charges one: shop and category pages, product blocks, the product page, the cart and mini cart, the Cart and Checkout blocks, the classic checkout and the order itself.

Step 5: Hide Prices from Guests (Catalog Mode)

Many B2B stores do not show prices to the public. In Settings → Catalog mode, tick the groups that should not see prices: guests, retail customers, or even a wholesale role. Those visitors see your text instead of the price — “Log in with a wholesale account to see prices.” by default — and no Add to cart button. On the product page the text is followed by Log in and Apply for a wholesale account links.

Catalog mode also covers the Store API, so prices do not leak through product blocks that load data in the browser, and a product cannot be added to the cart through a link.

Step 6: Show Products Only to Some Customers

In the product’s Wholesale tab, Who can see it has three choices: Everyone; Only the ticked groups, for trade-only items such as a case of 12 syrup bottles; and Everyone except the ticked groups, for retail-only items such as gift cards. A hidden product disappears from the shop, categories, search results, product blocks, related products and the order table, its page shows “not found”, and it cannot be bought.

Step 7: The Registration Form

Create a page such as “Wholesale accounts” with a few lines about your trade terms, then choose it as the Registration page in Settings → Registration. The form appears under your text. You can also add the Wholesale registration form block to any page in the block editor; there is no shortcode to remember.

  • The form always asks for first name, last name and e-mail. Company name, tax or VAT number, phone and business address can be switched on or off.
  • Under Your own questions, add up to fifteen questions: a text field, a paragraph, a dropdown with your options, or a checkbox such as “I accept the trade terms”. Each can be required.
  • Visitors without an account get an account with a random password; they choose their own password when you approve them. Customers who are already logged in apply with their account and do not type their e-mail again.
  • A hidden spam trap stops simple bots, and an e-mail address that already has an account is refused with a message asking the visitor to log in.

After sending, the applicant sees a thank-you message, and the store receives a New wholesale application e-mail with every answer and a link to review it.

Step 8: Approve or Decline Applications

WooCommerce → Wholesale opens on Applications. The menu shows a counter while applications are waiting. Each row shows the applicant, the company, the tax number, the address, your own questions and the date.

The Applications screen of the Wholesale add-on in the WordPress admin: three waiting applications from a café, an office group and a grocer with e-mail, phone, company, tax ID, address, answers to the store's own questions, the date, a wholesale role menu, an Approve button and a Decline link
WooCommerce → Wholesale → Applications: review each business and approve it with a role, or decline it with a reason.
  • Choose the role in the dropdown — the role from the settings is preselected — and click Approve. The customer gets the role at once and receives the Wholesale account approved e-mail. New accounts get a Set your password and log in link in it.
  • Click Decline…, type an optional reason and click Decline application. The customer receives the Wholesale application declined e-mail with your reason and keeps a normal retail account.

The three e-mails are WooCommerce e-mails: edit their subject, heading, extra text and recipients in WooCommerce → Settings → Emails, and they use your WooCommerce e-mail design. Themes can override the templates like any WooCommerce e-mail template.

Step 9: The Bulk Order Table

Wholesale buyers rarely buy one item. Choose a page as the Order table page in Settings → Order table, or add the Wholesale order table block to any page. Logged-in wholesale buyers see every product and variation they may buy in one table, with image, name, SKU, stock, retail price, their price and a quantity box.

The bulk order table for a logged-in wholesale buyer: a search box and category menu, then rows for coffee beans, single origin variations, a mug, a brewing kit and a syrup case with SKU, stock, the retail price crossed out, the wholesale price and quantity boxes, and a bar with the running total and an Add to cart button
Wholesale buyers see every product and variation with their price, type quantities and add everything to the cart at once.

A search box filters by name or SKU as the buyer types, and a category menu narrows the list. The bar at the bottom adds up the items and the total while the buyer types quantities. Add to cart puts everything in the cart in one step and opens the cart. You can limit the table to some categories and hide the stock column. Guests and retail customers see a short message with log-in and application links instead of the table. Variations with an “any” attribute need a choice on the product page and are left out of the table.

Step 10: Minimum Orders, Tax and Methods at Checkout

The rules of Step 2 apply in the cart, the Cart block, the Checkout block and the classic checkout. When a wholesale cart is below the minimum, the buyer sees exactly what is missing, for example “Wholesale orders start at $150.00 (before tax). Add $111.00 more to check out.”, and the order cannot be placed until the cart reaches the minimum. Tax-exempt roles see no tax lines. Only the allowed payment and shipping methods are offered.

Every order placed by a wholesale buyer stores the role. The order screen shows “Wholesale order: Wholesale buyer” under the billing address, and the orders list gets a Buyer column with the role or “Retail”, with high-performance order storage on or off.

Step 11: Import and Export Wholesale Prices

For larger catalogs, open WooCommerce → Wholesale → Prices CSV. Export all products downloads one row per product or variation and role with the columns product_id, sku, name, regular_price, role and wholesale_price. Edit the wholesale_price column in a spreadsheet and import the file.

  • Rows are matched by product_id, or by sku when the ID is empty. Only product_id or sku, role and wholesale_price are required; other columns are ignored.
  • An empty wholesale_price removes that role’s price. Commas and dots both work as the decimal separator.
  • Tick Check the file only for a dry run. The report lists how many prices would be set or removed and every skipped line with the reason, such as an unknown role key.
  • Values a spreadsheet could read as a formula are written as plain text in the export.

Works with Price Breaks & Cart Deals

If you also use Price Breaks & Cart Deals for WooCommerce, the two add-ons work together without settings: the wholesale price is applied first, and quantity price breaks and cart deals then apply on top of it. In the coffee roaster’s test, ten bags with a “10% off from 10 bags” rule cost a wholesale buyer $17.55 each (10% off $19.50) and a retail customer $28.80 (10% off $32.00).

License: What Needs an Active Key

Without an active license your store keeps working for wholesale buyers: wholesale prices, catalog mode, minimum orders, product visibility, tax exemption and method rules all stay on. Three features pause until the key is active again: the registration form and the approval of applications, the bulk order table, and the price CSV export and import. Their screens show a notice with a link to the License tab.

Troubleshooting

A wholesale buyer sees retail prices

Check the user’s profile: the Wholesale section must show a wholesale role. Then check the product: the Wholesale tab must have a price for that role, or the role must have a default discount. Prices show only while the buyer is logged in. Page caching plugins must not serve cached pages to logged-in users.

The order cannot be placed

Look at the cart: a minimum order message means the cart is below the role’s amount or number of items. If no payment method is shown, the role’s allowed payment methods may all be disabled in WooCommerce.

The registration form does not appear

Check that a registration page is chosen in the settings, or that the block is on the page, and that the license is active. Logged-in wholesale buyers see a short “Your wholesale account is active” note instead of the form.

Frequently Asked Questions

Does it work with the Checkout block?

Yes. Prices, minimum orders, tax, and payment and shipping methods work in the Cart and Checkout blocks and in the classic cart and checkout, with block and classic themes.

Can one customer have different prices from another in the same role?

Prices are set per role. Create a separate role for a customer who needs special prices, such as a large distributor.

Is anything sent to an outside service?

No. Roles, prices and applications are stored in your own database, and the e-mails go out through WooCommerce. The add-on makes no calls to outside services apart from the license check.

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr