includes/abstracts/abstract-wc-order.php 1 location
|
@@ 710-716 (lines=7) @@
|
| 707 |
|
'tax_class' => '' |
| 708 |
|
) ); |
| 709 |
|
|
| 710 |
|
if ( ! empty( $tax_rates ) ) { |
| 711 |
|
foreach ( $tax_rates as $key => $rate ) { |
| 712 |
|
if ( isset( $rate['shipping'] ) && 'yes' === $rate['shipping'] ) { |
| 713 |
|
$matched_tax_rates[ $key ] = $rate; |
| 714 |
|
} |
| 715 |
|
} |
| 716 |
|
} |
| 717 |
|
|
| 718 |
|
$shipping_taxes = WC_Tax::calc_shipping_tax( $this->order_shipping, $matched_tax_rates ); |
| 719 |
|
$shipping_tax_total = WC_Tax::round( array_sum( $shipping_taxes ) ); |
includes/class-wc-ajax.php 1 location
|
@@ 1615-1621 (lines=7) @@
|
| 1612 |
|
'tax_class' => '' |
| 1613 |
|
) ); |
| 1614 |
|
|
| 1615 |
|
if ( $tax_rates ) { |
| 1616 |
|
foreach ( $tax_rates as $key => $rate ) { |
| 1617 |
|
if ( isset( $rate['shipping'] ) && 'yes' == $rate['shipping'] ) { |
| 1618 |
|
$matched_tax_rates[ $key ] = $rate; |
| 1619 |
|
} |
| 1620 |
|
} |
| 1621 |
|
} |
| 1622 |
|
|
| 1623 |
|
$shipping_cost = $shipping_taxes = array(); |
| 1624 |
|
|