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

How to Change the Default Label Name of Shipping Methods in WooCommerce Cart?

If you want to change the default shipping methods label name into a new label name in the WooCommerce cart, you can use the following code snippet.

function ts_shipping_method_labels( $label, $method ) {
    // You can customize the shipping method labels here
    switch ( $method->method_id ) {
        case 'free_shipping':
            $label = 'Standard Shipping';
            break;
        case 'flat_rate':
            $label = 'Express Shipping';
            break;
		case 'local_pickup':
            $label = 'Local Pickup Service';
            break;
        // Add more cases for other shipping methods as needed
    }
    return $label;
}
add_filter( 'woocommerce_cart_shipping_method_full_label', 'ts_shipping_method_labels', 10, 2 );

Output

In the output below, the default label names of shipping methods are replaced with new labels: “Standard Shipping,” “Express Shipping,” and “Local Pickup Service.”

How to Change the Default Label Name of Shipping Methods in WooCommerce Cart? - Tyche Softwares

Additionally, if you want to show the details about every shipping method on the cart page, then you can follow this guide that will add a note below each shipping method in WooCommerce cart.

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

Share It:

Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x