Shopify themes, liquid, logos, and UX
I have custom metafields created for Products and Variants.
When I attempt to use (var_onsale is Boolean)
variant.metafields.custom.var_onsale
in a Liquid block on the Product page (with variants) it seems to be ignored. i.e.
{% if variant.metafields.custom.var_onsale %} <p>variant.metafields.custom.var_saleprice</p> {% endif %}
however if I display the product.metafields.custom.onsale it works.
The Product page/Product I am editing has variants.
Does anyone have suggestions as to what I am doing wrong please? Thanks in advance.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024