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

Is it possible to read a Customer Metafield from a checkout UI extension only app?

Is it possible to read a Customer Metafield from a checkout UI extension only app?

DeeDee-TDY
Shopify Partner
51 4 7

In attempting to read a Customer metafield, all of the following react hooks return undefined or 0 length array {useAppMetafields(), useMetafields(), useMetafield()}.

(I can read *Order* metafields with the useMetafield() react hook.)

 

I have added the following scopes to in and pushed the config and verified I see them in partner portal = "read_customers,write_customers,customer_read_customers,customer_write_customers,read_checkouts,write_checkouts,unauthenticated_read_checkouts,unauthenticated_write_checkouts,unauthenticated_read_customers,unauthenticated_write_customers"

 

I have defined the customer metafield in the store and in the extension toml file just after the target definition.

 

I have restarted dev several times.

 

Is it possible to read a Customer Metafield from a checkout UI extension only app v3.48.4?

    "@shopify/app": "3.48.4",
    "@shopify/cli": "3.48.4",
    "react": "^17.0.2"

 

 

Replies 0 (0)