Return to Snippet

Revision: 32179
at September 20, 2010 20:09 by dmistriotis


Updated Code
/* 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');

Revision: 32178
at September 20, 2010 20:08 by dmistriotis


Updated Code
/* 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');

Revision: 32177
at September 20, 2010 20:07 by dmistriotis


Initial Code
/* 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’);

Initial URL
http://activecodeline.com/utilizing-magento-notification-system

Initial Description

                                

Initial Title
magento notifications

Initial Tags

                                

Initial Language
PHP