Skip to content
MAX Guide

How to Set Maximum Order Limit on Shopify

10 min read

Limit how many items customers can buy on Shopify. Prevent bulk buying, protect limited stock, stop resellers. One per customer, max quantity per product, purchase limits.

How to Set Maximum Order Limit on Shopify

Why limit purchase quantities?

  • 1

    Prevent resellers from clearing your stock

    Resellers use bots and multiple orders to buy entire product runs, then flip them at markup. A maximum of 1-2 per customer ensures more of your actual customers can buy.

  • 2

    Fair access for limited releases

    Sneaker drops, designer collaborations, event tickets, seasonal collections — when supply is limited, you need to spread it across more customers.

  • 3

    Control free sample and promotional items

    Offering free products? Without limits, a single customer could order hundreds. Set a maximum of 1-2 to spread samples fairly.

  • 4

    Protect digital product licensing

    Selling digital goods like license keys, downloadable courses, or software? Limit to 1 per customer to prevent redistribution.

  • 5

    Manage inventory for high-demand items

    If a product is selling fast and you want to avoid stockouts before more customers can buy, temporarily cap quantity per order.

  • Method 1: Using an app Recommended

    1. 1

      Install Nex Minimum Order Amount MOQ from the Shopify App Store.

    2. 2
      Create a maximum quantity rule.
    3. Creating a maximum quantity rule
      Creating a maximum quantity rule
    4. 3

      Set the scope — per product, per variant, per collection, or whole cart.

    5. 4

      Enter the maximum — e.g., 1 per customer, 5 per product, 20 per cart.

    6. Setting the maximum order quantity
      Setting the maximum order quantity
    7. 5

      Set conditions (optional) — apply only to products tagged “limited-edition,” a specific collection, different limits for wholesale vs retail, or by country.

    8. 6

      Customize the message — “This item is limited to 1 per customer to ensure fair access.”

    9. 7

      Activate — cart warning + checkout validation enforce the limit.

    Customer blocked at checkout when exceeding the limit
    Customer blocked at checkout when exceeding the limit

    Why an app over code: Checkout validation blocks the actual payment. Cart-only JavaScript warnings can be bypassed through direct checkout, accelerated checkout, or browser manipulation.

    Method 2: Shopify B2B catalog rules Plus only

    Shopify’s B2B catalog system supports maximum quantity per variant. Set it in Products → Catalogs → Quantity rules. Only works for B2B customers assigned to catalogs. Requires Shopify Plus.

    Method 3: Liquid code Warning only

    You can add Liquid code to show a warning on the cart page if quantities exceed your limit. However, this is a visual warning only — customers can still complete checkout. Not recommended as a standalone solution.

    Common maximum limit setups

    One per customer (limited drop)

    • Rule: Maximum 1 per product
    • Scope: Collection = “Limited Edition”
    • Message: “Limited to 1 per customer. Fairness for all fans.”
    • Checkout validation: Blocks payment if cart contains 2+ of any limited product
    Cart-level maximum quantity configuration
    Cart-level maximum quantity configuration

    Free sample limit

    • Rule: Maximum 1 per product
    • Scope: Products tagged “sample”
    • Message: “Free samples are limited to 1 per customer.”

    Reseller prevention (high-demand product)

    • Rule: Maximum 3 per product
    • Scope: Specific high-demand product
    • Message: “This product is limited to 3 per order.”

    Wholesale gets higher limits

    • Rule 1: Maximum 5 per product (no customer tag — applies to retail)
    • Rule 2: Maximum 100 per product (customer tag = “wholesale” — B2B gets more)
    • Result: Retail customers limited to 5, wholesale can buy up to 100

    Country-specific limits

    • Rule: Maximum 3 per product
    • Condition: Country = Canada
    • Message: “Due to import regulations, this product is limited to 3 per order for Canadian shipping addresses.”

    Maximum quantity vs. maximum amount

    Maximum quantity = cap on number of units. Best for: limited editions, samples, preventing bulk buying.

    Maximum amount = cap on dollar value. Best for: fraud prevention on high-value orders, risk management, gift card limits.

    You can use both — limit quantity to 2 AND limit order total to $500 on the same rule.

    What about “one per customer” (lifetime limit)?

    A per-order maximum limits what a customer can buy in a single order. They could potentially place multiple orders for the same product.

    True “one per customer forever” limits require tracking purchase history. Some apps offer this as “lifetime limits” — check if this is a requirement for your use case.

    For most scenarios (drops, events, promotions), a per-order maximum is sufficient because the product sells out quickly.

    Summary

    MethodPlanBlocks checkoutCode needed
    App (Nex MOQ) Basic and up ✓ Yes No
    B2B catalog rules Plus (B2B) Partially No
    Liquid code Any ✗ No (warning only) Yes

    The key difference: checkout validation. Without it, savvy customers and bots can bypass your limits. With it, the limit is truly enforced.

    Share this article

    N

    Nex MOQ Team

    We build order limit tools for Shopify merchants. Our guides are written by Shopify experts who help thousands of stores manage minimum and maximum order rules.

    Ready to enforce order limits?

    Start your free trial. No code required. Works on all Shopify plans.

    Plans from $9.99/month after free trial · Free for dev stores