Skip to content

Instantly share code, notes, and snippets.

@ihorduchenko
Created April 22, 2023 00:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ihorduchenko/170c488561509a04cc559197fec74938 to your computer and use it in GitHub Desktop.
Save ihorduchenko/170c488561509a04cc559197fec74938 to your computer and use it in GitHub Desktop.
How to fetch the value of metaobject containing the list of other metaobjects from anywhere in Shopify
{% assign entries = shop.metaobjects.pdp_buybox_advantages['pdp-buybox-advantages']['advantages'].value %}
{%- for item in entries -%}
{%- assign image = item.image.value -%}
{%- assign text = item.text.value -%}
{%- endfor -%}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment