|
@@ 1296-1298 (lines=3) @@
|
| 1293 |
|
|
| 1294 |
|
foreach ( $this->get_items( array( 'line_item', 'fee' ) ) as $item_id => $item ) { |
| 1295 |
|
$taxes = $item->get_taxes(); |
| 1296 |
|
foreach ( $taxes['total'] as $tax_rate_id => $tax ) { |
| 1297 |
|
$cart_taxes[ $tax_rate_id ] = isset( $cart_taxes[ $tax_rate_id ] ) ? $cart_taxes[ $tax_rate_id ] + $tax : $tax; |
| 1298 |
|
} |
| 1299 |
|
} |
| 1300 |
|
|
| 1301 |
|
foreach ( $this->get_shipping_methods() as $item_id => $item ) { |
|
@@ 1303-1305 (lines=3) @@
|
| 1300 |
|
|
| 1301 |
|
foreach ( $this->get_shipping_methods() as $item_id => $item ) { |
| 1302 |
|
$taxes = $item->get_taxes(); |
| 1303 |
|
foreach ( $taxes['total'] as $tax_rate_id => $tax ) { |
| 1304 |
|
$shipping_taxes[ $tax_rate_id ] = isset( $shipping_taxes[ $tax_rate_id ] ) ? $shipping_taxes[ $tax_rate_id ] + $tax : $tax; |
| 1305 |
|
} |
| 1306 |
|
} |
| 1307 |
|
|
| 1308 |
|
// Remove old existing tax rows. |