POA not displaying correctly

Hello. I’m having trouble replacing “£0.00” prices with “£POA”

The POA is being added after the £0.00 price, not replacing it.

Theme is Minimal

I have used the following code in: snippets/product-unit-price.liquid

Beginning:

{%- if product.price == 0 %} POA

{% else %}

At the very end:

{%- endif -%}

Any help is appreciated

Hi @AML ,

To better assist you, could you share with me a screenshot of the code of this part in your Theme so that we can see it more thoroughly?

Hope to hear back from you!

Best regards,

Daisy

@AML - try by making it 0.00 and check

I have tried this, but it doesn’t work unfortunately.

Thanks. Code is below.

Hi @AML ,

Please send me the code of product-template.liquid file, I will help you check it

Please see screenshot attached

Hi @AML ,

The code you need to change is located in the product-template.liquid file, so please send me the code and I will guide you through it.

It’s a very long file. I’ve sent it to you by email.

I’m also wanting £POA to show up on my collection page, before clicking on the product.

Many thanks.

Hi @AML ,

Please change code here:

Code:

{%- if product.price == 0 -%}
              
                £POA
              
            {%- else -%}
              {{ 'products.product.regular_price' | t }}
              
                {{ product.price | money }}
              
  
              {% if product.compare_at_price > product.price %}
                {{ 'products.product.sale_price' | t }}
                <s>
                  {{ product.compare_at_price_max | money }}
                </s>
              {% else %}
                {{ 'products.product.sale_price' | t }}
                <s>
                  {{ product.compare_at_price_max | money }}
                </s>
              {% endif %}
            {%- endif -%}