Categories : Shopify

With this code you can list all of your metafields as list in shopify store frontend.

Change “namespace” to your product metafield namespace

{%- if product.metafields.namespace != blank -%}
    <ul>
      {%- for field in product.metafields.namespace -%}
        <li>{{ field | first }}: {{ field | last }}</li>
      {%- endfor -%}
    </ul>
{%- endif -%}

Leave a Reply

Your email address will not be published. Required fields are marked *