This topic has 4 replies, 2 voices, and was last updated 2 years, 3 months ago ago by Rose Tyler
I wish to remove any reference to “shipping” and replace with the word “delivery” to suit the UK market.
I added the following code to function.php without success.
add_filter( ‘woocommerce_shipping_package_name’, ‘custom_shipping_package_name’ );
function custom_shipping_package_name( $name ) {
return ‘Delivery’;
}
function fix_woocommerce_strings( $translated, $text) {
// STRING 1
$translated = str_ireplace( ‘Shipping’, ‘Delivery charge’, $translated );
return $translated;
}
add_filter( ‘gettext’, ‘fix_woocommerce_strings’, 999, 3 );
Hello,
Try to Install and activate the Loco Translate plugin > create a translation for XStore theme and WooCommerce plugin > change English text and disable the Loco plugin https://www.8theme.com/documentation/xstore/theme-translation/base-theme-translation/
Regards
Hiya, thanks for the suggestion, i have uploaded Loco Translate and selected XStore theme and replaced “Shipping” for “Delivery”
However, i’m not seeing any change on the check-out?
Hello,
Try to do the same for the translation of WooCommerce plugin.
Regards
You must be logged in to reply to this topic.Log in/Sign up