Support » Fixing WordPress » Thankyou Page

  • Hi All,

    I want to change my Thankyou page text in my woocommerce product store. How i can do it, please suggest some plugins.

    Thanks in advance

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello @krawat731

    Add this code in the functions.php file in the activated theme.

    function bk_title_order_received( $title, $id ) {
    	if ( is_order_received_page() && get_the_ID() === $id ) {
    		$title = "Thank you for your order!";
    	return $title;
    add_filter( 'the_title', 'bk_title_order_received', 10, 2 );

    You can replace the “Thank you for your order!” with anything you like.

    Hope this will help.


    Hello @krawat731

    Here is two option to change the thank you page text.

    1) custom way, add below code on theme function files.

     * Custom text on the receipt page.
    function isa_order_received_text_thank_you( $text, $order ) {
        $new = $text . ' A receipt has been sent to you via email.';
        return $new;
    add_filter('woocommerce_thankyou_order_received_text', 'isa_order_received_text_thank_you', 10, 2 );

    2) use below-listed plugin

    Hope it’s work for you, if not then please let me know here.

    • This reply was modified 4 years, 2 months ago by Mithun Raval.
    Thread Starter krawat731


    Thanks for reply,

    I am getting many function.php files.

    could you please elobrate.

    Andrew Nevins


    WCLDN 2018 Contributor | Volunteer support

    You should use a plugin to handle this, there’s no point editing the theme’s files because those edits will just be erased the next time the theme updates. If you must make theme edits then you need to set up a “Child Theme”:


    To add your code to functions.php go to Appearance > Editor then select Theme Functions file and paste your code in the end of editor and click Update File:


    Hello @krawat731,

    I recommended Please use the plugin which I have suggested. it’s better for you.
    if you use the plugin then you no need to add “Child Theme” or not add code on function file. it’ easiest way to achieve functionality.

    Thank you.

    Thread Starter krawat731


    This is what my page showing:

    Thankyou for shopping with us . Your account has been chaged and your transaction is successful wit following order details:
    Order Id: 729
    We well be shipping you order to you soon

    I want to change “We well be shipping you order to you soon” text . where i will get this option

    added below code on current theme function.php files.

    add_action( 'woocommerce_thankyou', 'bbloomer_redirectcustom');
    function bbloomer_redirectcustom( $order_id ){
        $order = new WC_Order( $order_id );
        $url = '';
        if ( $order->status != 'failed' ) {

    get theme function files: Appearance >> Editor >> select current Theme >> Functions file and paste above code or change above code as per your site.

    More information refer:

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Thankyou Page’ is closed to new replies.