How to limit to one item and one quantity only per checkout?

Topic summary

A merchant seeks to restrict checkout to one item at one quantity per transaction.

Suggested Solutions:

  • Third-party apps: Shopify support recommends Order Limits (MinMaxify) app, which can set maximum quantities and restrict product groups. Another user suggests the MageComp Limit Qty Purchase app, noting it tracks customer purchase history and works well for digital products.

  • Custom code approaches: One user shares a Liquid template workaround by adding conditional logic to cart template files, targeting products by title (e.g., items containing “Promotion”). Another provides a detailed method using Shopify’s Custom Data feature to add a “Max Cart Quantity” metafield to products, then editing theme Liquid files to enforce the limit via the HTML max attribute.

  • Hiring developers: Custom-coded solutions through Shopify Experts are mentioned as an alternative.

Community Sentiment:

Multiple participants express surprise this isn’t a built-in feature, citing use cases like preventing resellers from bulk-buying limited stock and meeting legal quantity restrictions (e.g., liquor sales). Shopify support acknowledges the feedback and offers to file feature requests.

Implementation Challenges:

One user reports the custom metafield code solution didn’t work as expected, still allowing checkout despite error messages. The discussion remains open with no definitive resolution for all scenarios.

Summarized with AI on October 27. AI used: claude-sonnet-4-5-20250929.

Hi there @Besguerra !

Don here from Shopify. :slight_smile:

The first thing that comes to mind for your requirements is the Order Limits (MinMaxify) app.

I know that this will allow you to set a maximum (as well as minimum) product quantity.

From your post here, it sounds like you also want to restrict which products a customer can purchase as well as limiting the quantity of that item to one per customer?

I’m not 100% certain, but it does sound from the app store page description that this app should also be able to limit:

  • Number of items for a specific product
  • Number of items within a group of products

If you want to be totally sure of any aspect of using this app I would reach out to its developers using the contact details listed on the app store page as they will be able to field any queries you have about using this app.

Should you prefer to get this functionality coded into your store rather than using an app, you can also consider hiring an Expert Developer to create a private app or otherwise handle this using a custom-coded solution.

Are you still getting set up with your business here or have you been selling for a while already?

Regards,

Don

1 Like