Adding text before order the information text “Thank you. Your order has been received.” in WooCommerce

TIPS

Jul 31, 2022 | WooCommerce Tips | 0 comments

This function adds text before order information text “Thank you. Your order has been received.” in WooCommerce.
[php]
/* Adding text before order information from "Thank you. Your order has been received." BEGIN */
add_filter('woocommerce_thankyou_order_received_text', 'woo_change_order_received_text', 10, 2 );
function woo_change_order_received_text( $str, $order ) {
    $new_str = 'We will contact you with a full quote for all the products you ordered and all shipping and/or import fees with instructions on the next steps.

'; return $new_str; } /* Adding text before order information from "Thank you. Your order has been received." END */ [/php]

0 Comments

Submit a Comment

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

More Tips

Ad - Web Hosting from SiteGround - Crafted for easy site management. Click to learn more.

Cloudways Hosting

WPEngine Hosting

Pressable Hosting

AccuWeb Hosting

Ask the Divi Guy a Question

"*" indicates required fields