Hi there!
I’ve been searching for ways for Variant Metafields For Each Variant to show on my website and I’ve come across this code.
{%- for variant in product.variants -%}
<div class="hide {{variant.id}} variant_desc">
{{variant.metafields.my_fields.name | metafield_tag}}
</div>
{%- endfor -%}
However, it shows all of the information.
I just want the information on the chosen option/product to show. Any help would be appreciated! Thanks!
