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

How to Customize the “Shipping to” Text on the WooCommerce Cart?

If you want to modify the text that appears as “Shipping to” on the cart totals section, there is a code snippet you can use. To customize the text, you need to edit the “cart-shipping.php” file located in the /wp-content/plugins/woocommerce/templates/cart/cart-shipping.php directory.

You will have to insert the code provided below at line 47 in the file. After making the necessary changes, you need to save the template file.

<p class="woocommerce-shipping-destination">
	<?php
		if ( $formatted_destination ) {
		printf( esc_html__( 'Delivery to %s.', 'woocommerce' ) . ' ', '<strong>' . esc_html( $formatted_destination ) . '</strong>' );
			$calculator_text = esc_html__( 'Change address', 'woocommerce' );
		} else {
			echo wp_kses_post( apply_filters( 'woocommerce_shipping_estimate_html', __( 'Shipping options will be updated during checkout.', 'woocommerce' ) ) );
          }
       ?>
</p>

Output

The below output shows that the WooCommerce cart page now displays “Delivery to” instead of “Shipping to” in the cart total section.

How to Customize the "Shipping to" Text on the WooCommerce Cart? - Tyche Softwares

On the WooCommerce cart page, it displays the default text i.e. “Shipping to” under the chosen shipping method as shown below.

How to Customize the "Shipping to" Text on the WooCommerce Cart? - Tyche Softwares

You can also change the default label name of the shipping in your WooCommerce cart page, where you can change the word “Shipping” to “Delivery” in WooCommerce cart for your customer.

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

Share It:

Subscribe
Notify of
2 Comments
Newest
Oldest
Inline Feedbacks
View all comments
imtiaz majid
3 months ago

thanks for sharing info to us .

3 months ago
Reply to  imtiaz majid

You’re welcome!

2
0
Would love your thoughts, please comment.x
()
x