I have variant metafield that I’m trying to show on product page next to the variant option. Problem is that it currently shows all variant metafields on all variant options. I don’t know how to only show the correct metafield on the correct variant.
Here’s my code.
{%- if product.type == 'Cyklar' -%}
{% for variant in product.variants %}
Passar längd: {{ variant.metafields.custom.langd.value.first }} - {{ variant.metafields.custom.langd.value.last }} cm
{% endfor %}
{%- endif -%}