How to Set Up Private Order Form in WooCommerce for Free?
Some products aren’t meant for public browsing. Maybe you offer wholesale pricing, custom quotes, or exclusive members-only items. Leaving everything...
The Thank You page in WooCommerce isn’t just the end of a transaction; it’s the beginning of building loyalty. Most store owners ignore it, but this small section can actually play a big role in how your customers feel after making a purchase.
By customizing the Thank You message, you can add a personal touch, give important order details, suggest next steps, or even track conversions. It’s your chance to say more than just “Thanks” and actually guide users toward repeat purchases or referrals.
If you’re not sure where or how to make these changes, don’t worry. Whether you’re managing your store yourself or working with a WordPress development agency, this guide will walk you through all the ways to customize the WooCommerce Thank You message, from basic edits to smart enhancements.
Table of Contents
The Thank You page is the final interaction point during the checkout process and often an overlooked one. Customizing this message gives you the opportunity to do more than just confirm an order. It lets you connect with your customers, reinforce your brand, and guide them towards meaningful next actions.
A personalized Thank You message reassures customers that their order has been successfully placed. Simple phrases like “Hey John, thanks for ordering from us!” feel more human and comforting than generic lines.
After a purchase, customers are often unsure about what to expect next. Use the message to clarify what happens now – like shipping timelines, support contact, or links to track their order.
Example Message:
“Your order will be shipped within 24 hours. You’ll receive a tracking link via email shortly!”
Turn the Thank You page into an engagement opportunity by adding links to your blog, encouraging product reviews, or inviting customers to follow your social channels.
Example CTA:
“Love your purchase? Tag us on Instagram @yourbrandname and get featured!”
The Thank You page is the perfect spot to insert tracking pixels for Google Ads, Meta Pixel, or analytics tools. Since this page loads only after a successful purchase, it ensures accurate data collection.
Example: Add Google Ads Conversion Tag:
add_action('woocommerce_thankyou', function() {
echo '<script>
gtag("event", "conversion", {
"send_to": "AW-XXXXXX/abc123"
});
</script>';
});
This snippet ensures your Google Ads tag fires only after an order is completed. Taking a few minutes to enhance your Thank You message not only leaves a lasting impression but also opens up post-purchase opportunities that many store owners miss. Whether it’s for trust, action, or tracking, this small tweak can go a long way.
WooCommerce doesn’t offer a built-in setting to customize the Thank You message, but it gives you full flexibility through code and plugins. Depending on your technical comfort level, you can choose from these four practical and proven methods to tailor the message exactly the way you want.
This is the most developer-friendly way to inject a custom message using a WooCommerce-provided hook.
Code Example:
add_action('woocommerce_thankyou', 'custom_thank_you_message');
function custom_thank_you_message($order_id) {
$order = wc_get_order($order_id);
echo '<p>Thank you, ' . esc_html($order->get_billing_first_name()) . '! Your order has been received.</p>';
}
Add Conditional Logic (Optional):
if ($order->get_payment_method() === 'cod') {
echo '<p>Please keep the cash ready. We’ll deliver your order soon!</p>';
}
Best for: Developers who want full control and dynamic content.
WooCommerce lets you override its core template files inside your theme for deeper customization. Here are the steps:
Best for: Custom design/layout changes on the Thank You page.
Several plugins let you customize the Thank You page without touching code. Here are some top plugins to consider:
These plugins will allow:
Best for: Non-developers or quick campaign setups.
If you want a separate page entirely, you can redirect users based on conditions like product, order total, or category.
Example Code:
add_action('woocommerce_thankyou', 'custom_redirect_after_purchase');
function custom_redirect_after_purchase($order_id) {
$order = wc_get_order($order_id);
if ($order->has_product(123)) { // Replace 123 with actual product ID
wp_redirect('https://yourstore.com/special-thank-you');
exit;
}
}
Best for: Funnels, affiliate thank yous or campaign-specific follow-ups.
These four methods give you complete flexibility – from simple messages to full post-purchase funnels. Choose what best fits your skill level and business need, and turn your Thank You page into something memorable.
Once you’ve customized the Thank You message, there’s more you can do to elevate the user experience. The Thank You page is a great place to add functional value, track conversions, or offer users meaningful next steps – all without disrupting the checkout flow.
Tailor the content based on what the customer ordered, their location, or payment method. This makes the message feel personalized and useful.
Example – Show a Message for Specific Payment Method:
if ($order->get_payment_method() === 'bacs') {
echo '<p>We’ve received your order. Please transfer the total to our bank account to complete the process.</p>';
}
You can also conditionally show messages for:
Additionally, many WooCommerce payment gateways offer thank you messages and the option to add custom messages for customers.
Why it works: It makes the page more relevant and customer-focused.
The Thank You page is ideal for tracking purchase completions using analytics or ad platforms.
Example – Google Ads Conversion Script:
add_action('woocommerce_thankyou', function() {
echo '<script>
gtag("event", "conversion", {
"send_to": "AW-XXXXXX/abc123"
});
</script>';
});
Tip: Always wrap your scripts inside conditionals to make sure they load only on valid order completion pages.
Why it works: Tracks ROI from paid ads and marketing campaigns accurately.
These enhancements help you get more out of the Thank You page – not just as a courtesy screen but as a smart marketing and communication tool. Keep them clean, purposeful, and relevant to your customer’s journey.
WooCommerce automatically displays a default Thank You page after checkout. To set up a custom Thank You page, you can use a plugin like “NextMove” or write a function to redirect users after order completion using the woocommerce_thankyou action hook.
To change the Thank You page URL, use a custom redirect with this snippet in your theme’s functions.php file:
add_action(‘woocommerce_thankyou’, ‘custom_redirect_after_purchase’);
function custom_redirect_after_purchase($order_id){
$order = wc_get_order($order_id);
if (!$order->has_status(‘failed’)) {
wp_redirect(‘https://your-site.com/custom-thank-you’);
exit;
}
}
Go to WooCommerce > Orders, click on an order, scroll down to the Order Notes panel, and choose “Note to customer.” Write your message and click “Add.” The customer will receive this note via email.
You can change the checkout page text using the Say What plugin or by overriding WooCommerce language strings in your theme. For deeper edits, use custom code in your theme’s functions.php file or edit the checkout/form-checkout.php template.
You can customize the checkout page by using a plugin like Checkout Field Editor or through custom code and template overrides. For layout changes or adding/removing fields, use WooCommerce hooks like woocommerce_checkout_fields.
Customizing the WooCommerce Thank You message might seem minor, but it can leave a lasting impression on your customers. It helps build trust, creates space for additional engagement, and even lets you track conversions more effectively.
Whether you’re adding a simple thank you note, inserting order-based dynamic messages, or redirecting users to a custom page, small tweaks can improve the post-purchase experience and encourage repeat visits.
If you’re looking to make the most out of your WooCommerce store, our team can help. We offer custom WooCommerce development services to boost functionality and improve user experience. Contact our team today to get started.