Posted By

dmistriotis on 09/20/10


Tagged


Versions (?)

magento notifications


 / Published in: PHP
 

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

  1. /* There are few 'notification types' in Magento you can utilize: */
  2. // error:
  3. Mage::getSingleton('core/session')->addError('Custom error here');
  4. // warning:
  5. Mage::getSingleton('core/session')->addWarning('Custom warning here');
  6. // notice:
  7. Mage::getSingleton('core/session')->addNotice('Custom notice here');
  8. // success:
  9. Mage::getSingleton('core/session')->addSuccess('Custom success here');

Report this snippet  

You need to login to post a comment.