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' ) {
|
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' ) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue