Merge pull request #18624 from Chunkford/patch-4
Display zero value when using shipping classes
This commit is contained in:
commit
b93f719b36
|
@ -348,7 +348,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