I would like to check when a customer click on “Place Order”, if he has a default billing and shipping address.

If no, I would like to put the addresses of the order by default for this customer.

Can you help me?

1 Answer 1


I just give you a suggestion. We should take a look at: \Magento\Quote\Model\QuoteManagement::_prepareCustomerQuote(). We will see how Magento will set the default billing and shipping address for customer when placing order.

[Note] I have checked the default Magento, if a new customer has no default shipping address. It will set the order shipping address as default shipping. My Magento version is 2.2.2.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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