Hi,
I would like to know if there is a way to get a customer’s billing country in a checkout ui extension? Is there a hook that returns this data?
Also, what’s the ideal way to get a customers geoip address.
Hi,
I would like to know if there is a way to get a customer’s billing country in a checkout ui extension? Is there a hook that returns this data?
Also, what’s the ideal way to get a customers geoip address.
I managed to get this done with the useBillingAddress() hook.
const billingAddress = useBillingAddress();
Great to hear you figured this out - and thanks for coming back to post the answer!