-2

Due to some reason we disabled the core session on certain modules.

In some files we have the following code

Mage::getSingleton('core/session')->addSuccess()

which is not working. can any one please provide an alternative for this?

Thanks

  • 1
    what do you mean by Due to some reason we disabled the core session on certain modules? – Marius Nov 6 '14 at 8:07
  • Fix your problem with core session instead of building work arounds for your broken work around – Fabian Blechschmidt Nov 6 '14 at 8:35
  • Why did u disable your core/session? Its very much required for Magento.And you can give a bit more description in your question of your problem. – zamil Nov 6 '14 at 9:46
2

Have you tried

Mage::getSingleton('customer/session')->addSuccess("message");

This will work everywhere in frontend.

  • 1
    This only works, when the message blocks, read the messages from customer/session. So "everywhere" is not quite right. Nonetheless, worth a try! :-) – Fabian Blechschmidt Nov 6 '14 at 8:34

Not the answer you're looking for? Browse other questions tagged or ask your own question.