{"id":2376,"date":"2021-10-25T16:08:34","date_gmt":"2021-10-25T08:08:34","guid":{"rendered":"https:\/\/www.intelliwolf.com\/?p=2376"},"modified":"2021-10-25T16:08:36","modified_gmt":"2021-10-25T08:08:36","slug":"customize-woocommerce-order-thankyou-text","status":"publish","type":"post","link":"https:\/\/www.intelliwolf.com\/customize-woocommerce-order-thankyou-text\/","title":{"rendered":"How To Customize WooCommerce Order Thankyou Text"},"content":{"rendered":"\n

Have you ever wanted to change WooCommerce's default thankyou text from \"Thank you. Your order has been received\" to something that better represents your brand?<\/p>\n\n\n\n

I usually want to add in something about checking their spam folder for the confirmation email if they haven't seen it within 30 minutes.<\/p>\n\n\n\n

Before customization, the order received text was standard.<\/p>\n\n\n\n

\"Woocommerce<\/figure><\/div>\n\n\n\n

Afterwards, I added the information about further instructions being in the email.<\/p>\n\n\n\n

\"Woocommerce<\/figure><\/div>\n\n\n\n

I also customized the text based on whether they chose to pick up the order or have it delivered.<\/p>\n\n\n\n

To customize the WooCommerce order thankyou text, add a filter to woocommerce_thankyou_order_received_text <\/em>that returns your message.<\/p>\n\n\n\n

If you want to customize the thank you text based on anything to do with the order, you can pass in the order, conditionally process the text and return it. Just be sure to add in the appropriate spaces.<\/p>\n\n\n\n

The code to customize the order page thankyou text is: <\/p>\n\n\n\n

add_filter( 'woocommerce_thankyou_order_received_text', 'change_received_order_text', 10, 2 );\nfunction change_received_order_text( $text, $order ) {\n  $shipping = $order->get_shipping_method();\n  $message  = \"Thank you. Your order has been received. Please check your email for your receipt and instructions regarding \";\n  \n  if ( \"Local pickup\" == $shipping ) {\n    $message .= \"picking up\";\n  } else {\n    $message .= \"the delivery of\";\n  }\n  \n  $message .= \" your order. If you do not see an email from client@website.com within 30 minutes, please check your spam or junk folder.\";\n  \n  return esc_html__( $message, 'woocommerce' );  \n}<\/code><\/pre>\n\n\n\n

You may have to play around with what is returned by $shipping<\/em>. \"Local pickup\" is the string returned in my particular setup, but yours might be different.<\/p>\n\n\n\n

You could also customize based on payment method, category or any other information you have about the product in your setup.<\/p>\n\n\n\n

For example, to customize based on payment method, use:<\/p>\n\n\n\n

$payment = $order->get_payment_method();<\/code><\/pre>\n\n\n\n

I hope that helps. See you next time.<\/p>\n","protected":false},"excerpt":{"rendered":"

Have you ever wanted to change WooCommerce’s default thankyou text from “Thank you. Your order has been received” to something that better represents your brand? I usually want to add in something about checking their spam folder for the confirmation email if they haven’t seen it within 30 minutes. Before customization, the order received text<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"yoast_head":"\nHow To Customize WooCommerce Order Thankyou Text<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.intelliwolf.com\/customize-woocommerce-order-thankyou-text\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Customize WooCommerce Order Thankyou Text\" \/>\n<meta property=\"og:description\" content=\"Have you ever wanted to change WooCommerce's default thankyou text from "Thank you. Your order has been received" to something that better represents your brand? I usually want to add in something about checking their spam folder for the confirmation email if they haven't seen it within 30 minutes. Before customization, the order received text\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.intelliwolf.com\/customize-woocommerce-order-thankyou-text\/\" \/>\n<meta property=\"og:site_name\" content=\"Intelliwolf\" \/>\n<meta property=\"article:published_time\" content=\"2021-10-25T08:08:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-10-25T08:08:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/intelliwolf.com\/wp-content\/uploads\/2021\/10\/2021-10-25-customize-woocommerce-order-thankyou-text-01-600x114.png\" \/>\n<meta name=\"author\" content=\"Mike Haydon\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mike Haydon\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.intelliwolf.com\/customize-woocommerce-order-thankyou-text\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.intelliwolf.com\/customize-woocommerce-order-thankyou-text\/\"},\"author\":{\"name\":\"Mike Haydon\",\"@id\":\"https:\/\/www.intelliwolf.com\/#\/schema\/person\/7209e3ff14822e4d70d5f194a310f343\"},\"headline\":\"How To Customize WooCommerce Order Thankyou Text\",\"datePublished\":\"2021-10-25T08:08:34+00:00\",\"dateModified\":\"2021-10-25T08:08:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.intelliwolf.com\/customize-woocommerce-order-thankyou-text\/\"},\"wordCount\":228,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.intelliwolf.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.intelliwolf.com\/customize-woocommerce-order-thankyou-text\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/intelliwolf.com\/wp-content\/uploads\/2021\/10\/2021-10-25-customize-woocommerce-order-thankyou-text-01-600x114.png\",\"articleSection\":[\"WooCommerce\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.intelliwolf.com\/customize-woocommerce-order-thankyou-text\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.intelliwolf.com\/customize-woocommerce-order-thankyou-text\/\",\"url\":\"https:\/\/www.intelliwolf.com\/customize-woocommerce-order-thankyou-text\/\",\"name\":\"How To Customize WooCommerce Order Thankyou Text\",\"isPartOf\":{\"@id\":\"https:\/\/www.intelliwolf.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.intelliwolf.com\/customize-woocommerce-order-thankyou-text\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.intelliwolf.com\/customize-woocommerce-order-thankyou-text\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/intelliwolf.com\/wp-content\/uploads\/2021\/10\/2021-10-25-customize-woocommerce-order-thankyou-text-01-600x114.png\",\"datePublished\":\"2021-10-25T08:08:34+00:00\",\"dateModified\":\"2021-10-25T08:08:36+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.intelliwolf.com\/customize-woocommerce-order-thankyou-text\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.intelliwolf.com\/customize-woocommerce-order-thankyou-text\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.intelliwolf.com\/customize-woocommerce-order-thankyou-text\/#primaryimage\",\"url\":\"https:\/\/www.intelliwolf.com\/wp-content\/uploads\/2021\/10\/2021-10-25-customize-woocommerce-order-thankyou-text-01.png\",\"contentUrl\":\"https:\/\/www.intelliwolf.com\/wp-content\/uploads\/2021\/10\/2021-10-25-customize-woocommerce-order-thankyou-text-01.png\",\"width\":1112,\"height\":212},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.intelliwolf.com\/customize-woocommerce-order-thankyou-text\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.intelliwolf.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WooCommerce\",\"item\":\"https:\/\/www.intelliwolf.com\/category\/woocommerce\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How To Customize WooCommerce Order Thankyou Text\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.intelliwolf.com\/#website\",\"url\":\"https:\/\/www.intelliwolf.com\/\",\"name\":\"Intelliwolf\",\"description\":\"WordPress, Web Design & Coding Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.intelliwolf.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.intelliwolf.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.intelliwolf.com\/#organization\",\"name\":\"Intelliwolf\",\"url\":\"https:\/\/www.intelliwolf.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.intelliwolf.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.intelliwolf.com\/wp-content\/uploads\/intelliwolf-logo-300t.png\",\"contentUrl\":\"https:\/\/www.intelliwolf.com\/wp-content\/uploads\/intelliwolf-logo-300t.png\",\"width\":300,\"height\":100,\"caption\":\"Intelliwolf\"},\"image\":{\"@id\":\"https:\/\/www.intelliwolf.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.intelliwolf.com\/#\/schema\/person\/7209e3ff14822e4d70d5f194a310f343\",\"name\":\"Mike Haydon\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.intelliwolf.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d5f4754fae310a04dede91d15e57c8a0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d5f4754fae310a04dede91d15e57c8a0?s=96&d=mm&r=g\",\"caption\":\"Mike Haydon\"},\"sameAs\":[\"https:\/\/intelliwolf.com\/about-mike-haydon\/\"]}]}<\/script>\n","yoast_head_json":{"title":"How To Customize WooCommerce Order Thankyou Text","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.intelliwolf.com\/customize-woocommerce-order-thankyou-text\/","og_locale":"en_US","og_type":"article","og_title":"How To Customize WooCommerce Order Thankyou Text","og_description":"Have you ever wanted to change WooCommerce's default thankyou text from \"Thank you. Your order has been received\" to something that better represents your brand? I usually want to add in something about checking their spam folder for the confirmation email if they haven't seen it within 30 minutes. Before customization, the order received text","og_url":"https:\/\/www.intelliwolf.com\/customize-woocommerce-order-thankyou-text\/","og_site_name":"Intelliwolf","article_published_time":"2021-10-25T08:08:34+00:00","article_modified_time":"2021-10-25T08:08:36+00:00","og_image":[{"url":"https:\/\/intelliwolf.com\/wp-content\/uploads\/2021\/10\/2021-10-25-customize-woocommerce-order-thankyou-text-01-600x114.png"}],"author":"Mike Haydon","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Mike Haydon","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.intelliwolf.com\/customize-woocommerce-order-thankyou-text\/#article","isPartOf":{"@id":"https:\/\/www.intelliwolf.com\/customize-woocommerce-order-thankyou-text\/"},"author":{"name":"Mike Haydon","@id":"https:\/\/www.intelliwolf.com\/#\/schema\/person\/7209e3ff14822e4d70d5f194a310f343"},"headline":"How To Customize WooCommerce Order Thankyou Text","datePublished":"2021-10-25T08:08:34+00:00","dateModified":"2021-10-25T08:08:36+00:00","mainEntityOfPage":{"@id":"https:\/\/www.intelliwolf.com\/customize-woocommerce-order-thankyou-text\/"},"wordCount":228,"commentCount":0,"publisher":{"@id":"https:\/\/www.intelliwolf.com\/#organization"},"image":{"@id":"https:\/\/www.intelliwolf.com\/customize-woocommerce-order-thankyou-text\/#primaryimage"},"thumbnailUrl":"https:\/\/intelliwolf.com\/wp-content\/uploads\/2021\/10\/2021-10-25-customize-woocommerce-order-thankyou-text-01-600x114.png","articleSection":["WooCommerce"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.intelliwolf.com\/customize-woocommerce-order-thankyou-text\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.intelliwolf.com\/customize-woocommerce-order-thankyou-text\/","url":"https:\/\/www.intelliwolf.com\/customize-woocommerce-order-thankyou-text\/","name":"How To Customize WooCommerce Order Thankyou Text","isPartOf":{"@id":"https:\/\/www.intelliwolf.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.intelliwolf.com\/customize-woocommerce-order-thankyou-text\/#primaryimage"},"image":{"@id":"https:\/\/www.intelliwolf.com\/customize-woocommerce-order-thankyou-text\/#primaryimage"},"thumbnailUrl":"https:\/\/intelliwolf.com\/wp-content\/uploads\/2021\/10\/2021-10-25-customize-woocommerce-order-thankyou-text-01-600x114.png","datePublished":"2021-10-25T08:08:34+00:00","dateModified":"2021-10-25T08:08:36+00:00","breadcrumb":{"@id":"https:\/\/www.intelliwolf.com\/customize-woocommerce-order-thankyou-text\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.intelliwolf.com\/customize-woocommerce-order-thankyou-text\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.intelliwolf.com\/customize-woocommerce-order-thankyou-text\/#primaryimage","url":"https:\/\/www.intelliwolf.com\/wp-content\/uploads\/2021\/10\/2021-10-25-customize-woocommerce-order-thankyou-text-01.png","contentUrl":"https:\/\/www.intelliwolf.com\/wp-content\/uploads\/2021\/10\/2021-10-25-customize-woocommerce-order-thankyou-text-01.png","width":1112,"height":212},{"@type":"BreadcrumbList","@id":"https:\/\/www.intelliwolf.com\/customize-woocommerce-order-thankyou-text\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.intelliwolf.com\/"},{"@type":"ListItem","position":2,"name":"WooCommerce","item":"https:\/\/www.intelliwolf.com\/category\/woocommerce\/"},{"@type":"ListItem","position":3,"name":"How To Customize WooCommerce Order Thankyou Text"}]},{"@type":"WebSite","@id":"https:\/\/www.intelliwolf.com\/#website","url":"https:\/\/www.intelliwolf.com\/","name":"Intelliwolf","description":"WordPress, Web Design & Coding Tutorials","publisher":{"@id":"https:\/\/www.intelliwolf.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.intelliwolf.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.intelliwolf.com\/#organization","name":"Intelliwolf","url":"https:\/\/www.intelliwolf.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.intelliwolf.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.intelliwolf.com\/wp-content\/uploads\/intelliwolf-logo-300t.png","contentUrl":"https:\/\/www.intelliwolf.com\/wp-content\/uploads\/intelliwolf-logo-300t.png","width":300,"height":100,"caption":"Intelliwolf"},"image":{"@id":"https:\/\/www.intelliwolf.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.intelliwolf.com\/#\/schema\/person\/7209e3ff14822e4d70d5f194a310f343","name":"Mike Haydon","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.intelliwolf.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d5f4754fae310a04dede91d15e57c8a0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d5f4754fae310a04dede91d15e57c8a0?s=96&d=mm&r=g","caption":"Mike Haydon"},"sameAs":["https:\/\/intelliwolf.com\/about-mike-haydon\/"]}]}},"_links":{"self":[{"href":"https:\/\/www.intelliwolf.com\/wp-json\/wp\/v2\/posts\/2376"}],"collection":[{"href":"https:\/\/www.intelliwolf.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.intelliwolf.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.intelliwolf.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.intelliwolf.com\/wp-json\/wp\/v2\/comments?post=2376"}],"version-history":[{"count":2,"href":"https:\/\/www.intelliwolf.com\/wp-json\/wp\/v2\/posts\/2376\/revisions"}],"predecessor-version":[{"id":2380,"href":"https:\/\/www.intelliwolf.com\/wp-json\/wp\/v2\/posts\/2376\/revisions\/2380"}],"wp:attachment":[{"href":"https:\/\/www.intelliwolf.com\/wp-json\/wp\/v2\/media?parent=2376"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.intelliwolf.com\/wp-json\/wp\/v2\/categories?post=2376"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.intelliwolf.com\/wp-json\/wp\/v2\/tags?post=2376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}