For discussing the development and usage of Checkout UI extensions, post-purchase extensions, web pixels, Customer Accounts UI extensions, and POS UI extensions
I'm building checkout UI extension for client that wants to show different text to different customer based on customers tag example: If customer has premium tag then text will be "you're a premium member" or if customer has basic tag then text will be "Great you just joined the team"
Solved! Go to the solution
This is an accepted solution.
Yes
you use this Shopify function/hooks useAppMetafields in this function have filters for helping specific part metafields data retrieve
customer filter get customer metafields
Hi! I also want to implement certain checkout UI extensions for customers with specific tags. Were you able to find a solution for this?
This is an accepted solution.
Yes
you use this Shopify function/hooks useAppMetafields in this function have filters for helping specific part metafields data retrieve
customer filter get customer metafields
When I use useAppMetafields to get the Company object metafield it returns empty array. Can you let me know how I can get the value of the metafield?
can you share more code
Can You give the example code?
const appMetafields = useAppMetafields({ type: "customer", namespace: "custom", key: "customerTag", });
Nobody wants to propagate tags to a metafield to access it. Tags is basic categorisation of customers, let's have it on useCustomer(), please Shopify.