How can I limit customers to only purchase available stock quantities?

hello everyone,

My website is going live on the 23th of januari, so I’m in a bit of stress. Customers can add as many of 1 product as they want. Because I’m going to sell vintage I have 1 product of each item. Unfortunately I can’t change the (add … +) button on the product page to just 1 product. The customers will receive this message: You can’t add xxx to the cart. I do not want this message. I just want that they are not able to exceed the available stock quantity. Can you help me?

Hello @lydia_aida ,

Greetings from the Store Watchers Support Team! Happy to help you today.

One possible solution is to hide the quantity adjuster box from the product and cart page. To do that you need to add CSS In your theme.liquid, please paste the code below before the tag.


You might need to change the CSS selector which is quantity based on your theme structure if you are using custom theme.

Regards,

Store Watchers Support Team