×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: bejoy balan
Added: Sep 25, 2014 9:04 AM
Views: 352
add /unset messages in session magento
  1. Mage::getSingleton('core/session')->addError($message);
  2.  
  3. You should be able to use the following code, though it will return all messages (it will not echo them), it will clear them:
  4.  
  5. Mage::getSingleton('core/session')->getMessages(true); // The true is for clearing them after loading them