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.

How To get customer Tags on checkout page using checkout ui extension

How To get customer Tags on checkout page using checkout ui extension

deshraj
Shopify Partner
5 0 0
I want to show warning message on checkout page based on customer tags "active_subscriber". I am using checkout ui extension. I am able to get the customer info like: Name, Email, Phone etc. But didn't get the customer tags. I also try to get buyer data still getting the same customer info but didn't get the customer tags. I have pass the scopes in the extension .toml file as well. Scopes like: customer_read_customers,read_customers,unauthenticated_read_customers Here is the code I am using function Extension() { const translate = useTranslate(); const { extension, buyerIdentity, query } = useApi(); const customer = useCustomer(); console.log(customer, "customer"); console.log("buyerIdentity", buyerIdentity); } Can anyone help me on this? Thanks
Replies 5 (5)

cherriecoder
Shopify Partner
14 0 0

Did you get to solve this?

deshraj
Shopify Partner
5 0 0

Yes, I want to solve this.

cherriecoder
Shopify Partner
14 0 0

I meant were you able to

Liam
Community Manager
3108 344 911

Hi Deshraj,

 

Currently, the Checkout UI Extension API does not support the exposure of customer tags, but I've flagged this as a feature request to our internal dev team. 

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

davekeql
Shopify Partner
10 0 9

Thank you Liam.  I have a similar use case.  I understand metafields are more elegant and precise, but it is a significant ask to transition legacy data for merchants who have many years, systems, and hundreds to thousands of tags worth of history.