Remove any reference to “shipping” and replace with the word “delivery”

This topic has 4 replies, 2 voices, and was last updated 2 years, 2 months ago ago by Rose Tyler

  • Avatar: chris.barrett
    Chris Barrett
    Participant
    September 6, 2022 at 13:23

    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 );

    3 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    September 6, 2022 at 13:43

    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

    Avatar: chris.barrett
    Chris Barrett
    Participant
    September 6, 2022 at 16:40

    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?

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    September 7, 2022 at 06:47

    Hello,

    Try to do the same for the translation of WooCommerce plugin.

    Regards

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.