Hello All. I have Product Pages (using GemPages but not relevant - can insert Liquid easily) and in a Liquid code block I wish to display my metafields :
That was very helpful. Could I ask one more favour?
So,product.metafields.custom.onsale.value is now fine.
However, no matter what I try : product.metafields.custom.saleprice.value and variant.metafields.custom.var_saleprice.value are null. And yes, I have double checked in the Products that these have values.
{% if product.metafields.custom.onsale.value == true %} {{product.metafields.custom.saleprice.value}}
{%endif%}
And Finally.. this code works 100% However my Product has Variants and when I Select a Variant it automatically updates the Variant Price on the page. However it does not automatically update (display) what should be : variant.metafields.custom.var_saleprice.
{% if product.metafields.custom.onsale.value == true %}