Magento notification types



There are few “notification types” in Magento you can utilize:
  • error
    Mage::getSingleton(‘core/session’)->addError(‘Custom error here’);
  • warning
    Mage::getSingleton(‘core/session’)->addWarning(‘Custom warning here’);
  • notice
    Mage::getSingleton(‘core/session’)->addNotice(‘Custom notice here’);
  • success
    Mage::getSingleton(‘core/session’)->addSuccess(‘Custom success here’);

0 comments: