Update wc-cart-functions.php
Alteration to the proposed changes to take into account free shipping so the price isn't displayed
This commit is contained in:
parent
e831406d9f
commit
4af291c38c
|
@ -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() ) {
|
||||
|
|
Loading…
Reference in New Issue