|
@@ 1350-1352 (lines=3) @@
|
| 1347 |
|
|
| 1348 |
|
foreach ( $this->get_items( array( 'line_item', 'fee' ) ) as $item_id => $item ) { |
| 1349 |
|
$taxes = $item->get_taxes(); |
| 1350 |
|
foreach ( $taxes['total'] as $tax_rate_id => $tax ) { |
| 1351 |
|
$cart_taxes[ $tax_rate_id ] = isset( $cart_taxes[ $tax_rate_id ] ) ? $cart_taxes[ $tax_rate_id ] + $tax : $tax; |
| 1352 |
|
} |
| 1353 |
|
} |
| 1354 |
|
|
| 1355 |
|
foreach ( $this->get_shipping_methods() as $item_id => $item ) { |
|
@@ 1357-1359 (lines=3) @@
|
| 1354 |
|
|
| 1355 |
|
foreach ( $this->get_shipping_methods() as $item_id => $item ) { |
| 1356 |
|
$taxes = $item->get_taxes(); |
| 1357 |
|
foreach ( $taxes['total'] as $tax_rate_id => $tax ) { |
| 1358 |
|
$shipping_taxes[ $tax_rate_id ] = isset( $shipping_taxes[ $tax_rate_id ] ) ? $shipping_taxes[ $tax_rate_id ] + $tax : $tax; |
| 1359 |
|
} |
| 1360 |
|
} |
| 1361 |
|
|
| 1362 |
|
// Remove old existing tax rows. |