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' ) {
$default = wc_get_base_location();
$country = $default['country'];
$state = $default['state'];
$postcode = '';
$city = '';
$country = WC()->countries->get_base_country();
$state = WC()->countries->get_base_state();
$postcode = WC()->countries->get_base_postcode();
$city = WC()->countries->get_base_city();
} elseif ( $tax_based_on == 'billing' ) {