AML
1
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
DaisyVo
2
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
AML
4
I have tried this, but it doesn’t work unfortunately.
Hi @AML ,
Please send me the code of product-template.liquid file, I will help you check it
AML
7
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.
AML
9
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.
namphan
10
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 -%}