Hi,
I’m not able to get the shipping address from the useShippingAddress method. im able to get the country and city but all the other values of the object is undefined.
Thanks.
A developer encountered an issue where the useShippingAddress method in a Shopify checkout UI extension was returning undefined for most address fields, though country and city were accessible.
Key Details:
Checkout::ShippingMethods::RenderAfterResolution:
The developer resolved the problem by creating a new app and extension from scratch, which eliminated the issue. No specific root cause was identified, but the fresh setup worked correctly.
Hi,
I’m not able to get the shipping address from the useShippingAddress method. im able to get the country and city but all the other values of the object is undefined.
Thanks.
Hi Cyrilanthony7,
Just to confirm, the app in question does have level 2 access to protected customer data?
yes it has level 2 permissions and im able to read logged in customer’s details
Is this happening for all orders or one in particular?
it is anchored to
Checkout::ShippingMethods::RenderAfter. It is happening for all the checkouts.
Created a new app and extension and it solved the problem.
Great to hear this worked Cyrilanthony7!