I need to get the shipping address of logged in customer and guest customer on checkout page.

I am able to get shipping address from both the method if customer in logged in, but I am not sure which one should I use, basically difference between these two methods.

getShippingAddress() and getDefaultShippingAddress()

Default Billing address is a address that is selected as "Default" in my account section.

It will be auto selected when checkout.




Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.