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