Set the Thank You Message in WooCommerce

Where Do You Set the Thank You Message in WooCommerce?

WooCommerce, one of the most widely used eCommerce platforms for WordPress, offers various customization options that help enhance the customer experience. One such feature is the “Thank You” message, which is displayed after a customer completes their purchase. This message not only confirms the order but also adds a personal touch, making a lasting impression. In this blog, we’ll dive into different ways to set the thank you message in WooCommerce

Why Customize the “Thank You” Message?

The “Thank You” message is the final interaction customers have with your store after completing a purchase. Customizing this message can bring several benefits:

  • Branding: You can tailor the message to reflect your brand’s tone and strengthen brand recognition.
  • Customer Engagement: Use this opportunity to provide additional information, such as order details, links to useful resources, social media handles, or even discount codes for future purchases.
  • Personalization: A personalized thank-you note can help customers feel appreciated, fostering long-term loyalty.
  • Feedback and Upselling: Leverage the Thank You page to encourage customer feedback, share their experience, or explore other products, turning this page into a valuable marketing tool.

How to Set the Thank You Message in WooCommerce

WooCommerce offers several ways to customize the Thank You message for completed orders. The level of control and customization you need will determine the method you use.

1. Using WooCommerce Settings for the Thank You Page

WooCommerce automatically redirects customers to a default “Thank You” page after checkout. This page displays a summary of their order, payment details, and other key information. However, WooCommerce does not provide a built-in way to directly edit the Thank You message without using custom code or plugins.

Steps to Modify the Thank You Page:

  • Step 1: Go to your WordPress dashboard.
  • Step 2: Navigate to WooCommerce > Settings.
  • Step 3: Under the Advanced tab, you’ll find options for configuring various pages, including the checkout and order complete (Thank You) pages.
  • Step 4: While WooCommerce gives you flexibility in assigning the Thank You page, further content customization requires custom code or plugins.

2. Customizing the Thank You Message with Code

If you’re comfortable with coding, you can customize the Thank You message by adding code to your theme’s functions.php file or by creating a custom plugin. This option gives you complete control over the content shown on the Thank You page.

Example Code to Add a Custom Thank You Message:

php
add_action( 'woocommerce_thankyou', 'custom_thankyou_message', 10, 1 );
function custom_thankyou_message( $order_id ) {
if ( !$order_id ) return;

$order = wc_get_order( $order_id );

echo '<p>Thank you for your order! We appreciate your business and hope to serve you again soon.</p>';
echo '<p>Your order number is ' . $order->get_order_number() . '.</p>';
}

In this example, we are using the woocommerce_thankyou action to display a custom message after the order details are shown on the Thank You page.

Steps to Add Custom Code:

  • Step 1: Go to your WordPress Dashboard.
  • Step 2: Head to Appearance > Theme File Editor.
  • Step 3: Open the functions.php file of your active theme.
  • Step 4: Insert the above code and save the changes.
  • Step 5: Visit your WooCommerce Thank You page to see your customized message.

Important: Always make a backup of your theme files before making changes, or use a child theme to prevent losing your modifications when updating your theme.

3. Using Plugins to Customize the Thank You Page

For those who prefer not to handle coding, several WooCommerce plugins are available to help customize the Thank You message and page with ease. Popular plugins include:

  • Custom Thank You Page for WooCommerce: This plugin allows you to set custom Thank You pages for specific products or order statuses, providing flexibility in tailoring the post-purchase experience.
  • WooCommerce Thank You Pages Plugin: This plugin enables full customization of the Thank You page, including adding content blocks like product recommendations, social media links, and more.
  • WooCommerce Thank You Enhanced: This plugin enhances the default Thank You page by adding features like upselling, requesting feedback, or promoting loyalty programs.
Steps to Customize Using Plugins:
  • Step 1: Go to Plugins > Add New in your WordPress dashboard.
  • Step 2: Search for the plugin (e.g., “Custom Thank You Page for WooCommerce”).
  • Step 3: Install and activate the plugin.
  • Step 4: Configure the plugin settings by going to WooCommerce > Settings.
  • Step 5: Customize the Thank You message or page based on the plugin’s features.

These plugins provide an intuitive interface to add custom content, redirect customers, and even monitor customer interactions on the Thank You page.

4. Adding Dynamic Content to the Thank You Message

Rather than just displaying a static message, you can enhance the customer experience by incorporating dynamic content into your Thank You message, such as:

  • Personalized Offers: Show a custom discount code for future purchases based on the customer’s recent order.
  • Related Products: Suggest similar or complementary products.
  • Customer Feedback: Prompt customers to leave a review or fill out a survey.

Example Code to Display a Dynamic Discount Code:

php
add_action( 'woocommerce_thankyou', 'add_discount_to_thankyou_page', 20 );
function add_discount_to_thankyou_page( $order_id ) {
if ( !$order_id ) return;

$discount_code = 'THANKYOU10'; // Your discount code

echo '<p>Thank you! Use code <strong>' . $discount_code . '</strong> for 10% off your next order!</p>';
}

5. Testing Your Customized Thank You Message

Once you’ve set your custom Thank You message, it’s crucial to test how it looks and performs on different devices. You can easily create a test order in WooCommerce by setting up a low-cost dummy product and completing a checkout process.

Steps for Testing:

  • Step 1: Create a draft or private product priced at $0.01.
  • Step 2: Go through the checkout process as a test customer.
  • Step 3: View the Thank You page and verify that your custom message is displayed correctly.

Testing ensures that your customers see the intended message without any errors.

Final Thought On Where Do You Set Thank You Message in WooCommerce?

Customizing the Thank You message in WooCommerce is an effective way to add a personal touch, strengthen your brand, and foster customer loyalty. Whether you choose to implement the changes via custom code or with the help of plugins, make sure your Thank You message aligns with your business objectives. A thoughtful Thank You message can turn first-time customers into repeat buyers, making it an essential part of your WooCommerce store.

Interesting Reads:

Does Stripe Automatically Pay WooCommerce and Printify?

Can You Sell a $5000 Product with WooCommerce?

Can WooCommerce Do a 75 000 ACH Payment?

Facebook
Twitter
LinkedIn
Pinterest
WhatsApp

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *