Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
My app is creating object definition and also adding object entries using graphql. I followed the doc https://shopify.dev/docs/apps/custom-data/ownership#create-a-metaobject-definition-under-a-reserved-...
The type is here "$app:my_objects" which is automatically resolved to "app--123456--my_objects".
But how can I access object items in theme app extension's liquid file.
shop.metaobjects.my_objects.values does not work in liquid.
shop.metaobjects["$app:my_objects"].values also does not work as $app is not resolving like graphql.
Only shop.metaobjects["app--52855472129--my_objects"].values is working. But I think I can not use hard coded type name in liquid file as it will be generated by shopify when the app will make the graphql request.
Thanks in advance!
Bump on this. I'm also searching for a solution. Have you had any such luck?
I ended up using shop.metaobjects["app--52855472129--my_objects"].values in liquid file, the APP ID(52855472129) is a constant value and remains same for all merchant stores. I guess it's not a standard approach, but couldn't find any solution.
Trying to get more visibility on this issue. I also posted here: https://community.shopify.com/c/metafields-and-custom-data/app-owned-metaobject-access-in-liquid/td-...
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024