-
-
Save carbone/9ec66952b83a01c1a7d661003d03a240 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="variant-custom-fields-wrapper"> | |
{% for variant in product.variants %} | |
<div class="variant-custom-fields" data-variant-id="{{ variant.id }}"><br /> | |
<div class="variant__title"><strong>{{ variant.title }}</strong></div> | |
<div class="variant__cf"> | |
{% for info in shop.metafields.custom_fields["variant_fields"] %} | |
{% if variant.metafields.custom_fields[info.key] !=blank %} | |
<div> | |
<strong>{{ info.label }}:</strong> {{ variant.metafields.custom_fields[info.key] }} | |
</div> | |
{% endif %} | |
{% endfor %} | |
</div> | |
</div> | |
{% endfor %} | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment