Wholesale Core User Guide.
Wholesale Core for WooCommerce · User guide
This guide is for shop owners who want to run trade pricing, and for developers integrating with the plugin. You can read it before you buy — it describes how Free and Pro actually work.
Nothing here assumes you know PHP. The developer section at the end is optional.
What this plugin does
A normal WooCommerce shop has one price for each product, and anyone can buy at that price.
Wholesale Core lets you run a trade counter next to your public shop. Customers you approve for wholesale log in and see their own prices. You can hide those prices from the public, keep some products trade-only, and set sensible order rules — minimum quantities, case sizes, volume breaks, and basket minimums.
Your everyday retail customers are untouched. Guests and normal customers keep shopping at retail prices with no wholesale badges, bars, or minimums.
Free and Pro
There is one product, in two packages:
- Free — available on WordPress.org. You get unlimited customer groups, fixed wholesale prices, an optional shop-wide percentage off per group, minimum order quantities, whole-order minimums, badges, the identity bar, price sorting for trade customers, and cache protection.
- Pro — the premium package plus a paid license (activate under WooCommerce → Wholesale Core → Account). Pro adds volume (quantity-break) pricing, case size and maximums on products, wholesale-only products, category minimums, tax controls, payment and shipping restrictions, editable customer messages, and wholesale registration.
| Included on Free | Unlocked with Pro |
|---|---|
| Unlimited customer groups | Volume / quantity-break pricing |
| Fixed wholesale prices per group | Case size & maximum on products and group defaults |
| Default % off when a product has no fixed price | Wholesale-only product visibility |
| Product & group minimums; global MOQ / case / max | Category minimums (units and spend) |
| Whole-order minimums (items or spend) | Tax exempt and catalog tax display per group |
| Badges, identity bar, sale-price handling | Payment and shipping allow-lists per group |
| Hide price for guests | Editable validation messages |
| Catalog sort and filter by the price the customer sees | Wholesale registration, applications, form builder, emails |
| Cache protection for wholesale pages | — |
If a Pro license on the premium package ends, your groups and prices are not deleted. You get a 7-day grace period where Pro keeps working (you will see an admin notice). After that, only one group you choose as the active Free group prices the storefront; other groups show as paused until you renew. The free WordPress.org package never enters that soft-lock.

The one idea you need: groups
Almost everything in Wholesale Core hangs off a group.
Think of a group as a price list with a name. “Wholesale Standard” might be your everyday trade list. “Wholesale VIP” might be a better list for your biggest accounts. Each group can have its own prices, order rules, and badge wording.
What a group can include:
- Prices — a fixed amount on each product, or a Default % off when you leave a product blank, or (Pro) volume breaks that get cheaper as they buy more
- Order rules — minimums, and on Pro case sizes and maximums
- A badge — a short label on the shop so the customer can see they are on trade pricing
- Pro extras — tax behaviour, and which payment or shipping methods that group may use
You start with at least Wholesale Standard. You can rename it. You can add as many groups as you need on the package you installed.
How someone becomes a wholesale customer
Wholesale customers stay ordinary WordPress Customers. The plugin does not create special “Wholesale” roles.
Someone is wholesale when you put them in one or more groups. You can:
- Edit the user and tick the group(s) on their profile, or
- Select users in Users and use bulk actions to add them to a group, or
- Approve a wholesale registration application (Pro), which assigns a group for you
The Users list includes a Wholesale Group column so you can see who is on which list.

Part 1Setting up your groups
Go to WooCommerce → Settings → Wholesale Core → Customer Groups.

The main table
Name — your label for this price list (for example “Café trade” or “Distributors”). Only staff see this name in admin.
Badge — the short word customers see on the shop, such as “Wholesale” or “VIP”. You can turn badges off entirely later if you prefer a quieter shop.
Priority — only matters if one person is in two groups at once. The higher number wins, so VIP at 20 beats Standard at 10.
If no price, use… — a safety net. If VIP has no price on a product, you can fall back to Standard’s price instead of jumping straight to full retail. Choose None if you would rather show retail when that group has nothing set (Default % off can still apply first — see below).
Delete — removes the group from the list. It does not wipe prices already saved on products. Prefer renaming a group rather than deleting and recreating it, because a new group gets a new internal ID.
Default group discount (% off)
Further down the same screen you will find Default group discount. This is the optional “everything is X% off retail” setting for a group.
It only applies when a product has no fixed wholesale price for that group (and no matching volume break). As soon as you type a fixed price on the product, that fixed price wins.
Example: retail is $100, Default % off is 20, and you left the product price blank → the wholesale customer pays $80. If you later set a fixed $75 on that product, they pay $75.

