|
@@ 1369-1371 (lines=3) @@
|
| 1366 |
|
|
| 1367 |
|
foreach ( $this->get_items( array( 'line_item', 'fee' ) ) as $item_id => $item ) { |
| 1368 |
|
$taxes = $item->get_taxes(); |
| 1369 |
|
foreach ( $taxes['total'] as $tax_rate_id => $tax ) { |
| 1370 |
|
$cart_taxes[ $tax_rate_id ] = isset( $cart_taxes[ $tax_rate_id ] ) ? $cart_taxes[ $tax_rate_id ] + $tax : $tax; |
| 1371 |
|
} |
| 1372 |
|
} |
| 1373 |
|
|
| 1374 |
|
foreach ( $this->get_shipping_methods() as $item_id => $item ) { |
|
@@ 1376-1378 (lines=3) @@
|
| 1373 |
|
|
| 1374 |
|
foreach ( $this->get_shipping_methods() as $item_id => $item ) { |
| 1375 |
|
$taxes = $item->get_taxes(); |
| 1376 |
|
foreach ( $taxes['total'] as $tax_rate_id => $tax ) { |
| 1377 |
|
$shipping_taxes[ $tax_rate_id ] = isset( $shipping_taxes[ $tax_rate_id ] ) ? $shipping_taxes[ $tax_rate_id ] + $tax : $tax; |
| 1378 |
|
} |
| 1379 |
|
} |
| 1380 |
|
|
| 1381 |
|
// Remove old existing tax rows. |