Personalized checkout and custom promotions with Shopify Scripts
Hi,
I have created in my store a metaobject definition like below:
The field's definition:
Then, I created an entry like below:
However, when I try to access the code in my theme via liquid like so:
<script>
console.log('{{ shop.metaobjects.merchant_return_policy['merchant-return-days-default'].text }}');
</script>
I don't see anything in the console.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025