For discussing the development and usage of Checkout UI extensions, post-purchase extensions, web pixels, Customer Accounts UI extensions, and POS UI extensions
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
I want to access metafields in my checkout extension but I'm not sure which metafield is correct to use. I'm confused about app owned metafield, metafield definition, and metaobject definitions
Please note that I already added the code in checkout extension as below
[[extensions.metafields]]
namespace = "testimonial"
key = "author"
And in my js file I'm using this
const metafieldNamespace = "testimonial";
const metafieldKey = "author";
const appMetafields = useMetafield({
namespace: metafieldNamespace,
key: metafieldKey,
});
console.log(appMetafields, "appMetafields");