includes/class-wc-ajax.php 1 location
|
@@ 1608-1614 (lines=7) @@
|
| 1605 |
|
'tax_class' => '' |
| 1606 |
|
) ); |
| 1607 |
|
|
| 1608 |
|
if ( $tax_rates ) { |
| 1609 |
|
foreach ( $tax_rates as $key => $rate ) { |
| 1610 |
|
if ( isset( $rate['shipping'] ) && 'yes' == $rate['shipping'] ) { |
| 1611 |
|
$matched_tax_rates[ $key ] = $rate; |
| 1612 |
|
} |
| 1613 |
|
} |
| 1614 |
|
} |
| 1615 |
|
|
| 1616 |
|
$shipping_cost = $shipping_taxes = array(); |
| 1617 |
|
|
includes/abstracts/abstract-wc-order.php 1 location
|
@@ 2251-2257 (lines=7) @@
|
| 2248 |
|
'tax_class' => '' |
| 2249 |
|
) ); |
| 2250 |
|
|
| 2251 |
|
if ( ! empty( $tax_rates ) ) { |
| 2252 |
|
foreach ( $tax_rates as $key => $rate ) { |
| 2253 |
|
if ( isset( $rate['shipping'] ) && 'yes' === $rate['shipping'] ) { |
| 2254 |
|
$matched_tax_rates[ $key ] = $rate; |
| 2255 |
|
} |
| 2256 |
|
} |
| 2257 |
|
} |
| 2258 |
|
|
| 2259 |
|
$shipping_taxes = WC_Tax::calc_shipping_tax( $this->order_shipping, $matched_tax_rates ); |
| 2260 |
|
$shipping_tax_total = WC_Tax::round( array_sum( $shipping_taxes ) ); |