I have an observer for every order status change, and another for every new order. In both observers I need to retrieve the customer's phone number. In order-status-change this happens as follows:
$phone = $order->getBillingAddress()->getTelephone();
However in new-order, none of the below succeed. They all return null
. Why does this happen? What could I do?
$order->getCustomerPhone();
$order->getBillingAddress();
$order->getShippingAddress();
$order->getPrimaryBillingAddress();
sales_order_save_after
for both of them and I distinguish the case according to the pathsales_order_address_save
customer_address_save_after