get_taxable_address() should get postcode and city too.

@SiR-DanieL Can you check this?
This commit is contained in:
Mike Jolley 2015-06-23 11:50:15 +01:00
parent 1801f57a39
commit 00d574a929
1 changed files with 4 additions and 5 deletions

View File

@ -315,11 +315,10 @@ class WC_Customer {
if ( $tax_based_on == 'base' ) { if ( $tax_based_on == 'base' ) {
$default = wc_get_base_location(); $country = WC()->countries->get_base_country();
$country = $default['country']; $state = WC()->countries->get_base_state();
$state = $default['state']; $postcode = WC()->countries->get_base_postcode();
$postcode = ''; $city = WC()->countries->get_base_city();
$city = '';
} elseif ( $tax_based_on == 'billing' ) { } elseif ( $tax_based_on == 'billing' ) {