Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to remove welcome message specific for logged in user in Magento?
    primarykey
    data
    text
    <p>I only wish to show "Welcome to store!" all of the time, for logged out and also logged in users.</p> <p>Right now, when a user is logged in, it says "Welcome, firstname lastname!". Also, when logged in and showing this welcome message, another link shows up saying, "(Not firstname lastname?)"</p> <p>I want to remove those two things from the header.</p> <p>I went to <strong>/app/code/core/Mage/Page/Block/Html/Header.php</strong> and changed this bit of code at the very end of the file:</p> <pre><code>public function getWelcome() { if (empty($this-&gt;_data['welcome'])) { if (Mage::isInstalled() &amp;&amp; Mage::getSingleton('customer/session')-&gt;isLoggedIn()) { $this-&gt;_data['welcome'] = Mage::getStoreConfig('design/header/welcome'); } else { $this-&gt;_data['welcome'] = Mage::getStoreConfig('design/header/welcome'); } } return $this-&gt;_data['welcome']; } </code></pre> <p>Changed that to this:</p> <pre><code>public function getWelcome() { if (empty($this-&gt;_data['welcome'])) { $this-&gt;_data['welcome'] = Mage::getStoreConfig('design/header/welcome'); } return $this-&gt;_data['welcome']; } </code></pre> <p>I thought this would do the trick, and it did when the user logs in. But I think when the user ticks the "Remember Me []" when logging in, that this causes the message that says "Welcome, firstname lastname!" to still show up.</p> <p>I'm at a loss now, I'm not sure how to prevent this "Welcome logged in user" and "Not this user?" message to go away - I only want the normal "Welcome to Store!" message to <strong>always</strong> show.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload