When I submit review form its properly redirect back on same page and review is properly saved in admin but there is no success message.

How do I show the success message on that page and where I can set that message ?

1 Answer 1


Take a look: vendor/magento/module-review/Controller/Product/Post.php

public function execute()
   $this->messageManager->addSuccess(__('You submitted your review for moderation.'));

When we want to set this message, we have two options:
+We can use translation.
+We can override this class.

Note: the global message may store in local storage

  • Yes there is a message but not displaying in front-end. Don't know whats the issue. Commented Sep 10, 2016 at 10:05
  • You have any custom this module which related to this module? When adding product to cart, the success message can show? Commented Sep 10, 2016 at 10:10
  • Which related to this module? Commented Sep 10, 2016 at 10:16
  • No, I don't have such type of module which is related to review or cart. Commented Sep 10, 2016 at 10:18
  • Or, override the template message or js vendor/magento/module-theme/view/frontend/templates/messages.phtml? Commented Sep 10, 2016 at 10:20

Your Answer

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

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