How to show Firstname or Lastname Only In Magento Welcome Message ?
Hello guys , If you would like to change the default welcome message in magento from “Welcome, Paul Donnelly” to “Hi Paul” or “Hello Mr Donnelly”, use the following snippets within -
app\design\frontend\default\default\template\page\ html\header.phtml
Firstname
<?php echo $this->__('Hi %s', Mage::getSingleton('customer/session')->getCustomer()->getFirstname()); ?>
Lastname
<?php echo $this->__('Hello Mr %s', Mage::getSingleton('customer/session')->getCustomer()->getLastname());?>
For more tips on magento visit : http://www.ilovemage.com/hire-dedica...evelopers.html
Thanks