Sushinet

How to Make a Shopify Store Wholesale-Only at Checkout

Restrict Shopify checkout to approved wholesale customers — why tags and themes don't actually stop a retail order, and the plain-English rule that does, with a preview.

use-case

You sell to approved accounts, not the public — or you run a retail shop but keep a wholesale line that shouldn't be open to everyone. Either way you need the same thing: checkout that only completes for customers you've approved. Shopify, natively, doesn't gate the checkout by who the customer is.

The native way

Shopify's tools for this are storefront-level: a password page that closes the whole shop, hidden prices, or a theme that shows different content to logged-in customers. If you want to hide the shopfront, those are the native options.

Where it breaks

Hiding the storefront is not the same as restricting the checkout, and the gap is exactly where an unwanted order slips through:

  • Password pages are all-or-nothing. They close the entire shop to the public — no browsing, no SEO, no retail. That's far more than "wholesale-only checkout".
  • Hidden prices still allow purchase. A buyer with a direct product or checkout link, or one using fast checkout, can still reach payment. Hiding the price didn't lock the door.
  • No per-customer gate at checkout. Native settings don't say "only complete this order if the customer is an approved wholesale account". That's a decision about who, made at checkout — which native settings don't make.

The safe way: a rule you can read, preview and watch

Wholesale-only checkout is one sentence, with an exemption for the accounts you trust:

Stops checkout on every checkout — except when the customer's email matches *@wholesale.example.

Written by the Ruleproof engine — the same code compiled into your checkout.

Written by the rule engine itself, so the sentence and the checkout behaviour are one thing. And because it's a rule:

  • You control who's in. The exemption is a list of emails or domains you manage. Approve a buyer by adding their address; revoke by removing it — no rule rewriting.
  • Scope it as narrow as you like. Block everything, or only carts with wholesale-only products, or only above a case quantity — so a public retail store and a gated wholesale line can coexist.
  • Preview and monitor. Test it as an approved customer (clears) and an unapproved one (blocked, with your message), and run it in monitor mode first so you switch it on knowing exactly who it would have stopped.

Which should you use?

If you want to close the entire shopfront to the public, a password page is the native fit. If you want the store to stay browsable but the checkout to complete only for approved wholesale accounts, that's a checkout rule, and Ruleproof lets you write it as a sentence, preview it, and monitor it first. The free plan runs three live conditions (AND, OR and exceptions included) on your real store so you can judge it on your own traffic.

Do this without touching code

Ruleproof builds every rule on this page as a plain sentence, previews it on a test shopper, and watches it against your real orders before it changes one — then switches on.

Questions

Can I limit Shopify checkout to wholesale customers only?

Not natively at checkout. You can hide prices from unapproved visitors or gate parts of your theme behind a login, but neither of those actually stops an unapproved visitor from completing a purchase if they reach checkout by some other route — a direct product link, a saved checkout URL, a fast-checkout button. Shopify's native tools were built to control what a visitor SEES on your storefront, not who's actually allowed to complete a PAYMENT, and those turn out to be two genuinely different problems. A checkout rule closes that specific gap: it can block the order outright unless the customer's email is on your approved wholesale list, and show everyone else a clear message explaining why, rather than relying on the hope that an unapproved buyer never finds a way around your storefront-level hiding.

Doesn't hiding prices or a password page already do this?

Those hide the storefront, not the checkout, and the distinction matters more than it sounds. A password page locks the ENTIRE shop behind one shared password — no public browsing at all, which is a far bigger change than most wholesale-only stores actually want, since it also blocks search engines, casual browsers, and anyone you'd have wanted to eventually convert into a customer. Hidden prices are narrower but still don't gate the actual transaction: a determined buyer with a direct product link, or one using a fast-checkout button that skips your themed pages entirely, can often still reach checkout and complete payment even without ever seeing a price displayed anywhere. Restricting the checkout itself, based on who the buyer actually is, is a genuinely different capability from hiding what a browser sees — and that's specifically what a rule does.

How does the rule know who's wholesale?

By customer email — either a list of specific approved addresses you maintain individually, or a whole domain such as anything ending '@acme-trade.com', which covers an entire approved company at once without listing every employee's address separately. The rule allows checkouts from anyone matching that list through normally and blocks everyone else, showing them your chosen message instead. Changing who's allowed is a matter of editing that list — adding a new approved buyer's email, or removing one whose account should no longer have wholesale access — rather than rewriting the rule's underlying logic each time your approved-customer roster changes, which happens far more often in practice than the rule's actual restriction logic ever needs to — a list is something you can hand off to whoever manages accounts, without them ever touching the rule itself.

Can I run a public retail store and a wholesale gate together?

Yes. You can scope the block as narrowly as your actual business needs — for example, only blocking checkout for carts containing wholesale-only products, or only above a case quantity that signals a bulk order rather than a retail one — so ordinary retail traffic keeps flowing through checkout completely untouched while your wholesale-specific lines stay restricted to approved buyers only. That combination is genuinely common: a store selling both retail-sized and bulk wholesale packaging of the same underlying product needs the retail side open to everyone while the wholesale side stays gated, and a rule scoped to the specific products or quantities that actually distinguish the two lets both models coexist on the same storefront without either one interfering with the other, or requiring two entirely separate stores to keep them apart, doubling your maintenance for no real benefit.

Related guides

Ready to try it?

Ruleproof builds every rule on this page as a plain sentence, previews it on a test shopper, and watches it against your real orders before it changes one — then switches on.

← All checkout rule guides · See what Ruleproof does