includes/class-wc-ajax.php 1 location
|
@@ 1524-1530 (lines=7) @@
|
| 1521 |
|
$shipping_taxes = array(); |
| 1522 |
|
|
| 1523 |
|
// Default to base |
| 1524 |
|
if ( 'base' === $tax_based_on || empty( $country ) ) { |
| 1525 |
|
$default = wc_get_base_location(); |
| 1526 |
|
$country = $default['country']; |
| 1527 |
|
$state = $default['state']; |
| 1528 |
|
$postcode = ''; |
| 1529 |
|
$city = ''; |
| 1530 |
|
} |
| 1531 |
|
|
| 1532 |
|
// Parse the jQuery serialized items |
| 1533 |
|
parse_str( $_POST['items'], $items ); |
includes/abstracts/abstract-wc-order.php 1 location
|
@@ 2258-2264 (lines=7) @@
|
| 2255 |
|
} |
| 2256 |
|
|
| 2257 |
|
// Default to base |
| 2258 |
|
if ( 'base' === $tax_based_on || empty( $country ) ) { |
| 2259 |
|
$default = wc_get_base_location(); |
| 2260 |
|
$country = $default['country']; |
| 2261 |
|
$state = $default['state']; |
| 2262 |
|
$postcode = ''; |
| 2263 |
|
$city = ''; |
| 2264 |
|
} |
| 2265 |
|
|
| 2266 |
|
// Get items |
| 2267 |
|
foreach ( $this->get_items( array( 'line_item', 'fee' ) ) as $item_id => $item ) { |