Modules

Quantity limits

Set a floor or a ceiling on how much a shopper can buy — capped in the cart drawer and enforced again at Shopify's checkout.

What it is

Quantity limits is a rule, not something shoppers see. It adds no row, no banner and no box to the drawer. Instead it changes how the cart behaves: the + button stops at your ceiling, the line explains why, and the Checkout button refuses with a reason.

When you publish, the same limits are also sent to Shopify as a checkout validation. So a shopper who never opens the drawer — who goes straight to /checkout — is stopped there too.

When to use it

Limits are counted in items, never in money. "Most items an order may have" is a count of units, not a spend cap.

Set it up

  1. Open your cart in the Cart builder.
  2. Under Add a module, choose Quantity limits and press Add.
  3. Press Settings next to the new module.
  4. Fill in whichever limits you want. Every field is optional — leave a field empty and that limit simply does not exist.
  5. For a per-product limit, press Choose from your catalogue to pick the products, then fill in Fewest of each of those and/or Most of each of those.
  6. Press Save. Saving does not put it live.
  7. Go back to the builder and press Review and publish. Publishing is what updates the drawer and creates the checkout validation on Shopify's side.

You can watch it behave before a shopper does: Preview in the builder runs the real drawer against a cart you choose.

Settings

SettingWhat it does
Fewest items an order may haveThe smallest total number of items a cart may check out with. Optional — a wholesale minimum, for example. Leave empty for no floor.
Most items an order may haveThe largest total number of items a cart may check out with. Optional. Counted in items, not money.
Products with their own limitThe products the limit below applies to. Chosen from your catalogue. The limit applies to each of them, counting every size or colour of the same product together.
Fewest of each of thoseThe minimum a shopper must have of each chosen product, added up across its variants.
Most of each of thoseThe maximum a shopper may have of each chosen product, added up across its variants.

All five fields accept whole numbers of 1 or more. Zero and negative numbers are rejected when you save; a decimal is rounded down when the limit is applied.

What shoppers see

The quantity buttons

When a line reaches your maximum, its + button stops working and the line says Limit 2 per order (with your number). That wording is deliberately different from the stock message — "Only 2 left in stock" and "Limit 2 per order" are different facts, and a shopper told the wrong one waits for a restock that is not coming.

If a product also has limited stock, the tighter of the two wins.

The Checkout button

A cart that breaks a limit still shows its Checkout button, but pressing it refuses and states the reason instead of sending the shopper on. The shopper sees one reason at a time, in this order:

  1. You can order 2 of Merino Crew — you have 3.
  2. Orders are limited to 10 items — you have 12.
  3. Merino Crew has a minimum of 6 — you have 3.
  4. Orders start at 3 items — you have 2.

A named product comes before a whole-cart message, and being over a limit comes before being under one. An empty cart is never blocked. You can reword all four of these on the Shopper copy screen, under the Quantity limits group.

Minimums behave differently from maximums

A maximum can be prevented, so the + button simply stops. A minimum cannot: a cart holding one of something with a minimum of six is already below it, and there is no button press to refuse. Blocking the button would trap a shopper in a cart they could not empty. So minimums leave every control working and block checkout with the reason instead.

Counting

At Shopify's checkout

Publishing creates a checkout validation on your store that reads the same numbers and reports the same four messages, in the same order. It is what stops a shopper who skips the cart entirely. It is kept in step automatically:

Limitations

Things a merchant would reasonably expect that this module does not do today:

Saving is not publishing. Changes on this screen do nothing to your live store until you press Review and publish — and that is also what tells Shopify's checkout about the limits.

Next: Publishing explains the review screen, version history and rollback. If a limit is not behaving on your storefront, start with Troubleshooting.