App reviews, troubleshooting, and recommendations
I am unable to access the shop metafield data that I have stored with a specific namespace and key, on the thankyou-page. I am able to get the data using the metafield namespace and key on the graphql admin ui, but when I try to access it on the extension, I get an empty array.
I have tried almost all the visible ways to access the data, some of them include:
Hi,
Hope this will work
- Two Practical Ways to Get Your Metafield, Expose Data via useSettings()
If your metafield is something static (like config), just add it to your extension settings and access it like this:
Code Example
# extension.toml
[settings]
form_builder_config = "Your default data or JSON"
[[extensions.metafields]]
namespace = "checkout_pro"
key = "form_builder"
owner_type = "SHOP"
Or Use Cart Attributes as a Hack
Thanks for the help but its dynamic data.
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn 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, 2025