Change “Your Order Has Been Fulfilled/Received” on WooCommerce Thank You Page

For some reason, WooCommerce does not have a native way to change the text “Thank you. Your order has been fulfilled/received” on the Order Confirmation/Thank You Page after a customer has completed an order. Using a new Full Site Editing theme can help you customize other aspects of WooCommerce checkout, but this message is still not editable. So, I’ll show you the simplest way to edit this text without using a plugin.

This process will involve adding some lines of code to your functions.php file in WordPress.

Editing Your Order Confirmation Text

1. Backup Your Site

Before making any changes, it’s important that you backup your site. This can be done through your CPanel or on your server. If anything goes wrong and you lose access to WordPress, you can quickly restore from a backup and have it up and running in seconds. Do not proceed if you do not know how to make backups on a server level.

2. Create a Child Theme

The next step will be to create a child theme of your current theme. As we plan on editing the functions.php file in the Theme Editor, we have to use a child theme to prevent these changes from being overwritten by WordPress during updates. This can easily be done using a plugin (which you can delete immediately after).

You can use a plugin such as Child Theme Creator by Orbisius, which is free to use. Once installed, you will see 3 boxes that can be selected. Simply select the first box, and deselect the second the third. Click “Create Child Theme” and you’re done. You can then immediately deactivate and remove the plugin.

Child Theme Creator by Orbisius

3. Add Code to Functions.php File

Next, head over to Tools > Theme File Editor. When you open this, you’ll see 2 files on your right – Stylesheet (style.css) and Theme Functions (functions.php). You’ll want to click on functions.php as this where we want to add our new code.

Theme Functions

At the very bottom of the functions.php file, simply copy and paste the following code:

// Change Text on the WooCommerce Thank You Page
add_filter( 'woocommerce_thankyou_order_received_text', 'thank_you_intro_text', 20, 2 );
function thank_you_intro_text( $thank_you_title, $order ){
return 'Thanks. Your order was successful!';
}

In this example, we’ve used the text “Thanks. Your order was successful” but you can change this to whatever suits you best such as “Here are your downloads” or “Your order is complete!

Author

  • sherwinc

    Hey there! I've been blogging for over ten years now and have had the pleasure of writing for several websites. I've also sold thousands of books and run a successful digital sales business. Writing's my passion, and I love connecting with readers through stories that resonate. Looking forward to sharing more with you!

    View all posts