Want to keep things fair and make sure everyone gets a piece of the action? Limiting one product per customer on your Shopify store is the perfect way to do just that. Whether you’re dropping a limited-edition item or running a special promotion, setting up this rule helps you manage the hype and prevent stock from being wiped out by a single buyer. In this quick guide, I’ll show you how to easily put this limit in place so you can keep your customers happy and your products flying off the (virtual) shelves-one per person!

Method 1: Simple Front-End Limit (Product Page Quantity Restriction)

The fastest way to limit a customer’s product quantity is by adjusting the product form directly inside your theme.

How to Add a Front-End Quantity Limit:

  1. In your Shopify admin, go to Online Store > Themes.
  2. Find your active theme and click Actions > Edit Code.
  3. Locate your product template file. It might be called:
    • product.liquid
    • main-product.liquid
    • product-form.liquid
    • Or under Sections like product-template.liquid
  4. Find the quantity input element, which typically looks like:
html

  1. Modify it by adding a max attribute to restrict the quantity to 1:
html

  1. Save your changes.

Result:
Customers won’t be able to select more than one item when adding the product to their cart.

Important Note:
This is a front-end restriction only. It can be bypassed by users who manually edit the cart. It’s good for casual buyers but not full-proof for launches or limited-edition releases.

Method 2: Limit Quantity Per Customer Using Shopify Apps

If you want a more secure solution that monitors cart behavior and checkout conditions, the best option is to install a Shopify app specifically designed to limit quantity per customer.

Recommended Apps:

  • Order Limits (MinMaxify)
  • OrderLogic

Both apps allow you to:

  • Set a maximum quantity per product
  • Enforce rules at the cart and checkout level
  • Apply limits to specific products or entire collections
  • Customize error messages when customers exceed limits

Setup Time:
Less than 10 minutes.

Pricing:
Most apps offer a free trial and start around $5-10/month depending on features.

Why Use an App:
Unlike basic HTML edits, apps enforce backend logic.
This means customers can’t cheat by altering form fields or cart pages.

Method 3: Cart Validation (No App, Full Control)

For store owners who prefer a code-based solution without relying on third-party apps, you can add a validation check inside your cart template.

How to Enforce Limits at the Cart Level:

  1. Go to Online Store > Themes > Edit Code.
  2. Open your cart.liquid file.
  3. Insert the following code snippet:
liquid
{% for item in cart.items %}
{% if item.product.handle == 'your-product-handle' and item.quantity > 1 %}

{% endif %}
{% endfor %}

Instructions:

  • Replace 'your-product-handle' with the handle of the specific product you want to limit.
  • Example: If your product URL is /products/limited-edition-shirt, then the handle is limited-edition-shirt.

What This Code Does:
If a customer attempts to have more than one unit of the restricted product in their cart, the page will automatically adjust the quantity back to one and display a warning message.

Key Takeaways
1
Supercharge your Shopify store by using third-party apps to effortlessly cap purchases at one per customer, keeping your limited editions truly exclusive.
2
Shopify Plus users can flex their coding muscles by creating custom scripts that seamlessly enforce product limits, adding a touch of tech wizardry to your store.
3
For those running a smaller shop, manually reviewing orders offers a straightforward, hands-on way to ensure customers only snag one of your special items.

Why Limit Quantity of Product Purchases?

There are numerous reasons why you might want to limit quantity per customer. For one, you might have a limited stock of a highly valuable item and want to ensure that all your customers get a chance to make a purchase.

Or there might legislation that limits the number of products that can be bought at any one time. Additionally, you may want to get sales information for a specific high-demand product to better manage inventory levels.

These are good reasons why you should limit the quantity of products you sell to each customers. But there might be other reasons as well, such as disabling customer accounts temporarily if there are concerns about unauthorized purchases.

Limiting product quantity per customer isn’t that hard on Shopify, This is because there are advanced features apps that are available for you.

The Limit Quality Purchase App

One of the top options that you can use is the app called KOR Order Limit Quantity. This has been specifically designed to give Shopify owners, like you, the option to ensure that you can limit the quantity of a specific product or products in a category someone can buy at one time.

Let’s have a look at this app and what it can do for you without having to edit any code.