Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Show error message on cart section if variant quantity is less than the current variant quantity

Show error message on cart section if variant quantity is less than the current variant quantity

lichael06
Excursionist
29 1 9

I would like to add an error message on the cart section if variant quantity is less than the current variant quantity after updating the cart. You can try the product "Cardigan Set" and set the variants in to Sea Blue and 6M, currently this product had a quantity of only 1 and if I set it into 2 and click the update cart button the error should be appear since the current variant qty of this product is 1.

 

https://memaknits.com/

 

lichael06_1-1680636671444.png

 

@GemPages 

@KetanKumar 

@Litos 

banned
Reply 1 (1)

BSS-Commerce
Shopify Partner
3477 463 547

Hi @lichael06,

 

You need to turn off  "Continue selling when out of stock" and turn on "Track quantity" in the inventory part of the product which you want to show an error message on the cart section if  less than the current quantity.

Admin store > Product > Selected product you want > Find of part "inventory" > Set up options as below figure

view (20).png

Finally,  the result will be like this

view (21).png

We hope this can help you. 

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .


B2B Solution & Custom Pricing | Product Labels by BSS


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency