Hello There ,
Is there any way to hide the quantity box and buy it now buttons only in the sold out products . I do not want the buttons to get affected in available products . Can anyone assist me with this .
Thank You!!
A user seeks to hide the quantity selector and “Buy It Now” button specifically on sold-out products while keeping them visible on available items.
Proposed Solution:
</body> tag that uses {% if product.available %} logicFollow-up Issue:
Another user reports the solution successfully hides the quantity selector box, but the text label “quantity” still appears and needs removal.
Status: The discussion remains open with an unresolved secondary issue regarding the remaining quantity label text.
Hello There ,
Is there any way to hide the quantity box and buy it now buttons only in the sold out products . I do not want the buttons to get affected in available products . Can anyone assist me with this .
Thank You!!
Hey @jnud21
Follow these Steps:
Go to Online Store
Edit Code
Find theme.liquid file
Add the following code in the bottom of the file above tag
{% if product.available %}
{% else %}
{% endif %}
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Hi Moeed,
Thanks for this solution! My site doesn’t display the quantity selector itself anymore, but it still shows the word ‘quantity’. Can I remove this somehow too?
Thanks so much!