Im using woocommerce and I want to change the "Shipping" word to "Delivery". Tried code in the functions.php folder but nothing seems to work.
My site is a restaurant and it just looks weird to say "shipping" food.
Any help is appreciated.
The following code will change the word "Shipping" to "Delivery" in cart and checkout pages:
add_filter('woocommerce_shipping_package_name', 'change_shipping_text_to_delivery', 20, 3 );
function change_shipping_text_to_delivery( $sprintf, $i, $package ) {
$sprintf = sprintf( _nx( 'Delivery', 'Delivery %d', ( $i + 1 ), 'delivery packages', 'woocommerce' ), ( $i + 1 ) );
return $sprintf;
}
Code goes in function.php file of the active child theme (or active theme). Tested and works.
You will get something like this in cart and checkout pages: