title: Magento: How to display customer's phone number on customer information field
body: <p>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 trying to redesign how the customer account information looks like.</p>
  
  <p>I added a new custom field for Customer ID and I’m able to display it by using the following code as the customer ID belongs to customer_entity.</p>
  
  <pre><code>&lt;?php echo $this-&gt;__('Identification:') ?&gt;&lt;?php echo $this-&gt;htmlEscape($this-&gt;getCustomer()-&gt;getCustid()) ?&gt;
  </code></pre>
  
  <p>but now I’m trying to do the same for the telephone number by using this</p>
  
  <pre><code>&lt;?php echo $this-&gt;__('Telephone:') ?&gt;&lt;?php echo $this-&gt;htmlEscape($this-&gt;getCustomer()-&gt;getTelephone()) ?&gt;
  </code></pre>
  
  <p>But it doesn’t display any data since it belongs to customer_address_entity and I BELIEVE it should be</p>
  
  <pre><code>-&gt;getAddress()-&gt;getTelephone()
  </code></pre>
  
  <p>instead of</p>
  
  <pre><code>-&gt;getCustomer()-&gt;getTelephone()
  </code></pre>
  
  <p>but using ->getAddress just gives me an error “ Call to a member function getTelephone() on a non-object “ </p>
  
  <p>Does anyone have any idea how to do this?</p>
  
  <p>As a reference, I'm trying to have this data display on the file customer\account\dashboard\info.phtml</p>
  
  <p>Thanks in advance.</p>