Guides

How to Set Minimum Order Quantity on Shopify [Complete 2026 Guide]

OrderRules TeamMay 11, 202614 min read

To set a minimum order quantity (MOQ) on Shopify, install OrderRules from the Shopify App Store, create an MOQ rule on any product, variant, or collection, and OrderRules enforces it at checkout using Shopify Functions — server-side, no theme edits, no code. Shopify has no native MOQ feature, so an app is required if you need real enforcement that cannot be bypassed by Shop Pay or direct checkout URLs.

OrderRules minimum order quantity dashboard — per-product MOQ, per-collection MOQ, per-cart minimum order value of $50, real examples for wine collections and case-quantity SKUs

If you sell wholesale, run a B2B program, or distribute case-quantity items like wine, beverages, or supplements, you almost certainly need MOQ enforcement. Without it, a single retail buyer can place an order for one unit of a product meant to ship in cases of 12 — and Shopify will happily accept the order. This guide walks through every aspect of MOQ on Shopify: why the platform doesn't ship it natively, what the workarounds and apps actually do, and the step-by-step process for setting up MOQ rules with OrderRules.

B2B and wholesale stores often need scheduling too — restricting wholesale ordering to business hours, or closing trade accounts on weekends. OrderRules combines MOQ enforcement with business-hours scheduling in one app. See How to Set Store Hours on Shopify for the scheduling side.

What is Minimum Order Quantity and Why It Matters

Minimum Order Quantity (MOQ) is the smallest number of units a customer must purchase to complete a checkout. MOQs can apply at three different scopes:

  • Per product: "You must buy at least 6 of this SKU."
  • Per collection: "You must buy at least 12 units total from the Wholesale collection."
  • Per order: "Your total order must contain at least 24 units across all items."

MOQs exist for legitimate business reasons. Picking, packing, and shipping a single low-value unit can cost more than the unit itself — fulfillment overhead destroys margin on small orders. For B2B and wholesale stores, MOQs ensure that case-packed inventory ships in case quantities. For handmade and artisan businesses, MOQs protect production economics by ensuring that mixing and finishing time is amortized over enough units.

Stores that benefit most from MOQ enforcement:

  • Wholesale and B2B distributors shipping case quantities (12, 24, 144)
  • Beverage producers selling beer, wine, kombucha, and CBD by the case
  • Supplement and CPG brands with case minimums for retailers
  • Print shops with setup costs that require minimum runs
  • Apparel manufacturers offering wholesale-only SKUs
  • Bakeries and caterers with minimum order sizes for custom production
  • Food service suppliers distributing to restaurants in case quantities

In every case, the cost of accepting an under-MOQ order — refunding it, manually contacting the customer, or eating the fulfillment loss — exceeds the cost of preventing it at checkout.

Can Shopify Set Minimum Order Quantity Natively?

No. Shopify has no built-in minimum order quantity feature. This is the most common piece of bad advice in Shopify forums: you cannot set a real MOQ from Shopify admin alone. There are three commonly-suggested workarounds, and all three have serious limitations.

