includes/class-wc-ajax.php 1 location
|
@@ 1587-1593 (lines=7) @@
|
| 1584 |
|
'tax_class' => '' |
| 1585 |
|
) ); |
| 1586 |
|
|
| 1587 |
|
if ( $tax_rates ) { |
| 1588 |
|
foreach ( $tax_rates as $key => $rate ) { |
| 1589 |
|
if ( isset( $rate['shipping'] ) && 'yes' == $rate['shipping'] ) { |
| 1590 |
|
$matched_tax_rates[ $key ] = $rate; |
| 1591 |
|
} |
| 1592 |
|
} |
| 1593 |
|
} |
| 1594 |
|
|
| 1595 |
|
$shipping_cost = $shipping_taxes = array(); |
| 1596 |
|
|
includes/abstracts/abstract-wc-order.php 1 location
|
@@ 745-751 (lines=7) @@
|
| 742 |
|
'tax_class' => '' |
| 743 |
|
) ); |
| 744 |
|
|
| 745 |
|
if ( ! empty( $tax_rates ) ) { |
| 746 |
|
foreach ( $tax_rates as $key => $rate ) { |
| 747 |
|
if ( isset( $rate['shipping'] ) && 'yes' === $rate['shipping'] ) { |
| 748 |
|
$matched_tax_rates[ $key ] = $rate; |
| 749 |
|
} |
| 750 |
|
} |
| 751 |
|
} |
| 752 |
|
|
| 753 |
|
$shipping_taxes = WC_Tax::calc_shipping_tax( $this->order_shipping, $matched_tax_rates ); |
| 754 |
|
$shipping_tax_total = WC_Tax::round( array_sum( $shipping_taxes ) ); |