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: 250
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&en=<!!CUSTOMER NAME!!>&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