get_taxable_address() should get postcode and city too.
@SiR-DanieL Can you check this?
This commit is contained in:
parent
1801f57a39
commit
00d574a929
|
@ -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' ) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue