https://ho6nudm7rx7entkl-71576191201.shopifypreview.com
please hide the buy now button from product page of all sold items on both mobile and pc .
https://ho6nudm7rx7entkl-71576191201.shopifypreview.com
please hide the buy now button from product page of all sold items on both mobile and pc .
Hi @Shahil1
Please add this code to theme.liquid file, after in Sales channels > Online Store > Themes > click “…” next to theme you want to hide buttons > Edit code
just want to hide buy now button from individual product page, i want the soldout button to be there itself.
Please use this code
this fixed it . can you also give me acode to add to this custom liquid so that it gets hidden when the item is soldout
can you share your this custom liquide code
@Shahil1
here is a sample code for you
{% if product.available == false %}
This product is sold out.
{% else %}
This product is available for purchase.
{% endif %}
When product is sold out it will show the sold-out text when available it will show available. you can just use the condition above your custom liquide
Get it between -
Please use this condition {% if product.available == false %} above this code
and {% endif %} after this code block
Please update code to this