A retail store and a wholesale store sell the same products to two very different relationships. Retail is anonymous: someone arrives, sees one price, pays by card and leaves. Wholesale is a relationship. You know who the buyer is, you agreed a price list with them, they buy in cases, they expect an invoice and sometimes a few weeks to pay it, and they reorder the same forty items every month. WooCommerce can support all of that, but not out of the box. Core WooCommerce has one price per product, one checkout, one set of payment methods and no concept of a buyer who is more than a customer.
The single most useful idea in this guide is that wholesale is not a discount. It is a set of rules attached to an identity. Price, visibility, minimum quantities, tax treatment, payment methods and even the wording on the invoice all branch on one question: is this person an approved wholesale buyer, and of which kind? Get that identity wrong and you either leak trade prices to the public or charge a loyal retailer the shelf price. Get it right and each remaining layer is a small, separate problem you can solve and test on its own.
The second idea is that serious wholesale bugs are interaction bugs. A page cache serves a trade price to a guest. A quantity rule written for the classic checkout is ignored by the block checkout. A tax-exempt flag is applied in the cart but never reaches the order. A quote saved as a pending order is cancelled overnight by the stock hold timer. None of these show up when you click through the store once as an administrator.
This guide is plugin-agnostic on purpose. It does not rank products. It describes what any approach has to do, how each rule works under the hood in WooCommerce, which questions to put to a plugin vendor, and what to test before real buyers arrive. Code samples are short illustrations meant to be read, not pasted blindly: run them on a staging copy and check the hooks against the WooCommerce version you run.
A running example keeps things concrete. Picture a small manufacturer with 300 products and about 40 trade buyers who currently order by email and a spreadsheet. The numbers used for that example are illustrative, not data. The manufacturer wants approved buyers to see a trade price list, wants a minimum order, sells many items in cases, offers payment terms to some buyers, and wants the public to see none of it.
The guide moves in the order a buyer meets the store: rule layers and approach, accounts and approval, pricing and tiers, quantity rules, visibility, caching, tax, quotes, terms and invoicing, reorder experience, and a staging test plan. Nothing here is legal or tax advice. Where tax or compliance appears, treat it as orientation and confirm the details with a qualified adviser for your jurisdiction.
Key points
- Wholesale is a set of rules attached to a buyer identity, not a discount code, so settle how you identify an approved buyer before anything else.
- A rule that only lives on the product page is a suggestion; enforce quantity, price and payment rules on the server at cart and checkout.
- Role-based prices break page caches and variation price caches unless the cache key varies by role, so test with a logged-out browser and a wholesale browser side by side.
- Tax exemption, payment terms and quotes are process problems first: decide what document you hold, who approves it and when it expires, then configure the store.
- Choose a plugin approach by how many rule types you need and how many buyers have their own prices, and ask vendors about block checkout, order storage and variable product support.
- Build the reorder path early: trade buyers judge the store by how fast they can repeat last month’s order, not by how the catalogue looks.
- Test every role and state on staging, including pending, approved, suspended and guest, with the checkout type you actually run.
What a wholesale store actually changes
Start by writing the rules down in plain sentences before you open any plugin screen. For the illustrative manufacturer they might read: approved trade buyers see a trade price list; the smallest order is 24 units in total; most items ship in cases of 12; some buyers get 30 days to pay and others pay up front; buyers who hold a valid resale document are not charged sales tax; and the public cannot see the trade catalogue at all. That is six rules, and each one lands in a different part of WooCommerce.
The layers in the figure run in the order a request meets them, and the order matters because every layer below identity asks the identity layer for an answer. If you let three different plugins each keep their own idea of who counts as wholesale, they will eventually disagree: one shows the trade price, another blocks the payment method, a third still charges tax. Pick one source of truth, usually a user role or a customer group, and make every rule consult it. When you later read a vendor’s documentation, the first thing to find is how it decides that a visitor is a wholesale buyer.
The second principle is where a rule is enforced. A rule can live in three places. It can be display, such as a note on the product page saying the minimum is 24. It can be validation, where the server refuses an add to cart or a checkout that breaks the rule. Or it can be calculation, where the price or tax in the totals changes. Display alone is only a suggestion. A buyer can type any number into a quantity field, edit the cart quantity, use a saved link, or arrive through a different checkout that your display code never touched. Anything that matters to your margin belongs in validation or calculation, with display added so the buyer is not surprised by an error message.
The third principle is that the cart is the choke point. Whatever the product page, a quick order form, a CSV upload or the REST interface did to build the order, it all ends in the same cart and checkout. That is where you want your minimum order, case pack and payment rules to run, because that is the one place every route passes through. It is also the part of WooCommerce that has changed most in recent releases, since the block-based cart and checkout now exist beside the classic shortcode versions. A rule hooked to a classic-only action can silently do nothing in the block checkout, so every rule needs checking against the checkout you really run.
Keep the list of true wholesale rules short. A faster reorder button helps retail customers too, so it is not a wholesale rule. A store with three rules and one buyer tier needs a very different solution from a store with eight rules and forty individual price lists.
The rule layers of a wholesale store
Choosing an approach without choosing a winner
There are four broad ways to build wholesale on WooCommerce. The right one depends on how many rule types you need and how many buyers have prices of their own, and none is best in the abstract.
The first is core WooCommerce plus a small amount of your own code. WooCommerce already gives you user roles, product categories, tax classes, offline payment methods and a set of filters on price, quantity and gateways. For one wholesale role with a single trade price per product and one minimum order, this can be a few dozen lines. The ceiling shows up when rules multiply: each new rule needs code, tests and a place to edit its values, and the person maintaining it has to understand price caching, variations and the block checkout.
The second is a single-purpose wholesale pricing plugin that adds a role, a trade price field and often tiers and minimums. The third is a fuller B2B suite that adds customer groups, per-customer prices, quote requests, payment terms, company accounts and order forms. The fourth is not a plugin at all: a separate wholesale store, either a second install or a multisite subsite, with its own catalogue, cache and theme. That route has real appeal. A separate site cannot leak trade prices to retail visitors, has no cache conflicts and can look completely different. The cost is two catalogues to keep in step, two stock counts to reconcile and two admin areas to maintain.
Use these questions to decide. How many buyers have their own price list, and how often does it change? Do wholesale and retail draw from the same stock, and if so can you tolerate two separate counts? Do you need quotes, credit terms or several people ordering under one company? Does an ERP or accounting system need to receive orders? And who will maintain the setup in a year, someone comfortable reading PHP or someone who only uses admin screens?
Whatever you pick, put the same questions to every vendor and read the documentation instead of the marketing page. Does the plugin support the block cart and checkout? Does it declare compatibility with High-Performance Order Storage, the custom order tables WooCommerce can use? Does it handle variable products, including the cached variation price ranges covered later in this guide? What happens to prices, roles and settings if you deactivate or delete it? Can you export and import price lists in bulk? How does it treat a product that is also on retail sale? Does it support the REST API if another system needs prices? Answers to these predict your pain far better than a feature list.
One warning applies to every route. Wholesale logic in a theme functions file disappears when you change themes, and logic in a plugin you do not understand turns every update into a gamble. Keep custom rules in a small plugin of your own, version it, and note the WooCommerce hooks it relies on so release notes can be checked against that list.
Four ways to build wholesale on WooCommerce
| Core plus custom code | Wholesale pricing plugin | Full B2B suite | Separate wholesale store | |
|---|---|---|---|---|
| Fits best when | One tier, one trade price, few rules | Tiers, minimums and one or two roles | Per-buyer prices, quotes and terms | Different brand, catalogue or markets |
| Per-buyer price lists | Custom build needed | Limited or absent | Usually a core feature | Same options as the store runs |
| Quotes and terms | Core offline gateways, manual work | Rarely included | Often included | Depends on the stack chosen |
| Leak and cache risk | You own it entirely | Shared with the plugin | Shared with the plugin | Lowest, sites are isolated |
| Main ongoing cost | Developer time on every change | Updates and compatibility | Configuration and complexity | Two catalogues and two stock counts |
Accounts, roles and approval flows
Identity comes first because everything else depends on it. In WordPress the natural vehicle is a user role, which most wholesale tooling uses, sometimes layered with groups or company records. A role is simple to reason about, works with capability checks, and can be created from the command line. The catch is that one role answers one question. For three tiers, such as distributor, retailer and trade partner, you create three roles, store a tier value in user meta, or rely on a plugin group model. Decide how many tiers you will really need before you build, because converting from one role to several later touches every price rule.
The approval flow protects the trade catalogue. Without one, anyone can register and instantly see trade prices, which defeats the point. The safe pattern is that new registrations arrive with no wholesale access at all, either as ordinary customers or as a pending role, and only a person with the right permission can promote them. The flow in the figure is deliberately boring: application, pending, review, approve, notify. The review step is where your real business rules live, for example checking a company registration, looking up a tax identifier, or confirming a resale document.
Design the application form around what the review needs. Typical fields are the legal business name, a business email on a company domain, a tax or VAT identifier where relevant, an upload field for a resale or exemption document, the expected order volume and how they found you. Keep it short; every extra field loses legitimate applicants. Note that uploaded documents and identifiers are personal or business data you now store, so keep only what you need, limit who can open it, and check the data protection rules that apply to you.
Create the roles from the command line so the setup is repeatable between staging and production. These commands create a trade role and an applicant role modelled on the standard customer role, promote a user, and list the approved buyers:
$ wp role create wholesale_customer "Wholesale customer" --clone=customer
$ wp role create wholesale_pending "Wholesale applicant" --clone=customer
$ wp user set-role 42 wholesale_customer
$ wp user list --role=wholesale_customer --fields=ID,user_login,user_email,registered
Two follow-ups are easy to forget. First, communication: the applicant should get a message when the application arrives, the team should be told when one is waiting, and the buyer should get a clear email on approval or refusal, with the next step in it. WooCommerce has a set of editable transactional emails, and a plugin can add more, but make sure the mail actually reaches inboxes before launch. Second, lifecycle: approvals should be able to expire, be suspended or be revoked, and the store should record who approved a buyer and when. A suspended buyer must fall back to retail behaviour on every layer, not just lose one price, which is a good case to include in your test plan.
If several people at one company order, ask whether you need company accounts. Core WooCommerce has individual customers with one billing and one shipping address. Shared company accounts, approval chains and several delivery addresses belong to heavier B2B tools, and many small stores start with one login per company.
From application to approved buyer
- ApplyShort form: business name, tax identifier, document, expected volume.
- PendingAccount exists with no trade prices, no trade catalogue and no terms.
- ReviewA person checks the business and the document against written rules.
- ApproveRole or group is assigned, tier and terms are set, approval is logged.
- NotifyBuyer receives a welcome message with the price list and ordering steps.
- RevisitExpiry or suspension returns the account to retail behaviour on every layer.
Pricing: where the wholesale price actually lives
WooCommerce stores three price values for a simple product: a regular price, an optional sale price and an active price that the store actually uses. The active price is what the catalogue, the cart and the checkout read through the product object. That is useful for wholesale, because one filter on the price a product reports changes the shop, the cart and the checkout in a single place, in both the classic and the block checkout. It is also the reason a careless filter can quietly change prices everywhere.
There are four common ways to express a trade price. A separate trade price field per product is exact and fits negotiated lists, but needs CSV import and export once you have hundreds of products. A percentage off retail by role or category survives retail price changes, but assumes trade really tracks retail. Quantity tiers and customer-specific lists, covered next, layer on top. Whichever you choose, write the rule for an empty field: the safe default is that the buyer pays the normal price, and a report lists products with no trade price.
This minimal illustration defines one identity helper and swaps the reported price for a trade price stored in product meta when the current user is an approved buyer. It shows the moving parts, and a production plugin handles far more.
<?php
function wpr_is_wholesale_buyer( $user_id = 0 ) {
$user = $user_id ? get_userdata( $user_id ) : wp_get_current_user();
return $user && in_array( 'wholesale_customer', (array) $user->roles, true );
}
function wpr_trade_price( $price, $product ) {
if ( '' === $price || ! wpr_is_wholesale_buyer() ) {
return $price;
}
$trade = $product->get_meta( '_trade_price', true );
return ( '' !== $trade && is_numeric( $trade ) ) ? $trade : $price;
}
add_filter( 'woocommerce_product_get_price', 'wpr_trade_price', 20, 2 );
add_filter( 'woocommerce_product_variation_get_price', 'wpr_trade_price', 20, 2 );
add_filter( 'woocommerce_variation_prices_price', function ( $price, $variation, $product ) {
return wpr_trade_price( $price, $variation );
}, 20, 3 );
add_filter( 'woocommerce_get_variation_prices_hash', function ( $hash ) {
$hash[] = wpr_is_wholesale_buyer() ? 'wholesale' : 'retail';
return $hash;
} );
Notice the two variable-product filters. A variable product shows a price range built from its variations, computed and cached separately, reading each variation in a context that skips the usual price filters. The extra filter feeds the trade price into that range, and the hash filter makes the cached range depend on the role. WooCommerce code comments warn that any price varying by user or role must also adjust that hash, or the wrong price is cached for the next visitor. The caching section returns to this.
Decide how sales and trade prices interact before launch, because the default is rarely what you want. Three clean rules exist: trade price always wins, the lower of the two wins, or sales apply to retail only. Then check how the product displays. When a product has a sale price and your filter changes the active price, the price display may strike through the regular price and show the trade price as if it were a sale, which confuses buyers. Verify what your tooling renders for a product that has both.
Two more details cause quiet errors. First, the store setting for whether prices are entered with or without tax applies to every price you type. If retail prices include tax and your trade field is typed without tax, buyers will be quoted a different number than your price list says. Write the convention down. Second, sorting by price and the price filter use WooCommerce’s product lookup table, which holds the stored prices, not a role-adjusted value. A buyer sorting by price may see an order that matches retail, not trade. Check this if your trade price differs a lot from retail.

