Skip to content

How to get customer Checkout Address form data for guest user and selected address for logged in user

I want to get customer shipping address form data for guest user and logged in customer selected address before the order is placed on www.testwebsite.com/checkout/#shipping to call a shipping client custom API before the order is placed.

I want this data in the Helper method.

I have tried many solutions available on StackOverflow but none of them are working correctly to get the customer’s address.

Any help would be appreciated.
Guest user form data

enter image description here

Logged in Customer Selected Address –

enter image description here
Thank you in advance