Home » WooCommerce: Translate “Shipping” @ Cart Totals

WooCommerce: Translate “Shipping” @ Cart Totals

by Tutor Aspire

The cart totals table cell title “Shipping” or “Shipping and Handling” appears also on the checkout page. So, what if you wish to “translate” this string from English to “better” English or completely customize it? Thankfully there’s a quick 4 lines snippet for you. Enjoy!

Editing/translating the Cart Totals “Shipping” table cell title @ WooCommerce Cart & Checkout

PHP Snippet: Translate “Shipping” @ WooCommerce Cart Totals & Checkout Order Review

 * @snippet       Translate "Shipping" - WooCommerce Cart & Checkout
 * @how-to        Get tutoraspire.com FREE
 * @author        Tutor Aspire
 * @compatible    WooCommerce 3.8
 * @donate $9     https://www.tutoraspire.com

add_filter( 'woocommerce_shipping_package_name', 'tutoraspire_new_shipping_title' );

function tutoraspire_new_shipping_title() {
   return "Delivery";

You may also like