remove buy now button when sold out

JADIS
Explorer
169 1 19

Good morning,

 

I would like when a product is sold out, the “buy now” button which is grayed out, would disappear completely.

 

Product exemple : (size xs is sold out) https://jadis-shop.com/products/doudoune-tnf-700-nupste-retro-1996?variant=48850241093961

 

Remove what is in blue :

JADIS_0-1696514203079.png

 

 

Do you know how to do it please?

 

Theme: Dawn
Website: jadis-shop.com
password:rj


thanks in advance

Reply 1 (1)
JosephK
Shopify Partner
598 74 86

Hi,

To solved that issue, you should go to file code which is handling show that button and add logic code like this:

{% if product.available %}
   //show button
{% endif %}

 

You can please Like and Accepted Solution if my suggestion helpful. And if you want to customize or develop new feature on Theme or App => Contact to us via Email or Skype.
- Contact Support : Gmail | Skype: live:.cid.309f2fbaceec513