How to limit quantity of each item in Dawn theme?

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 4 (4)

sahilsharma9515
Shopify Partner
1206 156 233

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
1335 102 138

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 [email protected]
From Less To Further !!!

LuffyOnePiece
Shopify Partner
645 93 116

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? [email protected]
For quick response, Contact In WhatsApp +9779867521184

JimJong
New Member
56 0 0

Yes it is possible to limit quantity of each item to 1 using the Cart Lock https://apps.shopify.com/cart-lock app easily. Follow the steps below:

  1. Open the app and click on the "Add a new rule" button.
  2. Click "Add a new condition" and select the "Single item quantity" then put 1 in the "Block if more than" field.
  3. In the "Error message" field, add an appropriate message which will be displayed in the checkout page.
  4. Save the rule.

only1.png

 

I hope it will work for you. Thanks.