Black Friday & Cyber Monday SUPER SALE ALL WEEK:
Grab 40% OFF on plugins
Days
Hours
Minutes
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.

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