Limit product order quantity

Hi, I’m relatively new to using Shopify, I’ve looked through a lot of previous community discussions for answers and I’m surprised that the basic issue I have, has been asked about so many times without a solution from Shopify. I can’t find out how to limit the quantity of one product that a customer can add to cart per transaction, without buying another app. Before signing up with Shopify, it did not disclose anywhere that many aspects of building your website required additional paid apps to do basic things that you assumed were included in the cost of Shopify. I’ve seen many posts with examples of code, but I’m not familiar with coding at all, and most solutions don’t explain exactly where to add them. Also many posts date back to 2020, the examples I’ve tried don’t seem to work any more? Can anyone give an update on this basic functionality? Is there a up to date working code that will solve this? I’m using the Dawn theme. No suggestions of paid app subscriptions please! Thanks for any input

1 Like

Hi @Pair_of_Squares ,

your requirement can be achieved with custom code in the theme.

Please refer to the below link to see it in action

https://youtu.be/kb63Qz48jr4?si=iui9AinYbxAh2EiP

Your video shows a more comlex issue than mine, involving stock from two different factory locations. I just want a simple solution to set a maxium order limit for one product.

Hi @Pair_of_Squares ,

If you want to implement simple amount limit please refer my previous answer to implement the same.

https://community.shopify.com/c/shopify-design/setting-a-minimum-purchase-price/m-p/2259141/highlight/true#M598421

Hope this will help…

This solution is still not applicable to my requirement, your code is for a minimum order requirement of any products. I want to limit (maximum of 5) of just one product

Your requirement needs more specific code, You should hire someone to implement the same. Let me know if we can help.

I will wait to see if anyone else can comment on my post with a solution, thanks

I’d like to see this as well. We want to offer our customers a one time sample of our product, which feels like a very basic option. I don’t want to have to buy an App, which means sharing all our customers private data, for this one function.

1 Like

We can configure this code in the theme, let me know if interested?

Hello @Pair_of_Squares

Yes, I did implementation in one of my store.

I can share the Some screenshot here - that show limit message and disabled add to cart over - Limit reach.

You can connect me on ahir.nayan1@gmail.com or 8690323888 (WhatsApp), I can show you demo.

Thank You.