|
@@ 1206-1208 (lines=3) @@
|
| 1203 |
|
|
| 1204 |
|
foreach ( $this->get_items( array( 'line_item', 'fee' ) ) as $item_id => $item ) { |
| 1205 |
|
$taxes = $item->get_taxes(); |
| 1206 |
|
foreach ( $taxes['total'] as $tax_rate_id => $tax ) { |
| 1207 |
|
$cart_taxes[ $tax_rate_id ] = isset( $cart_taxes[ $tax_rate_id ] ) ? $cart_taxes[ $tax_rate_id ] + $tax : $tax; |
| 1208 |
|
} |
| 1209 |
|
} |
| 1210 |
|
|
| 1211 |
|
foreach ( $this->get_shipping_methods() as $item_id => $item ) { |
|
@@ 1213-1215 (lines=3) @@
|
| 1210 |
|
|
| 1211 |
|
foreach ( $this->get_shipping_methods() as $item_id => $item ) { |
| 1212 |
|
$taxes = $item->get_taxes(); |
| 1213 |
|
foreach ( $taxes['total'] as $tax_rate_id => $tax ) { |
| 1214 |
|
$shipping_taxes[ $tax_rate_id ] = isset( $shipping_taxes[ $tax_rate_id ] ) ? $shipping_taxes[ $tax_rate_id ] + $tax : $tax; |
| 1215 |
|
} |
| 1216 |
|
} |
| 1217 |
|
|
| 1218 |
|
// Remove old existing tax rows. |