How to limit quantity of each item in Dawn theme?

prodkenj
Visitor
1 0 0

I only want customers to be able to purchase a maximum quantity of 1 per item.

 

I have removed all of the quantity selectors from the product page and from the cart, but you can still add multiple amounts of each item if you continuously click the add to cart button.

 

Thanks

Replies 3 (3)

sahilsharma9515
Shopify Partner
994 124 189

Hi @prodkenj you need to ad the custom code in the theme so that once customer have added the product in the cart then "Add to cart" button should disable so that customer will not be able to add another product, also if customer want they can manually edit the quantity by changing 1 to 3, and it works for most of theme, so you need to disable that as well.

 

If you will unable to implement the same then I'm happy to do this for you, let me know. I can implement the code changes so that this will work well for you.

 

Hopefully it will help you. If yes then Please don't forget hit Like and Mark it as solution!

 

Best Regards

Sahil

- Your

 Coffee Tip 

can create magic in coding ❤️❤️

- Need a Shopify Developer? CHAT ON WHATSAPP or EMAIL ME !


- Hopefully the solution will help you. If yes then Please hit

 Like 

and

 Mark it as solution! ❤️


Sweet_Savior_3
Shopify Partner
1190 96 115

Hello 

 

Please send me your product URL

Don't forget to like and accept the solution to help others store owners.
Looking for an expert or Have any queries ? Send query to the Inbox
Coffee Tip ? Pay to shopify.dev.34@gmail.com
From Less To Further !!!

LuffyOnePiece
Shopify Partner
521 78 96

Hi @prodkenj ,

 

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

 

Another alternative will be using the custom code where we can check if the product is already on the cart or not and add if not added previously.

 

Let me know if you need any assistance.

 

Thank you

Sandeep Pangeni
Need help with your store? sandeeppangeni17@gmail.com
For quick response, Contact In WhatsApp +9779867521184