Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Metafields Name/Title Variable

Metafields Name/Title Variable

psdev
Visitor
2 0 1

Hi there,

 

The following script returns the key results for a specific namespace:

 

 

{% for field in product.metafields.NAMESPACE%}
{{ field | first}} {{ field | last}}
{% endfor %}

 

 

Where first is the key variable and last the result for this key variable.

 

But how to get the metafield Title for the combination of this namespace.key ? 

 

In other words, the Name we give when creating a new metafield.

Replies 0 (0)