magento notifications


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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');

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.