Maurice
Magento is managed manged welcome message from
Mage_Page_Block_Html_Welcome class _toHtml() function
Mage_Page_Block_Html_Header class getWelcome function
Step1:Copy app/code/core/Mage/Page/Block/Html.php
to app/code/local/Mage/Page/Block/Html.php
change code of getWelcome
if (empty($this->_data['welcome'])) {
if (Mage::isInstalled() && Mage::getSingleton('customer/session')->isLoggedIn()) {
$this->_data['welcome'] = $this->__(' hi %s% youre loggin in. <a href="%s">logout?</a>', $this->escapeHtml(Mage::getSingleton('customer/session')->getCustomer()->getName()),Mage::helper('customr')->getLogoutUrl());
} else {
//$this->_data['welcome'] = Mage::getStoreConfig('design/header/welcome');
$this->_data['welcome'] = $this->__('hi visitor, to %s! <a href="%s">Log<a> in or <a href="%s">register</a>', $this->escapeHtml(Mage::app()->getStore()->getFrontendName()),Mage::helper('customer')->getLoginUrl(),Mage::helper('customer')->getRegisterUrl());
}
}
return $this->_data['welcome'];
Step2:
Copy app/code/core/Mage/Page/Block/Welcome.php
to app/code/local/Mage/Page/Block/Welcome.php
tohtml
if (empty($this->_data['welcome'])) {
if (Mage::isInstalled() && Mage::getSingleton('customer/session')->isLoggedIn()) {
$this->_data['welcome'] = $this->__(' hi %s% youre loggin in. <a href="%s">logout?</a>', $this->escapeHtml(Mage::getSingleton('customer/session')->getCustomer()->getName()),Mage::helper('customr')->getLogoutUrl());
} else {
//$this->_data['welcome'] = Mage::getStoreConfig('design/header/welcome');
$this->_data['welcome'] = $this->__('hi visitor, to %s! <a href="%s">Log<a> in or <a href="%s">register</a>', $this->escapeHtml(Mage::app()->getStore()->getFrontendName()),Mage::helper('customer')->getLoginUrl(),Mage::helper('customer')->getRegisterUrl());
}
}
return $this->_data['welcome'];