Skip to main content
wpcrux.com

Back to all posts

How to Display A Message After Submitting the Review In Woocommerce?

Published on
3 min read
How to Display A Message After Submitting the Review In Woocommerce? image

Best Plugins to Display Review Messages to Buy in October 2025

1 The Ultimate WordPress & WooCommerce Handbook: From Setup to Success in Online Selling

The Ultimate WordPress & WooCommerce Handbook: From Setup to Success in Online Selling

BUY & SAVE
$12.90
The Ultimate WordPress & WooCommerce Handbook: From Setup to Success in Online Selling
2 WordPress WooCommerce: Tienda online con WooCommerce (Spanish Edition)

WordPress WooCommerce: Tienda online con WooCommerce (Spanish Edition)

BUY & SAVE
$35.90 $37.90
Save 5%
WordPress WooCommerce: Tienda online con WooCommerce (Spanish Edition)
3 Building E-Commerce Solutions with WooCommerce - Second Edition

Building E-Commerce Solutions with WooCommerce - Second Edition

BUY & SAVE
$38.99
Building E-Commerce Solutions with WooCommerce - Second Edition
4 WordPress WooCommerce: Webshop met WooCommerce (Dutch Edition)

WordPress WooCommerce: Webshop met WooCommerce (Dutch Edition)

BUY & SAVE
$24.99
WordPress WooCommerce: Webshop met WooCommerce (Dutch Edition)
5 Formation Woocommerce: Créer et exploiter une boutique en ligne (French Edition)

Formation Woocommerce: Créer et exploiter une boutique en ligne (French Edition)

BUY & SAVE
$9.99
Formation Woocommerce: Créer et exploiter une boutique en ligne (French Edition)
6 Setting Up and Running an Online Store

Setting Up and Running an Online Store

BUY & SAVE
$2.99
Setting Up and Running an Online Store
+
ONE MORE?

After submitting a review in WooCommerce, you can display a message to confirm that the review has been successfully submitted. This can be done by adding a notification or alert message to appear on the page after the review submission process is completed. This message can be customized to thank the user for their review, inform them that it has been received, or provide any other relevant information. By incorporating this feature, you can improve the user experience and create a more interactive and engaging platform for customers to leave reviews on your WooCommerce store.

What template file do I need to edit to display a message post-review submission in WooCommerce?

You can edit the "review-order.php" template file in WooCommerce to display a message post-review submission. This file contains the code for displaying the order review section on the checkout page, where customers can review their order details before completing their purchase. You can add your custom message code in this file to display a message after the review submission section.

How to create a popup message after submitting a review in WooCommerce?

To create a popup message after submitting a review in WooCommerce, you can follow these steps:

  1. Create a function to display the popup message in your theme's functions.php file. You can use the following code snippet:

function display_review_popup() { ?> jQuery(document).ready(function($) { alert('Thank you for your review! Your feedback is important to us.'); }); <?php }

  1. Hook this function to the WooCommerce review submission action by adding the following code snippet to your theme's functions.php file:

add_action('woocommerce_review_after_save_review', 'display_review_popup');

  1. Save the changes to the functions.php file and test submitting a review on your WooCommerce website. After submitting the review, a popup message will appear thanking the user for their feedback.

Note: You can customize the popup message by modifying the text inside the alert() function in the display_review_popup function. Additionally, you can further style the popup message using CSS or jQuery plugins to enhance the user experience.

What is the process for showing a message after submitting a review in WooCommerce?

To display a message after submitting a review in WooCommerce, you can follow these steps:

  1. Add a function to display the message after a review is submitted. This function can be added to your theme's functions.php file or a custom plugin. Here's an example code snippet:

add_action('woocommerce_review_before_comment', 'display_review_submission_message');

function display_review_submission_message() { echo 'Thank you for submitting your review!'; }

  1. Add some CSS styling to the review-submitted-message class in your theme's style.css file or in the Customizer. Here's an example of CSS code to style the message:

.review-submitted-message { background: #f9f9f9; color: #333; padding: 10px; margin: 20px 0; }

  1. Save your changes and test adding a review in WooCommerce. After submitting the review, you should see the message "Thank you for submitting your review!" displayed on the screen.

By following these steps, you can easily show a message after submitting a review in WooCommerce to provide feedback to customers and improve their shopping experience.