Customize Thank you page in WooCommerce


WordPress Dashboard>>>Appearence>>>Editor

Edit functions.php line 19

* @package Infinite
* @author YOOtheme
* @copyright Copyright (C) YOOtheme GmbH
* @license GNU/GPL

// load config

// Redirect custom thank you

add_action( ‘woocommerce_thankyou’, ‘bbloomer_redirectcustom’);

function bbloomer_redirectcustom( $order_id ){
$order = new WC_Order( $order_id );

$url = ‘put your site url here’;

if ( $order->status != ‘failed’ ) {



Dont forget to change this in case of moving the site to another domain or folder.


About tudor.stanica

Freelancer webdesigner and photographer.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: