I am trying to show the clients phone number in the client account information section. I know that the phone number belongs to the client address section, but I'm trying to reverse engineer what the client account information looks like.
I added a new custom field for the customer ID and Im to display it using the following code, as the customer ID belongs to customer_entity.
<?php echo $this->__('Identification:') ?><?php echo $this->htmlEscape($this->getCustomer()->getCustid()) ?>
but now I'm trying to do the same for a phone number using this
<?php echo $this->__('Telephone:') ?><?php echo $this->htmlEscape($this->getCustomer()->getTelephone()) ?>
But it does not display any data since it belongs to customer_address_entity, and I BELIEVE it should be
->getAddress()->getTelephone()
instead
->getCustomer()->getTelephone()
but using -> getAddress just gives me the error "Calling the member function getTelephone () for a non-object"
- , ?
, customer\account\dashboard\info.phtml
.