Tiered, volume and customer-specific pricing
Quantity breaks sound simple until buyers ask what exactly is counted. Settle four questions in writing first. Does quantity count per cart line, per product across variations, per category or across the whole order? Does the tier price apply to every unit once the threshold is met, or only to units above it? Are tiers a percentage off the trade price or an absolute price? Does the count reset per order or accumulate over a month or year? Each answer changes what buyers pay, and a plugin that answers differently from your price sheet will generate disputes.
The key technical fact is that quantity is not known on the product page. A product object reports one price, while the tier price belongs to a cart line, so it is applied while cart totals are calculated, usually by hooking the stage before totals and setting each line price. The product page can show a tier table and a starting price. That stage can run more than once per request, so tier code must be idempotent: calculate from a stored base price every time, never from the current price, or the discount compounds.
It also interacts with a role-based price filter like the one in the previous section. If both write the same price, priority decides which wins, and the filter can overwrite a price set on the cart line. Give each source a clear job: the base price comes from the field, a tier adjusts from that base, and nothing reads the current price as its input. The tier choice itself is a small pure function you can test without WordPress:
<?php
function wpr_tier_percent_off( $qty, array $tiers ) {
krsort( $tiers );
foreach ( $tiers as $min_qty => $percent ) {
if ( $qty >= $min_qty ) {
return $percent;
}
}
return 0;
}
// Example tiers: from 12 units 5 percent off, from 48 units 10, from 120 units 15.
// wpr_tier_percent_off( 60, array( 12 => 5, 48 => 10, 120 => 15 ) ) returns 10.
The function picks the highest tier whose minimum is met, which is what most buyers expect. The difficulty is the plumbing around it: choosing which quantity to pass in, avoiding double application, and showing the buyer the tier reached and how many more units bring the next one, one of the cheapest ways to raise order size.
Customer-specific pricing is the heavy end of the scale. When forty buyers each have a negotiated list, you need a precedence order, usually customer, then group, then role, then retail, and you need to be able to answer why a buyer saw a given price. At that point store the lists in a structure built for it, import them from spreadsheets, and give each list valid-from and valid-to dates, so that a price change is scheduled, not edited live on the day.
Finally, decide how coupons behave. A coupon applied on top of a trade price is a second discount nobody planned. WooCommerce coupons have settings such as individual use only and excluding sale items, but trade prices set through a filter do not necessarily count as sale prices, so an exclusion that works for retail may not protect wholesale. Many stores simply disable coupons for the wholesale role. Whatever you choose, test it with a real coupon at checkout.
Minimum orders, case packs and step quantities
Quantity rules come in three kinds that are easy to blur together. A product minimum says you cannot buy fewer than a set number of a product. A case pack or step says quantities must be a multiple of a number, because the item ships in cartons of 12. An order minimum says the whole cart must reach a number of units or a value before checkout is allowed. They live in different places in WooCommerce and need different checks.
The quantity field on a product page and in the cart is built from arguments that a filter can change: minimum, maximum and step. That makes the browser enforce your rule, which helps usability but is only display. Server-side validation on add to cart, and again when the cart quantity is edited, is what protects you. The block cart and checkout use a separate interface, the Store API, with its own filters for minimum, maximum, multiple and editability. It is built to start from the classic quantity arguments, but verify that in your WooCommerce version and checkout rather than assume it.
This illustration applies a case pack and a product minimum to approved buyers, validates on add to cart, and checks an order minimum in units at the cart stage:
<?php
function wpr_qty_rules( $product ) {
$source = $product->is_type( 'variation' ) ? wc_get_product( $product->get_parent_id() ) : $product;
return array(
'pack' => $source ? max( 1, (int) $source->get_meta( '_case_pack', true ) ) : 1,
'min' => $source ? (int) $source->get_meta( '_trade_min_qty', true ) : 0,
);
}
add_filter( 'woocommerce_quantity_input_args', function ( $args, $product ) {
if ( ! $product || ! wpr_is_wholesale_buyer() ) {
return $args;
}
$rules = wpr_qty_rules( $product );
$args['step'] = $rules['pack'];
if ( $rules['min'] > 0 ) {
$args['min_value'] = $rules['min'];
$args['input_value'] = max( (float) $args['input_value'], $rules['min'] );
}
return $args;
}, 20, 2 );
add_filter( 'woocommerce_add_to_cart_validation', function ( $passed, $product_id, $quantity, $variation_id = 0 ) {
$product = wc_get_product( $variation_id ? $variation_id : $product_id );
if ( ! $passed || ! $product || ! wpr_is_wholesale_buyer() ) {
return $passed;
}
$rules = wpr_qty_rules( $product );
if ( $rules['pack'] > 1 && 0 !== ( (int) $quantity % $rules['pack'] ) ) {
wc_add_notice( sprintf( 'This item is sold in cases of %d. Please order a multiple of %d.', $rules['pack'], $rules['pack'] ), 'error' );
return false;
}
return $passed;
}, 10, 4 );
add_action( 'woocommerce_check_cart_items', function () {
if ( ! wpr_is_wholesale_buyer() || ! WC()->cart ) {
return;
}
$min_units = 24; // Example order minimum.
$units = WC()->cart->get_cart_contents_count();
if ( $units > 0 && $units < $min_units ) {
wc_add_notice( sprintf( 'Trade orders need at least %d units in total. Your cart has %d.', $min_units, $units ), 'error' );
}
} );
Several edge cases deserve a decision. Does a case pack apply per variation line or across the product, so that half a case of red plus half a case of blue counts as one? Does the order minimum count units, lines or value, before or after tax and discounts? Are samples, freight lines or backordered items excluded? What happens when stock is below one case? The cart quantity update has its own validation filter, so a rule that only runs on add to cart can be bypassed by editing the quantity afterwards.
Write error messages that tell the buyer what to do. Add 6 more units to reach the order minimum is actionable. The minimum has not been met is not.
Where a quantity rule has to be checked
- Quantity fieldMin and step shown in the browser: guidance only, easy to override.
- Add to cartServer validation of the quantity being added, per product and variation.
- Cart editA separate validation path runs when a quantity is changed in the cart.
- Cart checkOrder-level rules such as total units or value run before checkout opens.
- Store APIThe block checkout has its own limits; confirm it reads your rules.
- Order createdFinal server-side validation before payment and order creation.
Hiding and showing products by role
Start with a decision, because three needs hide behind the phrase hide products from the public. Some products are wholesale-only lines the public should not know exist. Some are public but the price is private, so visitors see the item and a prompt to apply for a trade account. Some are public at retail price, with the trade price appearing after login. Each pattern needs different machinery.
The catalogue visibility setting on a WooCommerce product controls where a product is listed: shop and search, shop only, search only, or hidden. It is about listing, not access. A product set to hidden is still reachable by its URL. The product visibility options of private and password protected are not role gates either: private means visible to editors and administrators, and a password gate asks a visitor for a shared password. For a real role gate you need a check on the server, in several places.
The main product query, which builds the shop and category pages and search results, can be filtered to exclude a trade-only category for everyone except approved buyers. Direct visits to a product page need their own check, because excluding it from queries does not stop a visitor with the link. The purchasable status of the product should also be removed for the public, as a second line of defence.
<?php
add_action( 'woocommerce_product_query', function ( $query ) {
if ( wpr_is_wholesale_buyer() || current_user_can( 'manage_woocommerce' ) ) {
return;
}
$tax_query = (array) $query->get( 'tax_query' );
$tax_query[] = array(
'taxonomy' => 'product_cat',
'field' => 'slug',
'terms' => array( 'trade-only' ),
'operator' => 'NOT IN',
);
$query->set( 'tax_query', $tax_query );
} );
add_action( 'template_redirect', function () {
if ( ! is_singular( 'product' ) || wpr_is_wholesale_buyer() || current_user_can( 'manage_woocommerce' ) ) {
return;
}
if ( has_term( 'trade-only', 'product_cat', get_queried_object_id() ) ) {
wp_safe_redirect( wc_get_page_permalink( 'myaccount' ) );
exit;
}
} );
That query hook covers the main product query, not every custom query. The surfaces you also need to check form a leak map: related products and upsells, widgets and blocks that run their own queries, the site search, the XML sitemap that WordPress and SEO plugins generate, RSS feeds, structured data in the page source, product feeds sent to marketplaces, and the public Store API and REST endpoints that return product data. Test them logged out, with the trade-only category in place, and look at what each returns. Marking pages noindex keeps search engines away, but it does not stop a person.
If you hide prices rather than products, replace the price and add to cart button with a clear call to log in or apply, and make sure the price is not still in the page source, structured data or Store API response. Keep one product record per item: duplicating products into retail and wholesale copies doubles every stock count and description.
What should the public be able to see?
Caching pitfalls: when a trade price reaches the wrong visitor
Any cache that stores output keyed only by the address of the page can serve one buyer’s price to another. In a retail store that is a minor annoyance. In a wholesale store the price varies by person, so a cached page can hand your trade price list to the public or show a retailer the wrong number. Caching is also where most wholesale setups fail after launch, because the store works perfectly for an administrator who is logged in and never sees a cached page.
The layers in the figure each fail differently. Full-page caches on the server or a plugin usually bypass logged-in users and the cart, checkout and account pages, and WooCommerce sets cookies that caches use as bypass signals. Do not assume your setup does this. Some hosts and plugins offer cache variants per user or per role, and defaults differ, so read the settings and test. The riskiest layer is a CDN or edge rule that caches everything: unless it bypasses on the logged-in cookie and the WooCommerce session cookies, a trade page can be stored and served to the next visitor.
The less obvious layer is the variation price cache. WooCommerce caches the price range of a variable product in a transient keyed by a hash, and when a persistent object cache is installed that transient lives in the cache backend. If your role-based price is not part of the hash, whoever loads the product first, retail or trade, sets the range everyone else sees until the cache expires. The hash filter shown earlier is the fix, and any plugin you choose must do the equivalent.
Test caching deliberately. Request a product page without cookies and read the response headers, then repeat it in a browser logged in as a wholesale buyer:
$ curl -sIL example.com/product/sample-item/ | grep -i -E '^(HTTP|cache-control|age|x-cache|cf-cache-status|vary|set-cookie)'
Header names vary by host and CDN, but you are looking for evidence that a logged-in request is not served from a shared cache, and for a cached response on the logged-out request that does not contain a trade price. After you change roles, prices or approvals, purge deliberately. WP-CLI can flush the object cache and delete transients, which also clears cached variation prices:
$ wp cache flush
$ wp transient delete --all
Flushing is a blunt tool, so do it on staging first and expect a slower store while caches refill. Finally, remember the non-page leaks: the mini cart and cart fragments, any custom AJAX price request, and product feeds. If a price appears in it, a cache can store it, so check each one with a retail and a wholesale browser side by side.
Cache layers that can hold the wrong price
Tax-exempt buyers and how tax shows to trade customers
Tax for trade customers is two separate questions: is this buyer charged tax on this order, and how are prices displayed to them? This guide is general orientation, not legal or tax advice. Rules for resale exemptions, reverse charge and cross-border business sales differ widely by country and region, so your accountant decides what applies and what evidence you must keep. The store only carries out that decision.
WooCommerce works out tax from each product’s tax class and the rates configured for the buyer’s location. For an exempt buyer, the customer object has an exemption flag, named for VAT but usable for any sales tax. When it is set, WooCommerce removes the tax from the cart and shows prices excluding tax, and at checkout it records the flag on the order as order meta, so the decision stays visible later. In a default install you will not find a ready-made switch for it on the customer screen, so a plugin, or small code driven by your own approval data, sets the flag. Check what your tooling exposes.
The harder part is the process. For each exemption decide which document you accept, what it covers, who verified it and when, and when it expires. Store a reference and expiry on the account, not the document in a public folder, and make expiry actually revoke the flag. An expired certificate that still switches tax off is a quiet liability that grows with every order. Keep in mind that core treats the flag as all or nothing: if only some products or only some locations are exempt, you need a tool that supports partial rules.
Display is separate. WooCommerce has store-wide settings for showing prices with or without tax in the shop and in the cart. Trade buyers usually expect prices without tax, with tax added at checkout, even when they are not exempt. Exempt buyers get ex-tax display from the flag, but non-exempt trade buyers follow the store-wide setting, so a per-role display needs a plugin or custom code. Make sure the invoice shows what the buyer needs for their own records.
Should this order be treated as tax-exempt?
Quotes, net terms and invoicing
WooCommerce has no built-in quote workflow, so a quote is something you design. The lightest version is a request form that emails your sales team, with no cart involved. A heavier version converts a cart into a quote request that staff price and return. A third version uses core only: staff create an order in the admin, add the items at the agreed prices, leave it as pending payment and email the customer the order details with a payment link, which the customer pays from their account.
That third route has a trap. With stock management on, WooCommerce reserves stock for pending orders and cancels unpaid pending orders after the hold stock time set in the inventory settings, which defaults to a short period. A quote left pending overnight can be cancelled, and the customer is then paying for an order that no longer exists. Raising or disabling the hold time affects every checkout, so many stores use a separate status or a quote record instead. If you use on-hold for quotes, remember that on-hold reduces stock, so a quote then reserves goods.
Net terms are a payment-method decision, not a pricing one. Core WooCommerce includes offline methods: direct bank transfer, check payments and cash on delivery. The first two create the order as on-hold while you wait for payment, which is the shape of an invoice-on-terms order. A common pattern is to rename one method to something like pay by invoice and show it only to buyers you have approved for terms:
<?php
add_filter( 'woocommerce_available_payment_gateways', function ( $gateways ) {
if ( is_admin() ) {
return $gateways;
}
$on_terms = is_user_logged_in()
&& 'yes' === get_user_meta( get_current_user_id(), '_net_terms_approved', true );
if ( ! $on_terms ) {
unset( $gateways['bacs'] );
}
return $gateways;
} );
Use the gateway’s real identifier from your own store, and use a dedicated method if retail customers also pay by bank transfer, or this filter will hide it from them. Core does not track credit limits or outstanding balances. That lives in your accounting system, so decide who checks the balance before an order ships, and what happens to terms when a buyer pays late.
Invoicing is where wholesale expectations differ most. WooCommerce sends order emails, but a tax invoice often has legal content and numbering requirements, so check what yours must contain and whether numbers must run in sequence. Common answers are a PDF invoice plugin that numbers documents, or an accounting tool that issues the invoice and receives the order. Add a purchase order field at checkout so the buyer’s reference reaches the order and the invoice, and define what each order status means for terms orders, since stock and revenue reports follow status.
Life of a net-terms order
Reorder experience: make the second order faster than the first
Retail stores are judged on how products look. Trade stores are judged on how fast a buyer can repeat last month’s order. A purchasing manager reordering forty items does not want to browse, so the measure that matters is the time it takes to rebuild a standard order and the number of mistakes along the way.
Start with what core gives you. The customer account area lists past orders, and on a completed order it offers an order again button that adds the same items to the cart. That is a good base, but check how it behaves with your rules: items now out of stock may be skipped, and quantities that break a case pack must be corrected or rejected, with a clear message. Build on it with a quick order form where the buyer types a SKU or product name, enters a quantity and adds many lines at once. Make sure your search matches SKUs and, if buyers use them, their own part numbers.
A CSV upload serves larger accounts who keep the list in a spreadsheet. The important design choice is how errors are handled. An upload that fails entirely because of one unknown SKU is worse than none. Report each line separately: accepted, below the case pack and adjusted, out of stock, not found. Show the result before anything reaches the cart, so the buyer decides what to do.
For products with many variations, a grid showing every size or colour with its own quantity box on one page beats a dropdown that adds one variation at a time. Saved lists and standing orders help buyers who order the same basket on a schedule, though recurring orders need careful handling of price changes, stock and payment terms. Finally, give buyers a place to find invoices, order status and tracking, because each missing document becomes an email to your team.
Large accounts may want to push orders from their own purchasing system through the REST interface. Those orders do not pass through your cart hooks, so a rule written only for add to cart and cart checks can be bypassed. Where API ordering is allowed, validate again at order level, or restrict API keys to staff and tested integrations.

