How do I change the default Welcome Message?

You can change the default welcome Message  in magento

For Guest or Not logged in user

In magento admin go to

System -> Configuration – > Design – > Header Tab

For Logged in User/Customer

You need to change in

“app/code/core/Mage/Page/Block/Html/Header.php”:
public function getWelcome()
{
    if (empty($this->_data[‘welcome’])) {
        if (Mage::app()->isInstalled() && Mage::getSingleton(‘customer/session’)->isLoggedIn()) {
            $this->_data[‘welcome’] = $this->__(‘Welcome, %s!’, Mage::getSingleton(‘customer/session’)->getCustomer()->getName());
        } else {
            $this->_data[‘welcome’] = Mage::getStoreConfig(‘design/header/welcome’);
        }
    }

    return $this->_data[‘welcome’];
}

 

 

Leave a Reply