Workaround 1: Set price per case (and pretend it's a single unit)

Some merchants list their case-pack as a single "product" priced at the case total. For example, instead of selling a $4 bottle of cold brew with an MOQ of 12, they list a "Case of 12" at $48.

Why it fails: You lose granular inventory tracking. Customers who genuinely want 18 bottles have to add a case plus a "loose 6-pack" SKU and hope the math works. Search results for the single unit return nothing. You can't run promotions on per-unit pricing. And SEO suffers because product pages now describe cases instead of products.

Workaround 2: Theme code edits with JavaScript validation

Search results often suggest hacking your theme to validate quantity on the cart or product page with JavaScript. This is enforced client-side, which means:

  • Shop Pay bypasses it (Shop Pay submits checkout directly without re-running cart JavaScript)
  • Apple Pay and Google Pay bypass it for the same reason
  • Anyone who shares a direct checkout URL bypasses it
  • Theme updates can break the validation silently
  • Headless storefronts ignore it entirely

Client-side validation is theatre — it shows a friendly error message to a customer who paused to look at the cart, but it does nothing for the half of your checkouts that use accelerated payment methods.

Workaround 3: Manual order review and refunds

Some merchants accept all orders and manually refund anything below MOQ. This works for very low volume but breaks down fast: it requires a human to check every order, customers receive a confusing refund without context, and your refund rate (visible on the App Store and to Shopify) climbs.

The real fix: server-side enforcement with Shopify Functions

The only way to enforce MOQ on Shopify reliably is at the server level using Shopify's Checkout Validation API, part of Shopify Functions. This runs inside Shopify's checkout engine, so it applies to every checkout method — Shop Pay, Apple Pay, Google Pay, direct checkout URLs, and headless storefronts. We covered the technical details in Shopify Checkout Validation: How to Block Invalid Orders.

You don't need to write the function yourself. Apps like OrderRules ship a pre-built checkout validation function that handles MOQ enforcement out of the box.

Using an App for Full MOQ Control

Several Shopify apps offer MOQ enforcement. The most important capabilities to look for:

CapabilityWhy it matters
Shopify Functions checkout validationServer-side, bypass-proof. Without this, MOQ can be circumvented.
Per-product, per-variant MOQDifferent products often have different MOQs.
Per-collection MOQApply a single rule to a whole product line at once.
Per-order MOQEnforce "total cart must contain X units" across mixed items.
Customer-tag rulesDifferent MOQs for wholesale vs retail customers.
Storefront messagingTell customers the MOQ before they hit checkout.
CSV bulk importSet MOQ on hundreds of SKUs without manual clicks.

OrderRules supports all seven. See the hub comparison of Shopify order limit apps for a full breakdown of how each app stacks up.

Step-by-Step: Setting Up MOQ with OrderRules

Configuring MOQ in OrderRules takes about two minutes for a single product and about five minutes for a full B2B/wholesale catalog using CSV import. Here's the walkthrough.

Step 1: Install OrderRules

Install OrderRules from the Shopify App Store. One click, no API keys, no developer required. The Starter plan is free; MOQ rules require the Pro plan ($9.99/month) — which also unlocks per-customer limits, spending caps, and CSV bulk management.

Step 2: Decide your MOQ scope

Pick the scope that matches how your customers actually buy:

  • Per product / variant: Best when individual SKUs have different case sizes. Most B2B wholesalers use this.
  • Per collection: Best when you have a single "Wholesale" collection and want a flat MOQ across everything in it.
  • Per order: Best when customers mix-and-match items and you only care about total cart size.

Most stores end up using a combination — for example, a flat 12-unit MOQ on the Wholesale collection plus product-specific MOQs on a few large case-packed SKUs.

Step 3: Create the MOQ rule

In OrderRules, go to Product Limits (for per-product or per-variant) or Collection Limits (for collection-wide MOQ). Click "New Rule" and set:

  • Limit type: Minimum
  • Quantity: Your minimum (e.g., 12)
  • Scope: Product / variant / collection
  • Customer segment (optional): Limit to specific customer tags like wholesale, vip, trade-account

For per-order MOQ ("total cart must contain at least 24 units"), use the Order Limits section with a minimum cart quantity rule.

Step 4: Configure storefront messaging

OrderRules includes dynamic template variables you can use on product pages, the cart, or anywhere in your theme:

  • {REM_QTY} — How many more units the customer needs to add
  • {MAX_QTY} — Your minimum requirement
  • {USED_QTY} — How many they currently have

Example message: "Add more to meet the minimum order quantity of ."

This eliminates the most common MOQ frustration: customers reaching checkout, getting blocked, and not understanding why.

Step 5: Test on a draft order

Before going live, create a draft order in Shopify admin and try to check out with a quantity below your MOQ. You should see the OrderRules block message. This confirms the function is wired up correctly through Shopify's server-side validation — not just client-side.

You can also see all of this working live at the OrderRules demo store — pick a product with a configured MOQ and watch the enforcement happen in real-time.

Step 6 (for large catalogs): Bulk import via CSV

If you have hundreds or thousands of SKUs, configuring MOQ one product at a time is painful. OrderRules Pro includes CSV bulk import:

  1. Export the current product limits template from OrderRules
  2. Open in Excel, Google Sheets, or any spreadsheet
  3. Fill in product_handle and min_quantity columns
  4. Upload — all rules apply instantly

We cover this in more depth in Shopify Bulk Product Limits: CSV Import Guide for Large Catalogs.

B2B and Wholesale MOQ Best Practices

For wholesale and B2B stores, MOQ is part of a larger purchasing rules system. A few patterns that work well:

Separate retail from wholesale with customer tags

Tag your wholesale accounts with a wholesale tag in Shopify admin. Then in OrderRules, create MOQ rules that apply only to customers with that tag. Retail customers see no minimum; wholesale customers see your case-pack minimums automatically when they're logged in.

Combine MOQ with spending caps for trade accounts

If you give trade accounts a monthly credit limit, pair the MOQ rule with a per-customer spending cap. OrderRules tracks each customer's cumulative spend and enforces the budget at checkout — combined with MOQ, you get full purchase control.

Match MOQs to your fulfillment unit

If you pick from case-packed inventory, set MOQ to the case quantity (12, 24, 144). If you pick individual units, MOQ can be smaller. The fulfillment economics — labor per pick, packing materials per box, shipping zones — should drive the MOQ number, not aspiration.

Communicate MOQ on product pages, not just at checkout

Wholesale customers will abandon checkout if they reach it and discover a minimum they weren't aware of. Use the {REM_QTY} storefront variable on every wholesale product page so the minimum is visible the moment they land. Most customers add the right quantity if you simply tell them.

Allow assorted MOQ for variety packs

If you sell beer, wine, or kombucha, customers often want a mix. Use a collection-level MOQ ("at least 12 units total from the Mix-and-Match Beverages collection") rather than per-product MOQ — this gives buyers flexibility while still enforcing your case quantity overall.

Common MOQ Mistakes to Avoid

A few patterns we see that backfire:

1. Setting MOQ without storefront messaging. Customers get blocked at checkout and abandon. Always pair the MOQ rule with a visible product page message — {REM_QTY} makes this automatic.

2. Using client-side JavaScript only. We covered this above. Shop Pay, Apple Pay, and direct checkout URLs bypass it. If your enforcement isn't running through Shopify Functions, it's not real enforcement.

3. Applying retail MOQs to wholesale customers (or vice versa). Use customer tags to separate the two segments. A retail customer hitting a wholesale MOQ on a B2B product will leave for a competitor.

4. Setting MOQs that don't match your inventory unit. If you stock cases of 24 but set MOQ to 20, your warehouse team breaks cases — defeating the cost savings the MOQ was supposed to capture.

5. Forgetting to test with accelerated checkout methods. Always test your MOQ rule with Shop Pay or Apple Pay before going live. If a competitor app is enforcing only at the cart level, your test will pass on the cart but fail through Shop Pay.

6. Setting MOQ everywhere "just in case." MOQs add friction. Only apply them where the unit economics actually demand it. For retail SKUs with healthy margins, no MOQ is usually right.

How OrderRules Compares to Other MOQ Apps

If you're evaluating MOQ apps, OrderRules competes most directly with:

AppMOQ supportFree planStorewide capsPer-customer limitsCompare
OrderRulesPer product, variant, collection, orderYesYesYes (Pro)
Avada Order LimitsPer product, collectionYesNoLimitedvs Avada
MinMaxifyPer productNoNoNovs MinMaxify
KOR Order LimitsPer product, collectionNoNoTag-only (Pro)vs KOR
MinCartPer cart, per productNoNoNovs MinCart
Pareto Order LimitsPer product, MOQYesNoNovs Pareto

See the full comparison hub for ratings, pricing breakdowns, and use-case recommendations.

Frequently Asked Questions

Does Shopify have a built-in minimum order quantity feature?

No. Shopify has no native MOQ enforcement at any plan level — Basic, Shopify, Advanced, or Plus. An app like OrderRules is required to enforce MOQ at checkout. The closest native option is changing the unit of sale (selling "case of 12" as a single SKU), but that loses per-unit inventory tracking and breaks per-unit pricing.

Can I set different MOQs for wholesale vs retail customers?

Yes. With OrderRules, tag wholesale accounts with a wholesale customer tag in Shopify admin, then create MOQ rules that apply only to customers with that tag. Retail customers see no minimum; wholesale customers see the case-pack minimum automatically.

Does MOQ enforcement work with Shop Pay and Apple Pay?

Yes — if and only if the app uses Shopify Functions (Checkout Validation API) for server-side enforcement. OrderRules does. Apps that only validate at the cart level are bypassed by Shop Pay, Apple Pay, and Google Pay because those payment methods submit checkout directly without re-running cart-page JavaScript.

What's the difference between MOQ, minimum order amount, and order limits?

Minimum Order Quantity (MOQ) is a unit count — "buy at least 12 of this product." Minimum order amount is a dollar threshold — "spend at least $50 to check out." Order limits typically refer to maximum caps — "stop accepting orders after 50 per day." OrderRules supports MOQ and maximum order limits natively. For minimum dollar amounts at the cart level, MinCart is purpose-built for that specific case.

Can I set MOQ at the variant level, not just the product level?

Yes. OrderRules supports per-variant MOQ — useful when, for example, your "Sample Size" variant has no MOQ but your "Case of 24" variant requires a minimum of 1 case.

How do I bulk-import MOQ rules for hundreds of products?

Use OrderRules' CSV bulk import (included on the Pro plan). Export the template, fill in product handles and minimum quantities in a spreadsheet, and upload. All rules apply instantly. See the CSV Bulk Import Guide for the full walkthrough.

Will MOQ rules break my checkout speed?

No. Shopify Functions run inside Shopify's checkout engine with sub-millisecond execution. Customers experience no perceptible latency, and the validation runs on every checkout method.

Next Steps

If you sell wholesale, run a B2B program, or distribute case-quantity items, MOQ enforcement is non-negotiable — and Shopify won't ship it natively any time soon.

Install OrderRules from the Shopify App Store to get MOQ enforcement, per-customer limits, automated store hours, and CSV bulk management — starting on the free Starter plan and unlocking MOQ on Pro at $9.99/month.

Or see the full Shopify order limit app rankings to evaluate OrderRules against every alternative on the market.

Ready to take control of your orders?

Try OrderRules Free