How to get "Free" instead of "$0" as price

Solved

How to get "Free" instead of "$0" as price

Dvdv
Tourist
8 0 1

Hello, does somebody know who to turn "$0" to "Free" as a displayed on the product page and collection product grid? I use the theme Sense. Thanks in advance!

Accepted Solution (1)
made4Uo
Shopify Partner
3873 718 1221

This is an accepted solution.

Hi @Dvdv,

 

My bad. It was the liquid code. I just change the product to card_product

 

Just follow the instructions below

1. Go to Admin page > Online store > themes > Actions > Edit code
2. Open the card-product.liquid under the Snippet folder.

3. Find the code below. 

 

 

{% render 'price', product: card_product, price_class: '' %}

 

 

4. Replace it with the code below. 

 

 

       {% if card_product.price != 0 %}
              {% render 'price', product: card_product, price_class: '' %}
              {% else %}
              FREE
              {% endif %}

 

 

 

 
If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free

View solution in original post

Replies 14 (14)

made4Uo
Shopify Partner
3873 718 1221

Hi @Dvdv

Just follow the instructions below

 

1. Go to Admin page > Online store > themes > Actions > Edit code
2. Open the main-product.liquid under the Section folder then add the code below.

3. Find the code below. 

        {%- render 'price', product: product, use_variant: true, show_badges: true, price_class: 'price--large' -%}

4. Replace it with the code below. 

       {% if product.price != 0 %}
              {%- render 'price', product: product, use_variant: true, show_badges: true, price_class: 'price--large' -%}
              {% else %}
              FREE
              {% endif %}

 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free
Dvdv
Tourist
8 0 1

Thanks, now the price is indeed changed on the product page itself which is great and exactly what I ment. But is this also possible for the product collection grid? Because here is still says "$0" instead f "Free". Thanks in advance again! Appreciate it.

Dvdv
Tourist
8 0 1
made4Uo
Shopify Partner
3873 718 1221

Hi @Dvdv,

 

 

Just follow the instructions below

 

1. Go to Admin page > Online store > themes > Actions > Edit code
2. Open the card-product.liquid under the Snippet folder.

3. Find the code below. 

 

 

{% render 'price', product: card_product, price_class: '' %}

 

 

4. Replace it with the code below. 

 

 

       {% if product.price != 0 %}
              {% render 'price', product: card_product, price_class: '' %}
              {% else %}
              FREE
              {% endif %}

 

 

 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free
Dvdv
Tourist
8 0 1

@made4Uo  it doesn't work. The "$0,00" is still there. I send a screen shot.

Dvdv
Tourist
8 0 1

Schermopname (192).png

made4Uo
Shopify Partner
3873 718 1221

Weird. Looks like you have a different code in your collection. Are you able to share your website?

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free
Dvdv
Tourist
8 0 1

Yes, its Readtabs.com

 

Dvdv
Tourist
8 0 1

@made4Uo As far as I know the code has never changed, only the css.

made4Uo
Shopify Partner
3873 718 1221

This is an accepted solution.

Hi @Dvdv,

 

My bad. It was the liquid code. I just change the product to card_product

 

Just follow the instructions below

1. Go to Admin page > Online store > themes > Actions > Edit code
2. Open the card-product.liquid under the Snippet folder.

3. Find the code below. 

 

 

{% render 'price', product: card_product, price_class: '' %}

 

 

4. Replace it with the code below. 

 

 

       {% if card_product.price != 0 %}
              {% render 'price', product: card_product, price_class: '' %}
              {% else %}
              FREE
              {% endif %}

 

 

 

 
If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free
Dvdv
Tourist
8 0 1

@made4Uo You are amazing. Thanks a lot!

TheOG
Visitor
1 0 0

Hi, I can't find this code:

{% render 'price', product: card_product, price_class: '' %}

 

I followed the steps Admin page > Online store > themes > Actions > Edit code

Then searched card-product.liquid and I can't seem to find it. 

Devin_Swisher
Shopify Partner
11 0 4

Thanks for the tip! I sent you a coffee!

Cheers!

Ruby023
Tourist
8 0 0

Thanks so much for this code, I was also looking to replace $0.00 with Free, and used it in the featured product code. However, for some reason, the featured products that are not free are no longer showing the correct price. I have a product for £25.00 which now shows at £19.99. Any idea what could be causing that? I'm also using the sense theme.