My request sounds easy, but I’m not able to configure it. I want to change the word "product" in the new order email the customers received to "service".. as we are offering services, not products.
I downloaded a plugin called "Say What?" but I should get the exact text domain, which I did not find.
I tried too apply the following filter but it did not work too
add_filter( 'admin-new-order', '__return_false' );
function my_text_strings( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case 'PRODUCT' :
$translated_text = __( 'SERVICE', 'woocommerce' );
break;
}
return $translated_text;
}
add_filter( 'gettext', 'my_text_strings', 20, 3 );
2
Answers
Have a look at
emails/email-order-details.php
template file, line 42yourtheme/woocommerce/emails/email-order-details.php
.Replace
With
add this in functions.php