Menu Close

WooCommerce: Add Content to the Thank You Page


A client of mine wanted to add some text to the thank you page, the page that customers see after they place an order via the default WooCommerce Checkout page.

In this case scenario, they wanted to add a special coupon discount in order to entice buyers to go back to the website and buy again. Enjoy!

WooCommerce: add text to the thank you page

PHP Snippet: Add Content to the WooCommerce Thank You Page

 * @snippet       WooCommerce add text to the thank you page
 * @how-to        Get FREE
 * @author        Rodolfo Melogli
 * @testedwith    WooCommerce 7
add_action( 'woocommerce_thankyou', 'bbloomer_add_content_thankyou' );
function bbloomer_add_content_thankyou() {
   echo '<p>Some HTML content!</p>';

Mini-Plugin: Business Bloomer WooCommerce Add Content To The Thank You Page

You don’t feel confident with coding? You don’t want to purchase yet another bloated, expensive plugin? Great!

Business Bloomer WooCommerce Add Content To The Thank You Page is a mini WooCommerce plugin, without the usual hassles. One feature. Lifetime license. No annoying subscriptions. 1 plugin file. A few lines of code. No banners. No up-sells. No WP notifications. Use it on as many websites as you like. Lifetime support. 1-page documentation. Super simple settings.

Speaking of which, here’s a screenshot of the settings:

Quick demo:

As you can see the plugin is straight forward. Install it, define the content you want to show via the WP editor, choose the position, and save. Simple – your custom content will now display in the WooCommerce Thank You Page!

View Source
Posted in WooCommerce Tips