includes/abstracts/abstract-wc-order.php 1 location
|
@@ 688-694 (lines=7) @@
|
| 685 |
|
} |
| 686 |
|
|
| 687 |
|
// Default to base |
| 688 |
|
if ( 'base' === $tax_based_on || empty( $country ) ) { |
| 689 |
|
$default = wc_get_base_location(); |
| 690 |
|
$country = $default['country']; |
| 691 |
|
$state = $default['state']; |
| 692 |
|
$postcode = ''; |
| 693 |
|
$city = ''; |
| 694 |
|
} |
| 695 |
|
|
| 696 |
|
// Get items |
| 697 |
|
foreach ( $this->get_items( array( 'line_item', 'fee' ) ) as $item_id => $item ) { |
includes/class-wc-ajax.php 1 location
|
@@ 1498-1504 (lines=7) @@
|
| 1495 |
|
$shipping_taxes = array(); |
| 1496 |
|
|
| 1497 |
|
// Default to base |
| 1498 |
|
if ( 'base' === $tax_based_on || empty( $country ) ) { |
| 1499 |
|
$default = wc_get_base_location(); |
| 1500 |
|
$country = $default['country']; |
| 1501 |
|
$state = $default['state']; |
| 1502 |
|
$postcode = ''; |
| 1503 |
|
$city = ''; |
| 1504 |
|
} |
| 1505 |
|
|
| 1506 |
|
// Parse the jQuery serialized items |
| 1507 |
|
parse_str( $_POST['items'], $items ); |