From 4af291c38c46c9a2c35879bf896f399da668037e Mon Sep 17 00:00:00 2001 From: Chunkford Date: Wed, 31 Jan 2018 11:58:37 +0000 Subject: [PATCH] Update wc-cart-functions.php Alteration to the proposed changes to take into account free shipping so the price isn't displayed --- includes/wc-cart-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/wc-cart-functions.php b/includes/wc-cart-functions.php index 7cc2797af88..63c6bb18022 100644 --- a/includes/wc-cart-functions.php +++ b/includes/wc-cart-functions.php @@ -342,7 +342,7 @@ function wc_cart_totals_fee_html( $fee ) { function wc_cart_totals_shipping_method_label( $method ) { $label = $method->get_label(); - if ( $method->cost >= 0 ) { + if ( $method->cost >= 0 $method->get_method_id() != 'free_shipping' ) { if ( WC()->cart->display_prices_including_tax() ) { $label .= ': ' . wc_price( $method->cost + $method->get_shipping_tax() ); if ( $method->get_shipping_tax() > 0 && ! wc_prices_include_tax() ) {