I’m trying to have the customer’s phone number show under the customer account information section. I know the phone number belongs to the customer address section but I’m t
Luis has mentioned before that if customer didn't setup his billing address you will get an error in return: Call to a member function in a non-object.
If you want to be ready for such situation you can put the code into following IF statement:
load($customerAddressId); ?>
getCustomer()->getPrimaryBillingAddress()->getTelephone();
} ?>