Skip to content

Instantly share code, notes, and snippets.

Created Feb 19, 2021
What would you like to do?
{% for field in shop.metafields.custom_fields["table"] %}
{% assign metafield_key = field["key"]%}
{% assign metafield_namespace = field["namespace"]%}
{% if product.metafields[metafield_namespace][metafield_key] != null %}
<tr id={{ metafield_key }}><td><strong>{{ field["label"] }}</strong></td><td>{{ product.metafields[metafield_namespace][metafield_key] }}</td></tr>
{% endif %}
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment