Black Friday & Cyber Monday SUPER SALE ALL WEEK:
Grab 40% OFF on plugins
00 Days
00 Hours
00 Minutes
00 Seconds

How to Modify the “Change Address” Label Name in WooCommerce Cart?

If you wish to customize the shipping information linked to the ‘Change address’ label on your WooCommerce cart page, use this snippet for the modification.

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
add_filter('gettext', 'ts_change_cart_address_text', 10, 3);
function ts_change_cart_address_text($translated_text, $text, $domain) {
if ($text === 'Change address' && $domain === 'woocommerce') {
$translated_text = __('Update the address', 'woocommerce');
}
return $translated_text;
}
add_filter('gettext', 'ts_change_cart_address_text', 10, 3); function ts_change_cart_address_text($translated_text, $text, $domain) { if ($text === 'Change address' && $domain === 'woocommerce') { $translated_text = __('Update the address', 'woocommerce'); } return $translated_text; }
add_filter('gettext', 'ts_change_cart_address_text', 10, 3);
function ts_change_cart_address_text($translated_text, $text, $domain) {
    if ($text === 'Change address' && $domain === 'woocommerce') {
        $translated_text = __('Update the address', 'woocommerce');
    }
    return $translated_text;
}

Output

The below output shows that the “change address” label name is changed into the “Update the address” text link.

How to Modify the "Change Address" Label Name in WooCommerce Cart? - Tyche Softwares

Alternatively, you can also add a custom message that helps to replace the WooCommerce cart shipping section with a custom text message while removing the default shipping section from the cart page.

Browse more in: Code Snippets, WooCommerce How Tos, WooCommerce Tutorials

Share It:

Subscribe
Notify of


0 Comments
Newest
Oldest
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible.

Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

By using our site, you acknowledge that you have read and understood our Privacy Policy and Terms & Conditions.