0

I'm trying to show some custom failure messages on onepage failure page in magento 1. How can I do this? I did the same for magento 2 using:

$this->messageManager->addError(__($msg));

And redirecting to corresponding page.

0

In Magento 1:

Notice:

Mage::getSingleton("core/session")->addNotice("Notice message");

Error:

Mage::getSingleton("core/session")->addError("Error message");

Success:

Mage::getSingleton("core/session")->addSuccess("Success message");
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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