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

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

lydia_aida
Visitor
1 0 0

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?

Reply 1 (1)

StoreWatchers
Trailblazer
205 30 39

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 </head> tag.

 

 

<style>
.quantity{
display:none
}
</style>

 

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

 

StoreWatchers - Automate testing for your Shopify store in seconds


If you find my reply helpful, please hit Like and Mark as Solution
Visit us: App Store | Website | FAQs