A staging test plan before real buyers arrive
Wholesale breaks at the joins between rules, so test as people, not as an administrator. Build the test on a staging copy that mirrors production: the same checkout type, caching, object cache and CDN behaviour, with payment gateways in test mode. Stop staging from emailing real buyers, either by disabling outgoing mail or by catching it, because a test order that triggers a real invoice reminder damages trust fast.
Create one account per persona and use a separate browser profile for each, so sessions and cookies never mix. A useful set is: a guest, an ordinary retail customer, a pending applicant, an approved wholesale buyer, a buyer on payment terms, a tax-exempt buyer, a suspended or expired buyer, and an administrator.
For each persona run the same checks:
- Can they see the products and prices they should, and nothing else, in the shop, search, a direct product URL and the sitemap?
- Does a hand-calculated order total match the cart, the checkout, the order screen, the email and the invoice?
- Are the available payment methods correct, and does an order on terms land in the status you expect?
- Is tax right for this persona, including shipping, and does the exemption flag appear on the order?
- Does the role return to retail behaviour on every layer when the approval is removed?
Then attack the rules. Type a quantity below the case pack, edit the cart quantity afterwards, use a link that adds a product with a chosen quantity in the address, leave the order minimum unmet, and try each in the checkout you run. If you allow API orders, create one through the API and see which rules apply.
Run the cache test in both directions. Load a product as a guest to warm the cache, then load it as a wholesale buyer in another profile, and repeat the other way round. Do this for a simple product and for a variable one, then purge and repeat. Check mini cart fragments and any feed.
Finally, compute at least five orders by hand across tiers, rounding, exemption and shipping, and compare them with what the system produces. Keep the persona and check list as a spreadsheet and rerun it after every WooCommerce, theme or plugin update. Launch to a few friendly buyers first and watch their first orders before announcing it to the rest.
Checklist
- Write the wholesale rules in plain sentences: who, what price, what minimums, what terms, what tax treatment.
- Choose one source of truth for who is a wholesale buyer and make every rule consult it.
- Create the roles or groups from a repeatable script so staging and production match.
- New registrations arrive with no trade access, and approval is a logged human decision.
- Define what happens when a trade price is empty, and report products that lack one.
- Decide how sales, trade prices and coupons interact, then test each combination.
- Enforce case packs and order minimums on the server at add to cart, cart edit and checkout.
- Confirm the quantity rules also apply in the block cart and checkout you run.
- Choose a visibility pattern per product and check search, sitemap, feeds and the Store API.
- Make the variation price cache depend on role, and test with a persistent object cache on.
- Bypass or vary every page cache and CDN layer for logged-in buyers.
- Document the exemption process: accepted documents, scope, verification, expiry and revocation.
- Limit terms-based payment methods to approved buyers and name an owner for credit checks.
- Decide how quotes are stored so stock holds do not cancel or reserve them unexpectedly.
- Check invoice content, numbering and purchase order fields with your accountant.
- Build a fast reorder path, including SKU entry and per-line error reporting.
- Test every persona in a separate browser profile on staging before launch.
- Repeat the persona and cache tests after every WooCommerce, theme and plugin update.
Read this next
About this guide. This is general guidance written by WPresident Editorial from documentation and widely used practice. WPresident has not benchmarked the products or methods described. Interfaces and plan limits change, so check the vendor’s current documentation before you act. Not legal, tax or financial advice. See our editorial policy.
Frequently asked questions
Do I need a plugin to build a WooCommerce wholesale store?
Not strictly. Core WooCommerce has roles, tax classes, offline payment methods and filters, so one role with a fixed trade price and a minimum can be built with a small custom plugin. Plugins pay off when you need per-customer prices, quotes, terms, company accounts or order forms, because the rules multiply and need an interface and ongoing maintenance. Count the rules you need before choosing.
Should I run a separate wholesale site or one store?
A separate site isolates prices from the public and avoids cache conflicts, but you must keep two catalogues and two stock counts in step. One store keeps a single product record and stock ledger, but needs careful role logic and cache testing. Choose by how different the catalogues are, whether stock is shared, and who will maintain the setup over the next year.
How do I stop retail customers seeing wholesale prices?
Gate prices by an approved role on the server, not with CSS. Remove the price from page markup, structured data, feeds and the Store API for the public, and make sure no cache serves a trade page to guests. Then check each surface logged out. Hiding with styling leaves the price visible in the source.
Can I still use page caching on a wholesale store?
Yes, with rules. Public pages can be cached, but logged-in buyers, the cart, checkout and account pages must bypass the cache or vary it by role. Check CDN rules too. Role-based variation prices also need the role in the price cache key. Test with a guest and a buyer side by side, and purge after changing prices or roles.
How do minimum order quantities work in WooCommerce?
Core has no wholesale minimum setting. You add rules for a product minimum, a case pack multiple and an order minimum, through a plugin or custom code. The browser field gives guidance, while server validation at add to cart, cart edit and checkout enforces the rule. Check that your rules apply in the block checkout, and write error messages that tell the buyer what to change.
Can wholesale customers be charged different tax?
Tax follows rates and rules for your jurisdiction, not a store preference. WooCommerce has an exemption flag on the customer that removes tax and shows prices without tax, and it records the flag on the order. Whether a buyer qualifies is a legal question for your accountant. This guide is not tax advice, so confirm the rules and the documents you must hold before enabling exemptions.
How do I offer net 30 terms?
Use a payment method that creates an unpaid order, such as the built-in bank transfer or check method, show it only to buyers approved for terms, and issue an invoice with a due date. Core does not track credit limits or balances, so your accounting system or a plugin must do that, and someone must own late-payment follow-up.
How do quotes work in WooCommerce?
There is no built-in quote feature. Options are a request form, a plugin that turns carts into quote requests, or staff creating an order in the admin and sending a payment link. Watch the stock hold timer, which can cancel pending orders, and decide which status represents a quote so stock is neither reserved nor released by surprise.
Will wholesale rules work with the block checkout?
Not automatically. Rules hooked to classic shortcode actions may not run in the block cart and checkout, which use their own interface for quantity limits and validation. Ask each plugin vendor about block support, and test every rule in the checkout you actually run before launch, including quantity limits, payment methods and tax flags.
What should I test before launching a wholesale store?
Test as each persona: guest, retail customer, pending applicant, approved buyer, buyer on terms, tax-exempt buyer and suspended buyer. Check visibility, price, quantity rules, tax, payment methods and emails, try to bypass rules, run cache tests in both directions and hand-check several order totals on staging. Repeat after every update to WooCommerce or a related plugin.



