Magento : How do i echo username

Posted by Lolita on Stack Overflow See other posts from Stack Overflow or by Lolita
Published on 2010-06-12T10:27:26Z Indexed on 2010/06/12 10:33 UTC
Read the original article Hit count: 256

Filed under:
|
|

Hello

I use the modern theme

I have a livechat button on the header and i want to parse informations in my template

This is the livechat button :

<!-- http://www.LiveZilla.net Chat Button Link Code --><a href="[removed]void(window.open('http://xxxxxx.fr/livezilla.php?code=BOUTIQUE&amp;en=<!!CUSTOMER NAME!!>&amp;ee=<!!!CUSTOMER EMAIL!!>.........

I need to replace and to the name and the email of the user (if logged)

The button is in the header of my homepage

How do i echo this two informations ?

I tried

<?php echo $this->htmlEscape($this->getCustomer()->getName()) ?>

but didn’t work :

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

© Stack Overflow or respective owner

Related posts about magento

Related posts about echo