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

How to Translate “Shipping” @ Cart Totals in WooCommerce?

You can customize the display title of the “Shipping” section to make it sound clearer and more understandable in the WooCommerce cart and checkout pages. The simple code snippet given below works by replacing it with the title “Delivery”.

add_filter( 'woocommerce_shipping_package_name', 'ts_new_shipping_title' );
 
function ts_new_shipping_title() {
   return "Delivery";
}

Output

The following output shows that the default title “Shipping options” has been replaced by “Delivery”.

How to Translate “Shipping” @ Cart Totals in WooCommerce?

The below output shows us how the title appears before applying the code.

How to Translate “Shipping” @ Cart Totals in WooCommerce?

Here we are replacing the text of ‘Shipping’ present inside the cart totals . Similarly, you can also do styling to the text such as customizing the shipping total on the WooCommerce checkout which can help customers easily identify the shipping total and understand the associated costs.

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.