Contents
Why is my success message not showing in Magento?
If it redirects to the index form, either success or failure messages will show. If it redirects to the addProduct page – where the form with the submit button is, then neither a success or an error message will show. 08-18-2017 08:06 AM 08-18-2017 08:06 AM
Where are the addproduct and index pages in Magento?
Both the index and the addProduct pages are in MyAccount, if that has anything to do with it. The error message that it should show and redirect to the addProduct page is after the user clicks the submit button for the form. If it redirects to the index form, either success or failure messages will show.
Why is my error / success message not showing?
On the index page error/success messages show without a problem. On the addProduct page neither error nor success message show. The div for the message is there, but it is empty. I have compared it with everything on the index page, but have not found the problem yet.
How to display success or error message into home page?
Re: How can i display success or error message into home page in custom theme layout ? Messaging in Magento 2 is handled by a message manager object. So if you want to write messages, you need to get an instance of it. The prefered method is to inject this class into your class by adding this to your __construct method:
What is the messagemanager object in Magento 2?
The messageManager object is responsible for messaging in Magento 2. It means that you need to get its instance to write messages. The preferred way is the following: you have to inject this class into your class by adding the following snippet to your __construct method:
Why is the error / success message not showing on one page?
On the index page error/success messages show without a problem. On the addProduct page neither error nor success message show. The div for the message is there, but it is empty. I have compared it with everything on the index page, but have not found the problem yet. Can you please see, if you can find it? What am I overlooking?
Where to find extended messages.js in Magento?
The same issue appears with error messages. Below is extended messages.js located at /app/design/frontend/Namespace/Themename/Magento_Theme/web/js/view/ but it is not working.