title: Magento : How do i echo username
body: <p>I use the modern theme</p>
  
  <p>I have a livechat button on the header and i want to parse informations in my template</p>
  
  <p>This is the livechat button :</p>
  
  <pre><code>&lt;!-- http://www.LiveZilla.net Chat Button Link Code --&gt;&lt;a href="[removed]void(window.open('http://xxxxxx.fr/livezilla.php?code=BOUTIQUE&amp;amp;en=&lt;!!CUSTOMER NAME!!&gt;&amp;amp;ee=&lt;!!!CUSTOMER EMAIL!!&gt;.........
  </code></pre>
  
  <p>I need to replace  and  to the name and the email of the user (if logged)</p>
  
  <p>The button is in the header of my homepage</p>
  
  <p>How do i echo this two informations ?</p>
  
  <p>I tried</p>
  
  <pre><code>&lt;?php echo $this-&gt;htmlEscape($this-&gt;getCustomer()-&gt;getName()) ?&gt;
  </code></pre>
  
  <p>but didn’t work :</p>
  
  <blockquote>
    <p>Fatal error: Call to a member function
    getFirstname() on a non-object in
    /home/xxx/public_html/app/design/frontend/default/modern/template/page/html/header.phtml
    on line 36</p>
  </blockquote>