{% for metafield in product.metafields.namespace %}
- {{ metafield }}
{% endfor %}
outputs
- namespacekey
which is great, but how do I split namespace and key?
The direct access is great and all but it gets pretty cumbersome:
{% if product.metafields.knife.blade_engraving.value != 'blank' %}
- Blade engraving: {{ product.metafields.knife.blade_engraving.value | metafield_tag }}
{% endif %}
repeat for all metafields (in my case 20).
It’d be more elegant if we could loop through this.
Is there a way to grab the Name and Description from the Shopify backend?