Per-product rules on this screen
The Per-product rules table sets default minimum (and on Pro, case size and maximum) for everyone in a group. Those defaults apply when a product does not set its own rules. You can still override them on any single product.

If Pro ends
During the grace period you will see a yellow admin notice with the end date and a link to renew. After grace, pick Active group while Free on the Customer Groups screen. Extra groups are paused, not deleted, and come back when you renew.
Part 2Setting your wholesale prices
Edit any product and open the Wholesale tab in the Product data box. Inside that tab there are three sections:
- Prices — fixed dollar amount per group
- Order rules — how many they must buy, and who can see the product
- Volume — quantity breaks (Pro), or a short note about Pro if you are on Free

Each group is an accordion. Closed headers show a small summary (for example “$20” or “No price”) so you can scan the page quickly. Open a group to edit its price. Variable products get the same idea on each variation.
How the plugin picks a price
When a wholesale customer views a product, the plugin walks a short checklist for their group and stops at the first answer it finds:
- Volume break for the quantity they are buying (Pro) — the highest matching break wins
- Fixed price you entered on this product for that group
- Older meta keys from previous installs, if any still exist
- Default % off for that group, taken from the regular retail price
- Inherit from the group named in “If no price, use…”
- Otherwise the normal retail price
After that, Sale Price Handling decides what happens when the product is also on a public sale:
- Lowest price wins (recommended default) — a wholesale customer never pays more than a member of the public would pay on sale
- Wholesale price always wins — they always pay the agreed trade price, even if a public sale is cheaper

Part 3Volume pricing (Pro)
Volume pricing is for “the more they buy, the better the unit price.” On Wholesale → Volume, click Add quantity break, choose the group, the minimum quantity, and the unit price from that quantity upward.
Example: fixed Standard price $20, plus breaks of 10+ at $12 and 25+ at $10. Buying 11 units charges $12 each. Buying 30 units charges $10 each. Buying 5 units stays on the fixed $20.
Those breaks replace both the fixed group price and any Default % off once the quantity is high enough. The highest matching break wins.

On the product page, wholesale customers see a clear Volume pricing table so they know what they will pay before they add to cart. Cart and checkout use the same breaks for the quantity in the basket.

On Free, the Volume pane explains that this is a Pro feature. Quantity breaks are not stored in the free WordPress.org package.
Part 4Controlling who sees what
On Wholesale → Order rules, find B2B Visibility. This controls what the public sees for that product:
- Public — everyone sees the product and a price (retail for guests, wholesale for trade customers)
- Show product, hide price for guests/retail — the product stays findable (including in search), but guests see your login message instead of a price and cannot add it to the cart. Wholesale customers still see their price and can buy
- Wholesale users only (Pro) — the product disappears from the shop, categories, and search for anyone who is not wholesale. A direct link sends guests toward the account page
You can change the login message under Settings → Wholesale Core → General → Hidden Price Text.

Part 5Order rules — how much they have to buy
Wholesale often needs different buying rules from retail. Wholesale Core keeps three ideas separate on purpose:
- Minimum — “I will not pack fewer than 10.” This is a commercial term. Available on Free.
- Case size — “It ships in boxes of 6; I will not split the box.” Product and group case fields are Pro; you can still set a Global Case Size under General on Free.
- Maximum — “Nobody takes more than 100 while stock is tight.”
When minimum and case size both apply, the plugin rounds up to the next valid quantity. Minimum 10 and case size 6 become an effective minimum of 12 (two full cases). A maximum of 20 with cases of 6 becomes an effective maximum of 18. If a maximum would sit below the minimum, the minimum wins so the product stays buyable.
What the customer sees
- A short hint next to the price, such as Min 10 or Min 12 · Sold in 6s
- The same idea as an Order rules line in the cart
- A quantity box that starts at a valid amount, with arrows that jump by case size when relevant
- Shop “Add to cart” buttons that add a valid quantity instead of one
- A plain-language error if something invalid still gets through
Stock always wins over case size. Classic cart and WooCommerce block cart/checkout are both supported.


