Skip to content

Instantly share code, notes, and snippets.

@carbone
Created Feb 19, 2021
Embed
What would you like to do?
<table>
{% 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 %}
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment