includes/abstracts/abstract-wc-order.php 1 location
|
@@ 695-701 (lines=7) @@
|
692 |
|
'tax_class' => '' |
693 |
|
) ); |
694 |
|
|
695 |
|
if ( ! empty( $tax_rates ) ) { |
696 |
|
foreach ( $tax_rates as $key => $rate ) { |
697 |
|
if ( isset( $rate['shipping'] ) && 'yes' === $rate['shipping'] ) { |
698 |
|
$matched_tax_rates[ $key ] = $rate; |
699 |
|
} |
700 |
|
} |
701 |
|
} |
702 |
|
|
703 |
|
$shipping_taxes = WC_Tax::calc_shipping_tax( $this->order_shipping, $matched_tax_rates ); |
704 |
|
$shipping_tax_total = WC_Tax::round( array_sum( $shipping_taxes ) ); |
includes/class-wc-ajax.php 1 location
|
@@ 1588-1594 (lines=7) @@
|
1585 |
|
'tax_class' => '' |
1586 |
|
) ); |
1587 |
|
|
1588 |
|
if ( $tax_rates ) { |
1589 |
|
foreach ( $tax_rates as $key => $rate ) { |
1590 |
|
if ( isset( $rate['shipping'] ) && 'yes' == $rate['shipping'] ) { |
1591 |
|
$matched_tax_rates[ $key ] = $rate; |
1592 |
|
} |
1593 |
|
} |
1594 |
|
} |
1595 |
|
|
1596 |
|
$shipping_cost = $shipping_taxes = array(); |
1597 |
|
|