How to Set a Limit on Product Quantity Per Customer on Shopify (Complete Guide) 2025
Try Shopify Free - No cc Needed   Free Trial
Fact Checked
Detect Shopify Theme

Or go to our Shopify Theme Detector directly

How to Set a Limit on Product Quantity Per Customer on Shopify (Complete Guide)

Last modified: April 28, 2025

How to limit purchase quantity
Free Shopify Trial

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
<input type="number" name="quantity" value="1" min="1">
  1. Modify it by adding a max attribute to restrict the quantity to 1:
html
<input type="number" name="quantity" value="1" min="1" max="1">
  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 %}
<script>
alert('You can only purchase one of this item per order.');
window.location.href = '/cart/change?line={{ forloop.index }}&quantity=1';
</script>
{% 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.
Recommended: 10 Best Shopify Order Limit Apps – 2025
# Name Image
1
Order Limits ‑ MinMaxify
Order Limits ‑ MinMaxify
2
OrderLogic ‑ Min & Max Limits
OrderLogic ‑ Min & Max Limits
3
Min&Max Limits by Limitsify
Min&Max Limits by Limitsify
4
Quantity Breaks Price & Limit
Quantity Breaks Price & Limit
5
MinCart ‑ Min Max order limits
MinCart ‑ Min Max order limits
6
AOD: Order Limits (Min‑Max)
AOD: Order Limits (Min‑Max)
7
Digital Takeout: OrderLimits
Digital Takeout: OrderLimits
8
Order Minimum App
Order Minimum App
9
Quantify
Quantify
10
KOR Order Limit Quantity
KOR Order Limit Quantity
Show More

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.

Keep Reading

Things to Keep In Mind

When setting up Shopify limit quantity per customer rules, you should consider:

  • Guest Checkout: Apps typically handle both guest and account-based users. Manual coding won’t distinguish unless you add customer-specific logic.
  • Inventory Management: Quantity limits are different from inventory tracking. You must still monitor stock levels separately.
  • Checkout Behavior: Shopify standard plans don’t allow full checkout scripting. Shopify Plus merchants can use Shopify Functions for deeper control.
  • Theme Updates: If you manually edit your theme files, remember that updating or switching your theme can erase those changes.

Conclusion: Choosing the Best Method for Your Store

If you only need a simple Shopify limit quantity per customer during a quick promotion, editing your theme works fine.

However, for ongoing product protection, scaling launches, and keeping order behavior consistent, apps provide the strongest, most reliable solution — and are worth the small investment.

For the most professional results:

  • Use a dedicated Shopify app to enforce backend limits.
  • Supplement with front-end quantity controls for a better user experience.
  • Test both the product page and the checkout process to ensure limits behave exactly how you expect.

Managing quantity restrictions carefully is one of those small steps that, when done right, protects your business, your margins, and your customers’ trust.

FAQs
  • Is it possible to limit the purchase of particular product variants while keeping other variants of the same product unrestricted?

    Yes, it is possible to set restrictions on specific product variants. Certain third-party apps available on Shopify offer granular control over product variants, allowing you to apply purchase limits.

  • Are there apps available on Shopify that can automatically notify customers when they reach or exceed purchase limits for a particular product?

    Yes, you can find third-party apps on Shopify’s app store that offer automated notification features. These can be configured to send automatic notifications to customers when they surpass purchase limits.

  • Can I create a waitlist for products that have reached their purchase limit, allowing customers to express interest for future availability?

    Yes, you can use specialized apps to implement a waitlist feature for products that have reached purchase limits. Customers can join a waitlist to express their interest in purchasing the product.

  • Can I limit the number of a specific product a customer can buy on Shopify?

    Yes, you can limit the quantity of a specific product a customer can purchase by using Shopify apps or custom code to enforce purchase restrictions.

  • What is the easiest way to limit 1 product per customer on Shopify?

    The easiest way is to use a Shopify app designed for this purpose, such as “Order Limits (MinMaxify)” or “Limit Quantity Purchase.” These apps allow you to set purchase limits without needing to code.

  • Can I limit the purchase of a product without using an app?

    Yes, but it requires custom coding. You can use JavaScript or Liquid code to enforce the limit on the product page or at checkout, though this may require some technical knowledge.

  • How do Shopify apps help in limiting product purchases?

    These apps allow you to set specific purchase limits per product or per order. They can enforce rules at the cart or checkout level, ensuring customers cannot exceed the specified quantity.

  • Is it possible to limit 1 product per customer across multiple orders?

    Yes, some apps or custom solutions allow you to track customer purchase history and restrict further purchases of the same product if they’ve already bought it before.

  • Can I limit the number of a product based on customer tags or groups?

    Yes, certain apps or custom code can enforce product limits based on customer tags or groups, allowing you to apply different rules for different types of customers.

     

  • Can I limit the number of products at the variant level?

    Yes, many apps allow you to set purchase limits at the variant level, so you can limit the quantity of specific variants (e.g., sizes or colors) a customer can purchase.

     

  • What happens if a customer tries to purchase more than the allowed limit?

    Depending on the app or custom solution you’re using, the customer might see an error message or the excess quantity may be automatically removed from their cart.

  • Is it possible to limit 1 product per customer only during a promotion or sale?

    Yes, you can set time-sensitive rules using apps or custom code to limit purchases only during specific promotional periods.

  • Can I prevent customers from bypassing the limit by placing multiple orders?

    Some apps track customer orders and prevent them from placing multiple orders for the same product, but this often requires an app with more advanced features or custom development.

  • How do I apply purchase limits to specific products only?

    Most apps or custom solutions allow you to select specific products or collections where the purchase limits apply, so other products in your store remain unrestricted.

  • Can I use discount codes with purchase limits?

    Yes, but it depends on how the app or custom code is set up. Ensure that the purchase limits and discount codes don’t conflict, as some solutions might need additional configuration to work together.

  • Is it possible to limit purchases based on customer location?

    Yes, with the right app or custom solution, you can set purchase limits based on the customer’s geographic location or shipping address.

  • Do purchase limits affect the entire cart or just individual products?

    Purchase limits can be set for individual products or for the entire cart, depending on your specific needs and the capabilities of the app or custom solution you use.

  • Can I limit the number of a product during pre-orders or product launches?

    Yes, purchase limits are often used during pre-orders or product launches to ensure fair distribution and prevent stockouts.

  • Will limiting products affect my store’s conversion rate?

    It could, depending on how the limits are communicated to customers. Clear communication about purchase limits can help maintain a positive customer experience.

  • How do I communicate product limits to my customers?

    You can add notes on product pages, use pop-up messages, or include information during checkout to inform customers about purchase limits.