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
|
@@ 1586-1592 (lines=7) @@
|
| 1583 |
|
'tax_class' => '' |
| 1584 |
|
) ); |
| 1585 |
|
|
| 1586 |
|
if ( $tax_rates ) { |
| 1587 |
|
foreach ( $tax_rates as $key => $rate ) { |
| 1588 |
|
if ( isset( $rate['shipping'] ) && 'yes' == $rate['shipping'] ) { |
| 1589 |
|
$matched_tax_rates[ $key ] = $rate; |
| 1590 |
|
} |
| 1591 |
|
} |
| 1592 |
|
} |
| 1593 |
|
|
| 1594 |
|
$shipping_cost = $shipping_taxes = array(); |
| 1595 |
|
|