Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (24 sloc) 734 Bytes
<div class="custom-object">
{% comment %}
You could use a loop so the presentation is dynamic
{% endcomment %}
{% for mf in shop.metafields['custom-object.test'] %}
<h3>{{ mf[0] }}</h3>
{{ mf[1] }}
{% endfor %}
{% comment %}
Or you can do it manually like the example below
{% endcomment %}
{% comment %}
<h3>File</h3>
{{ shop.metafields["custom-object.test"]["test-file"] }}
<h3>HTML</h3>
{{ shop.metafields["custom-object.test"]["test-html"] }}
<h3>Image</h3>
{{ shop.metafields["custom-object.test"]["test-image"] }}
<h3>String</h3>
{{ shop.metafields["custom-object.test"]["test-string"] }}
<h3>Integer</h3>
{{ shop.metafields["custom-object.test"]["test-integer"] }}
{% endcomment %}
</div>