Home Woocommerce How to customize WooCommerce thank you page?

How to customize WooCommerce thank you page?

by therichpost
Published: Last Updated on 0 comment
How to customize WooCommerce thank you page?

Hello guys how are you? Welcome back to my channel. Today in this post I am going to tell you How to customize WooCommerce thank you page?

Guys I have used both latest versions WordPress 6.3 and WooCommerce 8.1.

Live Demo

Guys if you are new in WordPress or in WooCommerce then please check the below links for some good tutorials:

  1. WooCommerce Hooks
  2. WordPress Tricks
  3. WordPress Hooks
How to customize WooCommerce thank you page?
How to customize WooCommerce thank you page?

Guys here is the working code snippet and please use it carefully:

1. Guys here is the code snippet and you need to add your theme’s functions.php file:

guys also I will make it with ajax and share that as well

add_action( 'woocommerce_thankyou', 'wp_rich_woocommerce_thankyou_action', 10, 1 );

/**
 * Function for `woocommerce_thankyou` action-hook.
 * 
 * @param  $order_id 
 *
 * @return void
 */
function wp_rich_woocommerce_thankyou_action( $order_id ){

  // action...
        echo "Write your action here";
  

}

This is it guys and if you will have any kind of query, suggestion or requirement then feel free to comment below.

Jassa

Developer’s King

Thanks

You may also like

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.