Magento Dialog/Notification Types And Display

There are few dialog types in Magento:
[php]
// error dialog:
Mage::getSingleton(‘core/session’)->addError(‘your error dialog here’);
// warning:
Mage::getSingleton(‘core/session’)->addWarning(‘your warning dialog here’);
// notice:
Mage::getSingleton(‘core/session’)->addNotice(‘your noticealog d here’);
// success:
Mage::getSingleton(‘core/session’)->addSuccess(‘your success dialog here’);

[/php]

Leave a Comment

Your email address will not be published. Required fields are marked *

*