Timeline for Magento2: How to add a confirmation message after a message is sent via Contact Us?
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 24, 2017 at 5:41 | comment | added | Sohel Rana | It's missing part in your theme. There must be missing message container. | |
| Sep 24, 2017 at 5:39 | comment | added | Ahdee | Actually, I located the file, ..vendor/magento/module-contact/Controller/Index/Post.php; its probably bad form to edit Magento's core files but I don't know how to redirect this. I found the addSuccess part however, strangely it is there; its just not showing up. So what I ended up doing was redirecting to a cms page and not only did it work but the green message field showed up this time. This was my one line of code a modified to, $this->_redirect('contactus'); | |
| Sep 24, 2017 at 5:07 | comment | added | Ahdee | thank you. However, where can I find this controller file? I'm using the default contact us page I believe. | |
| Sep 24, 2017 at 3:00 | history | answered | Sohel Rana | CC BY-SA 3.0 |