Do not confuse line minimums with basket minimums
| Setting | What it means | Where you set it |
|---|---|---|
| Global Wholesale MOQ, product MOQ, group minimums | How many of this product they must buy on one line | General settings, or the product Order rules pane |
| Minimum items / Minimum order value | How big the whole basket must be before checkout | General, or Customer Groups → Whole-order minimums |
A “trade orders must be at least $500” rule belongs under minimum order value, not under Global Wholesale MOQ.
Where rules can live (most specific wins)
- On one product, for one group
- On one product, for every wholesale group
- On a group as its default
- Across the whole shop in General settings
Leave a box blank to mean “no rule here.” Blank is never treated as zero.
Part 6Minimums for the whole order
Besides per-product rules, you can require a bigger basket before checkout:
- Minimum items — total units across everything in the cart
- Minimum order value — cart subtotal before tax and shipping
Set these per group under Customer Groups, or shop-wide under General. The plugin cannot block this on the product page, because it does not know the rest of the basket yet. Customers shop as usual; if they are short at cart or checkout, they see a clear message and cannot finish until they top up. An empty cart never triggers these rules.
Part 7Minimums for a category (Pro)
Sometimes the rule is about a range, not one SKU — for example “any order from the Acme range must include at least 24 units.”
Go to Products → Categories, edit a category, and set wholesale minimum units and/or minimum spend. Units add up across products from that category in the same basket. If a product sits in two categories, it counts toward both. The categories list shows a column so you can scan the rules.

Part 8Tax per group (Pro)
On Customer Groups, open the Tax (Pro) table.
- Tax exempt — tick if that group should not be charged tax/VAT at checkout (for example approved tax-exempt businesses)
- Catalog tax display — leave on store default, or force including tax / excluding tax while that group browses

Part 9Payment and shipping (Pro)
The Payment & shipping (Pro) table lets each group use only the gateways and shipping methods you choose.
Leave every option unchecked to allow all methods for that group. As soon as you select one or more options, that group is limited to the selection.

Part 10The identity bar
Trade customers often forget they are logged in and ask why prices look different. The identity bar fixes that.
Under Settings → Wholesale Core → General you can show:
- A fixed bar at the top of the site while they browse as wholesale
- The same reassurance on the My Account dashboard
The message can include {badge} and {group} — for example “You’re shopping with {badge} prices.” Pending applicants (Pro registration) see a pending version of the bar so they know the application was received.

Part 11The badge
Group Badge under General chooses how the group label appears: a pill on the product image (default), text next to the price, or off. The wording comes from the group’s Badge column. The badge only shows when that customer is actually getting a wholesale price on the product.

Part 12Customer messages (Pro)
Every validation message the plugin can show a customer is editable under Settings → Wholesale Core → Messages. Leave a box empty to keep the default wording. Each field lists the placeholders you can use, such as the product name or the minimum quantity.
On Free, customers always see the built-in defaults.

Example: change a minimum message to “Sorry — this item ships in lots of 12 or more,” and that is what the customer sees when they try to buy three.
Part 13Wholesale registration (Pro)
Instead of creating every trade account by hand, let businesses apply.
- Go to WooCommerce → Settings → Wholesale Core → Registration
- Enable registration
- Choose manual approval (you review each application) or auto-approve into a default group
- Optionally let applicants prefer a group, build extra form fields, and create a standalone page
The form also appears at /my-account/wholesale-register/, and you can place it anywhere with:
[wholesale_core_registration]


Review applications under WooCommerce → Wholesale Applications. Approve puts them in a group (they remain a Customer role) and can send email. Reject leaves them on retail; they can apply again if you allow it. Email templates live under WooCommerce → Settings → Emails.

