0

How to Use Custom Thank You Page in Woocommerce

In this post we will explain you how to use custom thank you page in WooCommerce, So the customer will redirect your specific thank you page after purchase completed. For achieve this task we can use WooCommerce hook wc_custom_redirect_after_purchase.

Redirect Customer to Custom Thank you Page in WooCommerce

First you need to create custom thank you page in WordPress admin. Just go to Pages->add new link to create new custom page, Add your desired content on this page which you want to show customer after successful purchase done.

How to Use Custom Thank You Page in Woocommerce

Now publish this page and you got page view link. We can place this page link on WooCommerce hook function.

Add below WooCommerce custom page code in you child theme function.php file.

Place your created custom thank you page link in this code under wp_redirect function. After doing this default WooCommerce thank page will be replaced by you created custom page.

Harish

I am professional web developer and blogger. Use this blog to share own api and other web development experience with you. I do accept paid work. Write to me to start working on your dream project - codefixup@gmail.com

Leave a Reply

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