Home > blog posting, e-commerce, magento, technical notes > Annoying Notification Message in the Admin Page

Annoying Notification Message in the Admin Page

February 2nd, 2009

Are you sick of seeing that Magento notification always showing up whenever you login to the admin page?  There’s a quick way to disable this feature…I am surprise that it was so hard to google for a solution on this. Am I the only one annoyed by that notification?!

Anyways, the quick fix is the following: go into app/code/core/Mage/Adminhtml/Block/Notification and open up the file: toolbar.php and look for the function: isShow.  If the function returns true that notification box will show up, but if it returns false, the notification will never show up.  So what I have done is change the original code:

public function isShow()
{
if ($this->getRequest()->getControllerName() == ‘notification’) {
return false;
}
if ($this->getCriticalCount() == 0 && $this->getMajorCount() == 0 && $this->getMinorCount() == 0 && $this->getNoticeCount() == 0) {
return false;
}
return true;
}

to always return false:

public function isShow()
{
return false;
}

Hope someone appreciate this fix.  I know I do.

Bookmark and Share


blog posting, e-commerce, magento, technical notes , ,

  1. May 21st, 2009 at 07:45 | #1

    The other way I’ve found to disable that is to go to System >> Notifications and mark that message as read. Saves you the hassle of modifying the core, which I hear is not a preferred method of doing things?

    This also gets you the benefit of being notified when/if something big comes up.

    Hope that helps you out too.

    Also, I’m going to subscribe to your blog - I see a lot of helpful tips and I’m still pretty new to Magento. Going to be using it for our store, if I can ever get the whole thing running. Thanks!

  2. May 21st, 2009 at 08:52 | #2

    Hi Roger, thanks for leaving a comment.

    I actually was aware of that, but for some clients who prefer not get updates like those…it was just better off to turn off that thing completely.

    Fire away with questions, i will try to help you out. Magento is great, but definitely not the most developer-friendly thing out there.

    Good luck.

  1. No trackbacks yet.