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
Careful if there is NO address set then this getPrimaryBillingAddress() return a non object.
$address = $this->getCustomer()->getPrimaryBillingAddress(); if ( $address ) echo $address->getTelephone();