Hide Prices on Sold Out Products Impulse Theme

I’m using the Impulse theme and I want to hide product prices when the item is out of stock. Any code suggestions/solutions? Thanks!

1 Like

Hi there,

I’d say something like:

{% if product.available == true %}
{{ product.price }}
{% endif %}

Hi @dbltkesam

I am not familiar with the Impulse theme, but you do need to find the collection product card. It does depends on how it was written. If you find the file, you need to find the price line of code and enclose it in the if statement

Code below as reference

{% if product.selected_or_first_available_variant.inventory_quantity < 1 %}
Your price code here...
(% endif %}

Hi, @made4Uo

I have the same question for the Prestige theme. Do you think this line of code will work to hide the price after the item is sold?

Thanks!