4

I've installed magento version 2.1.1 and facing issues that Magento's default success/failure messages not showing at frontend on top of the page.

Example 1. If I add product to cart it doesn't show success message for adding product to cart however product is added to the cart.

2. I'm submitting contact us form, receiving email but success message not showing at top.

Can someone help me to resolve this?

1
  • I'm seeing this error in firebug "ReferenceError: cookieMessages is not defined"
    – Deeps
    Nov 25, 2016 at 6:01

1 Answer 1

0

Finally I figure out this issue and fixed it.

I had created a custom theme on magento version 2.0 and overridden few default templates/js files of core Luma theme.

After few days, that instance was corrupted and hence I've installed latest Magento version i.e. 2.1.1 and used my custom theme there. Everything working fine except this issue. So I looked into it and found that Magento Team has done some changes in core templates/js etc. Then I found the culprit is messages.js at app\design\frontend\Vendor\theme_name\Magento_Theme\web\js\view. I've replaced that file, deployed content and Magento showing success/failure messages now.

Hope someone may help this.

Thanks.

1
  • Could you please provide full path app\design\frontend\Vendor\theme_name\Magento_Theme\web\js\view ?? Dec 8, 2017 at 7:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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