Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

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

App metafield in checkout extension

App metafield in checkout extension

prakashVt
Shopify Partner
268 23 36

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

 

 

- Enhanced your Cart Drawer for free, Shipping Protection included -VTN Cart Drawer Pro
- Feel free to Contact for more help (Free Support): prakash.prabhakar@vtnetzwelt.com
Replies 0 (0)