Checkout7 min read

Shopify: Limit Quantity per Customer, per Order and Over Time

Cap how many of a product one buyer gets on Shopify: per order, per customer across orders, or during a drop. What Shopify can do natively and what checkout enforces.

In this guide
  1. Per order or per customer?
  2. What Shopify does natively
  3. How a per-customer limit knows who the buyer is
  4. Set up a per-order maximum step by step
  5. Add a limit per customer over time
  6. What the buyer sees
  7. Mistakes to avoid
  8. Where Checkora: Minimum Order Limits fits
  9. FAQ

Shopify has no built-in way to limit how many of a product one customer buys. You can cap stock, and B2B catalogs can set a maximum quantity for company buyers, but a retail buyer can add any quantity to the cart, and come back tomorrow for more. To limit quantity per customer, you need a checkout rule: a Shopify Function from an app that checks the cart at checkout and, for a per-customer limit, what that signed-in customer has already ordered. This guide covers the two kinds of limit (per order and per customer over time), what Shopify does natively, and how to set them up without blocking honest buyers.

Per order or per customer?

“One per customer” can mean two different rules:

  • A maximum per order. No more than 2 of the limited sneaker in one cart. Easy to enforce, but a buyer can place a second order straight after the first.
  • A maximum per customer over time. No more than 2 per customer in 30 days, counted across orders. This is what stops the same buyer from coming back, but it needs to know who the buyer is and what they bought before.

Shops use these limits for limited drops and launches, products in short supply, low-priced sample packs, and to slow down resellers who empty the shelf.

What Shopify does natively

Inventory. Tracking quantity stops overselling, but it does not stop one buyer from taking all of it.

B2B quantity rules. In a B2B catalog you can set a maximum quantity per variant, the greatest number that can be bought at one time (Shopify Help Center: Quantity rules and volume pricing). B2B is available on every plan from Basic up (Shopify Help Center: B2B features by plan), but these rules apply to company buyers ordering from that catalog, per order, not to retail customers and not across orders.

Themes. A theme can cap the quantity selector, but that is a hint. The cart page, a cart link or an express checkout button can still reach checkout with more.

Checkout rules. Shopify’s Cart and Checkout Validation Function lets an app add a checkout rule, listed under Settings > Checkout > Checkout rules, that blocks checkout with a message while the cart breaks it. It runs in checkout, including express checkouts such as Shop Pay, PayPal, Google Pay and Apple Pay, and a store can have up to 25 active validation functions (shopify.dev: Cart and Checkout Validation Function API). Public apps with checkout rules work on every Shopify plan. Shopify does not count a customer’s past orders for you; the app has to keep that count.

How a per-customer limit knows who the buyer is

A limit across orders only works for buyers checkout can identify:

  • Signed-in customers. Checkout knows the customer, so the rule can add what they ordered in the period to what is in the cart.
  • Guests. Checkout has no customer to count. You can check guests on the current cart only (so the per-order maximum still holds), or ask them to sign in before they can buy the limited product.

If your goal is to stop resellers, asking guests to sign in is the stronger choice, but it adds a step for every buyer of that product. For a short drop, many shops accept it.

Also decide the period: 30 days for a monthly restock, 365 days for a once-a-year release, or every order the app has for “once per customer, ever”.

Set up a per-order maximum step by step

The steps use Checkora: Minimum Order Limits; other checkout rule apps follow a similar path.

  1. Add a rule. In the app, open Rules, click Add rule and keep Rule type on Products.
  2. Choose the products. Under Applies to, pick Specific products or Specific variants, or a collection or tag for a whole drop.
  3. Choose how to count. Per product, all its variants together makes 1 small and 1 large count as 2. Per variant gives each size its own cap. All matching items together caps the whole drop, for example at most 3 items from the Drop collection.
  4. Set the maximum. Enter a Maximum quantity, such as 2.
  5. Limit it to the drop dates. Tick Apply only between dates and set the start and end, so the limit switches off by itself after the launch.
  6. Turn on the checkout rule and the embed. In Settings, tick Turn on purchase limits and save; then switch on the Purchase limits app embed so the product page shows the limit.

Add a limit per customer over time

  1. Open the same rule. Under Limit per customer over time, tick Count past orders of the same customer.
  2. Set Most items per customer, for example 2, and Within the last days, for example 30 (up to 365, or 0 to count every order the app has).
  3. Under Guests who aren’t signed in, choose whether guests are checked on the current cart only or asked to sign in.
  4. Save, then open Test a cart to check the message buyers will see.

A limit over time must apply to specific products or variants. Cancelled orders do not count, so a buyer whose order you cancel can buy again. When the app is installed it imports the last 60 days of orders (up to 5,000) and counts every order after that; Settings > Customer history shows since when orders are counted.

What the buyer sees

  • On the product page, a notice such as “Limit 2 per order” next to the quantity field, and the quantity field can stop at the maximum.
  • In the cart, the problem listed above the checkout button. With Check maximums while the cart changes on, a maximum also shows while the buyer edits the cart.
  • At checkout, a message in the buyer’s language naming the limit the cart breaks.

Limits over time and rules for tagged customers are checked at checkout only, because the storefront does not know the buyer’s past orders.

Mistakes to avoid

  • A per-order cap when you meant per customer. A maximum of 2 per order still lets a buyer place five orders. Add the limit over time.
  • Leaving guests unchecked on a drop. A guest is a new buyer every time. For the most limited products, ask guests to sign in.
  • Forgetting to end the rule. A launch limit that stays on after restock blocks regular buyers. Use dates.
  • Counting the wrong way. “2 per customer” on a T-shirt with Per variant allows 2 of every size.
  • Relying on it outside the online store. Checkout rules do not run on POS, admin order edits or subscription renewals.

Where Checkora: Minimum Order Limits fits

Checkora: Minimum Order Limits sets minimum and maximum quantities, multiples and limits per customer on Shopify, enforced by a checkout rule that runs as a Shopify Function on every plan.

  • Maximums per product, variant, collection, tag or vendor, counted per product, per variant or across all matching items.
  • Limits per customer across orders, for example 2 in 30 days, for signed-in customers, with a choice for guests.
  • Rules for customers with or without a tag, for example a cap for retail buyers that wholesale customers skip.
  • Date ranges for drops and launch weeks.
  • Messages in the buyer’s language: English, German, French, Italian, Spanish, Dutch or Polish.
  • Test a cart to see what checkout will say, without placing an order.

What it does not do: it does not change prices, it does not track guests across orders, and it keeps only the customer, product or variant, quantity and date from each order. Very large carts, beyond roughly 40 different products with a few rules, may skip the check rather than block a buyer by mistake. Step-by-step help: rules for customers and limits over time, quantity rules for products and test a cart. See the app’s page for plans and the full feature list.

For minimums, packs of 6 and a minimum order value, see Shopify minimum order quantity.

FAQ

Can Shopify limit purchases per customer without an app? No. Shopify can cap stock, and B2B catalogs can set a maximum per order for company buyers, but nothing counts a retail customer’s orders over time.

How do I set “limit one per customer” on Shopify? Use a checkout rule with a maximum of 1 per order and a limit per customer over time of 1, and ask guests to sign in for that product.

Does a per-customer limit work for guest checkout? Only on the current cart. Checkout cannot recognise a guest across orders, so the app checks the cart or asks guests to sign in.

Do I need Shopify Plus? No. Checkout rules from public apps on the Shopify App Store work on every plan.

Can a buyer get around the limit with Shop Pay or Apple Pay? No. Shopify runs checkout validation in express checkouts too.