Hide price when sold out on Impulse Theme

Currently, in my online store, some of the items are sold out. However, I would like to change my pages so that when an item is sold out(quantity = 0), the price for that item, or variant, is hidden. How can I go about doing that?

I am using the Impulse theme

1 Like

That should be rather easy. What is your URL?

The URL is https://jr-trades-ltd.myshopify.com/

So you want to just hide it like this or rather have some copy explaining “price display when item is back in stock” or something?

1 Like

Exactly like that, aswell as on the product grids like this:

Cool - you’d have to do some coding in two places. Can you do that yourself?

I can certainly try if you are able to let me know what code and where I need to add it? Thank you for your help with this.

So the WHAT is easy but for the WHERE I’d have to look at your code and try and find the relevant areas.

{%- if variant.available == false %}

Thanks, I have no idea where the relevant area’s would be to add that though as I’m not particularly skilled with code. Any chance you’d be able to take a look or advise what would pinpoint the relevant area?

Sure no problem. Let’s do this.

I am having the same problem on Impulse theme and would also like to make the sold out items unclickable if possible? Thanks a mil

1 Like