From 95d3353ec9cbb06858593f2886449a5e420668e8 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Sun, 17 Mar 2013 13:37:48 +0000 Subject: [PATCH] Tax label vs name in order emails. --- classes/class-wc-order.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/class-wc-order.php b/classes/class-wc-order.php index 728375f028a..dfb701c9614 100644 --- a/classes/class-wc-order.php +++ b/classes/class-wc-order.php @@ -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 ) {