Tax label vs name in order emails.

This commit is contained in:
Mike Jolley 2013-03-17 13:37:48 +00:00
parent 4825db857a
commit 95d3353ec9
1 changed files with 1 additions and 1 deletions

View File

@ -1020,7 +1020,7 @@ class WC_Order {
foreach ( $this->get_taxes() as $tax ) {
$tax_string_array[] = sprintf( '%s %s', woocommerce_price( ( $tax[ 'tax_amount' ] + $tax[ 'shipping_tax_amount' ] ) ), $tax[ 'name' ] );
$tax_string_array[] = sprintf( '%s %s', woocommerce_price( ( $tax[ 'tax_amount' ] + $tax[ 'shipping_tax_amount' ] ) ), isset( $tax[ 'label' ] ) ? $tax[ 'label' ] : $tax[ 'name' ] );
}
} elseif ( $this->get_total_tax() > 0 ) {