Shopify Functions + useAppMetafields()

Shopify Functions + useAppMetafields()

LMiller
Shopify Partner
18 0 6

Hey everyone,

 

I am deep in the weeds of trying to get my developer app working for our store to be able to rename a payment method using Shopify Functions but set it to the metafield value of the customer's company. We are a B2B store so all customers are assigned to a company.  {{ customer.current_company.metafields.custom.cc_1.value }} is essentially the metafield I want to rename our first manual payment method to. Not looking for a step-by-step guide but just wanting to confirm it's even possible. I've seen other people accomplish displaying a customer metafield in a UI Extension but haven't seen evidence of a company metafield in a Shopify Function.

Reply 1 (1)

edgarriveradev
Shopify Partner
1 0 0

has conseguido una solucion?