/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/* 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');
URL: http://activecodeline.com/utilizing-magento-notification-system