If no tax rate is defined for a specific country it still shows "incl. VAT" at the checkout / cart when tax display is set to "As single total". This will solved that
This commit is contained in:
parent
ce47fa65c2
commit
dee7a8c8d4
|
@ -307,8 +307,10 @@ function wc_cart_totals_order_total_html() {
|
|||
$tax_string_array[] = sprintf( '%s %s', $tax->formatted_amount, $tax->label );
|
||||
}
|
||||
} else {
|
||||
if( ! empty( WC()->cart->get_tax_totals() ) ) {
|
||||
$tax_string_array[] = sprintf( '%s %s', wc_price( WC()->cart->get_taxes_total( true, true ) ), WC()->countries->tax_or_vat() );
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! empty( $tax_string_array ) ) {
|
||||
$taxable_address = WC()->customer->get_taxable_address();
|
||||
|
|
Loading…
Reference in New Issue