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

Jul 31, 2022 | WooCommerce Tips | 0 comments

This function adds text before order information text “Thank you. Your order has been received.” in WooCommerce.
/* 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 = '<strong>We will contact you with a full quote</strong> for all the products you ordered and all shipping and/or import fees with instructions on the next steps.<br><br>';
    return $new_str;
}
/* Adding text before order information from "Thank you. Your order has been received." END */

0 Comments

Submit a Comment

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

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