Hi guys,
I would like to know how to hide this quantity selector if the product tag =“test”.
I still need Add To Cart button. I don’t want customers to buy more than one product.
Or how can I set up a limit the purchased quantity? Thank you.
Hi guys,
I would like to know how to hide this quantity selector if the product tag =“test”.
I still need Add To Cart button. I don’t want customers to buy more than one product.
Or how can I set up a limit the purchased quantity? Thank you.
This code may not work. We’d need to see your website to write an accurate code.
Kind regards,
Diego
Hi @Anna_Wang1 ,
Hope you are doing well.
You can use tag in product to check if the product has tag “test”, then you add class example as “product–test”. So you can use this snippet to hide quantity selector in product page:
.product–test .quantity-selector{
display: none;
}
Hope this helps.