Part 14Sorting and filtering by price
Wholesale customers can still use WooCommerce’s normal “sort by price” and price filters. The important part: the plugin sorts and filters on the price that customer actually sees, not the public retail price.
Example: Product A is $10 retail and $90 wholesale. Product B is $100 retail and $20 wholesale. A guest sorting low to high sees A first. A wholesale customer sees B first. A wholesale price filter from $15 to $30 can show B even though its retail tag is $100.
Sale Price Handling is respected here too. If “Lowest price wins” is on, a cheaper public sale price is what sorting uses for that customer.
Part 15Keeping wholesale prices private from caches
Many hosts save finished HTML pages to serve them faster. That is fine for a public shop page. It is a problem for wholesale pages, because two logged-in customers can see different prices.
Wholesale Core marks wholesale responses as private so normal WordPress caches and common cache plugins (WP Rocket, LiteSpeed Cache, WP Super Cache, W3 Total Cache) and CDNs that honour standard cache headers do not reuse one customer’s price list for another. Public pages can still be cached.
If a host is configured to ignore “do not cache” instructions, you must also exclude logged-in pages in that host’s own settings.
A full worked example
Imagine you sell craft beer.
Groups. Wholesale Standard for cafés. Distributors for two large accounts, set to fall back to Standard if a Distributor price is missing. You might also give Distributors a small Default % off as a safety net on forgotten SKUs, while still setting fixed prices where it matters.
Prices. A case of pale ale is $60 retail. Standard pays $45. Distributors pay $38. On Pro you add volume breaks so larger Distributor quantities drop further.
Packaging. It ships in 24s, so you set case size 24 on the product (Pro).
Basket terms. Shop-wide minimum order value $500. Distributors must reach $2,000 — set on their group row, which overrides the shop-wide figure for them.
What a café sees. $45, a Wholesale pill, the identity bar, quantity steps of 24, and a basket message until they reach $500.
What a distributor sees. $38 (or a volume break), their badge, the same case steps, a $2,000 basket minimum, and perhaps cheque-only checkout.
What the public sees. $60, any quantity, no badge, no minimums.
Quick reference: where everything lives
| What you want to change | Where to go |
|---|---|
| Groups, Default % off, tax, payment & shipping | WooCommerce → Settings → Wholesale Core → Customer Groups |
| Fixed prices | Edit product → Wholesale → Prices |
| MOQ, case, maximum, visibility | Edit product → Wholesale → Order rules |
| Volume breaks | Edit product → Wholesale → Volume (Pro) |
| Put a customer in a group | Users → edit user, or bulk actions |
| Category minimums | Products → Categories (Pro) |
| Shop-wide defaults, sale policy, badge, identity | Settings → Wholesale Core → General |
| Customer-facing message wording | Settings → Wholesale Core → Messages (Pro) |
| Registration | Settings → Wholesale Core → Registration (Pro) |
| Review applications | WooCommerce → Wholesale Applications |
| Activate Pro | WooCommerce → Wholesale Core → Account |
Things worth knowing
Retail customers are never affected. Wholesale rules only apply to people in a group.
Everyone stays a Customer. Wholesale is a group assignment on the user, not a WordPress role change.
Deleting a group does not delete product prices. Prefer rename over delete and recreate.
Blank means “no rule” or “no fixed price.” Empty fields are never treated as zero.
Default % off uses the regular retail price as its base. Sale Price Handling can still change the final amount.
Volume breaks beat fixed prices and Default % off once the quantity is high enough.
Block cart and checkout are supported, including quantity steppers that respect case sizes.
The free WordPress.org package never soft-locks. Soft-lock after grace only applies to the premium package.
For developers
Wholesale Core is built for WooCommerce 8+ on PHP 8.2+. It is modular OOP, declares HPOS and Cart/Checkout Blocks compatibility, and does not create custom database tables.
Data model
| Concern | Storage | Notes |
|---|---|---|
| Groups | Option wholesale_core_groups | Stable numeric IDs; rename-safe |
| Membership | User meta _wcl_group_ids | Array of group IDs; buyers stay role customer |
| Fixed prices | Post meta _wcl_price_{id} | Keyed by group ID, not name |
| Line MOQ / case / max | Post meta (product-wide and per-group keys) | Blank = inherit next ladder step |
| Volume breaks | Post meta _wcl_tiered_pricing (JSON) | Premium package only |
| Visibility | Post meta _b2b_visibility | public, hide_price_guests, wholesale_only |
| Category mins | Term meta on product_cat | Premium package only |
| Applications | Private CPT | Premium package only |
Resolving a price in code
Prefer the resolver over reading meta yourself. Pass quantity when volume pricing may apply:
// Current user, quantity-aware (cart / ATC context)
$price = WC_Wholesale_Core_Group_Resolver::resolve_price( $product, $qty );
// One specific group
$price = WC_Wholesale_Core_Group_Resolver::resolve_price_for_group( $product, $group_id, $qty );
// Helpful helpers
$ids = WC_Wholesale_Core_Group_Resolver::get_user_group_ids();
$is_ws = WC_Wholesale_Core_Group_Resolver::current_user_is_wholesale();
$group = WC_Wholesale_Core_Group_Resolver::get_primary_group();
$rule = WC_Wholesale_Core_Group_Resolver::resolve_line_rule( $product );
WC_Wholesale_Core_Group_Resolver::flush_cache();
Per-group precedence: volume tier → fixed _wcl_price_{id} → legacy key → Default % off → inherit → retail. Then Sale Price Handling (lowest_wins / wholesale_wins) may defer to a cheaper public sale.
Only the active product price is filtered (woocommerce_product_get_price). Regular price is left alone so sale strikethrough and is_on_sale() stay correct.
Cart and checkout validation
Line and basket rules are enforced on both classic cart and the Store API:
woocommerce_check_cart_items— classic cart / checkoutwoocommerce_store_api_cart_errors— block cart / checkout
Quantity UI uses standard Woo quantity input filters so steppers respect minimum and case size.
Extension hooks
Stable hooks you can use from a small companion plugin or theme:
| Hook | Type | What it is for |
|---|---|---|
wholesale_core_is_paying | filter | Force Pro/Free capability checks (staging, agency builds) |
wholesale_core_purchase_url | filter | Override the Buy Pro URL |
wholesale_core_visibility_options | filter | Add or relabel B2B visibility choices |
wholesale_core_message_template | filter | Adjust a resolved customer message string |
wholesale_core_messages_section_settings | filter | Extend the Messages settings UI |
wholesale_core_sanitize_group_fields | filter | Persist extra fields when groups are saved |
wholesale_core_render_group_extra_tables | action | Render extra tables on Customer Groups |
wholesale_core_admin_volume_pane | action | Volume pane UI (Pro module hooks here) |
wholesale_core_admin_process_product | action | Save extra product Wholesale fields |
wholesale_core_admin_product_wide_rules | action | Extra product-wide order-rule fields |
wholesale_core_admin_group_rules | action | Extra per-group order-rule fields on the product |
wholesale_core_admin_variation_rules / _process_variation | action | Variation Wholesale fields save/render |
wholesale_core_application_submitted | action | After a registration application is filed |
wholesale_core_application_approved | action | After approve (user now in a group) |
wholesale_core_application_rejected | action | After reject |
woocommerce_get_sections_wholesale_core | filter | Add settings sections under the Wholesale Core tab |
wcfw_fs_loaded | action | Runs after Freemius is ready |
// Example: treat the site as Pro in local development
add_filter( 'wholesale_core_is_paying', '__return_true' );
// Example: react when an application is approved
add_action( 'wholesale_core_application_approved', function( $application_id, $user_id, $group_id ) {
// sync to your CRM, Slack, etc.
}, 10, 3 );
Shortcode
Registration form (Pro): [wholesale_core_registration]. Also available as the My Account endpoint wholesale-register.
Free vs premium packages
Pro modules live under includes/premium/ and are stripped from the WordPress.org ZIP (@fs_premium_only). Feature code should gate with class_exists( … ) and/or WC_Wholesale_Core_License::has_pro_capabilities(). Soft-lock after grace applies only to the premium package, never the org free ZIP.
Requirements
WordPress 6.0+, PHP 8.2+, WooCommerce 8.0+ (tested through recent 9.x). Text domain: msdk-wholesale-core-for-woocommerce.
Need help?
Email plugin-support@msdk.com.au. You talk to the people who built Wholesale Core.
