Checkpost

How to restrict wholesale products to wholesale customers on Shopify

Short answer: Prevent retail customers from buying wholesale SKUs by requiring a wholesale customer tag or a B2B company account. In Checkpost, choose “Wholesale-only products” from Templates, adjust the values, test it, then save and enable the rule.

The problem

Retail customers who find wholesale SKUs through search or shared links buy at wholesale prices, undercutting your retail channel.

How to set it up

  1. Install Checkpost from the Shopify App Store.
  2. Open Templates and choose Wholesale-only products.
  3. Tag wholesale products and set your wholesale customer tag.
  4. Use Try this rule to test a sample cart, then click Save rule.

The rule

Checkout is blocked when all of these conditions are true:

Shoppers see: “Wholesale items require an approved wholesale account.” at the top of checkout, in the cart and at checkout.

Rule definition (JSON)
{
  "name": "Wholesale SKUs for wholesale buyers",
  "match": "all",
  "conditions": [
    {
      "kind": "cart_contains",
      "filter": {
        "productTags": [
          "wholesale"
        ]
      }
    },
    {
      "kind": "customer_tag",
      "op": "has_none",
      "tags": [
        "wholesale"
      ]
    },
    {
      "kind": "boolean",
      "field": "is_b2b",
      "value": false
    }
  ],
  "message": "Wholesale items require an approved wholesale account.",
  "target": "cart",
  "runOn": "always"
}

Where this rule works

These are cart and checkout validations, including supported accelerated checkouts. They are current-cart policies; they do not track previous purchases of a SKU. Shopify excludes POS, recurring subscription orders and native pre-order/Try Before You Buy flows from this API. See Shopify's validation compatibility.

Tips

FAQ

Do I need Shopify B2B for this?

No. Customer tags work on every plan. If you use Shopify B2B, company buyers are recognised automatically.

Can retail and wholesale customers share a cart?

Each cart belongs to one buyer, so the rule checks that buyer.

Related rules

Add wholesale-only products to your store