App metafield in checkout extension

prakashVt
Shopify Partner
98 9 16

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");

 

 

- Did you find my response useful? Mark it as "Accepted solution"; so others can see it, or just like it.
- VTN Power Wishlist Looking for a Wishlist App for your store? Check this app with the free plan available.
- Feel free to Contact me
Replies 0 (0)