我使用现代主题
我在标题上有一个实时聊天按钮,我想在我的模板中解析信息
这是实时聊天按钮:
<!-- 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!!>.........
Run Code Online (Sandbox Code Playgroud)
我需要替换用户的姓名和电子邮件(如果已记录)
该按钮位于我主页的标题中
我如何回应这两个信息?
我试过了
<?php echo $this->htmlEscape($this->getCustomer()->getName()) ?>
Run Code Online (Sandbox Code Playgroud)
但没有奏效:
致命错误:在第36行的/home/xxx/public_html/app/design/frontend/default/modern/template/page/html/header.phtml中的非对象上调用成员函数getFirstname()