hi,
It seems the text “Thank you. Your order has been received” shown on the order-received page is written to the core file, how do I change the text?
ps. I’ve tried LOCO and WPML string translation, it can be “translated”, but not “modified”.
thank you :)
Hey decode,
Try adding this code in functions.php:
add_filter( 'woocommerce_thankyou_order_received_text', 'avia_thank_you' );
function avia_thank_you() {
$added_text = '<p>Thank you very much!</p>';
return $added_text ;
}
Just replace Thank you very much!. Hope this helps :)
Best regards,
Nikko