Hi i want to customise my welcome message like this:
"hi visitor, welcome to %storename%! Log in or register."
but i don't know how i should include the login link, because if you logged in, the message will have to change like this: hi %username% you're logged in. logout?
or something else.
Thank you in advance
Best Answer
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
Step2:
Copy app/code/core/Mage/Page/Block/Welcome.php
to app/code/local/Mage/Page/Block/Welcome.php
tohtml