From 1e2d0775c4e4677021e2d60a4485ac0186568f36 Mon Sep 17 00:00:00 2001 From: Spreeuw Date: Fri, 17 Apr 2015 12:45:32 +0200 Subject: [PATCH] tax text for negative shipping (refunds) --- includes/abstracts/abstract-wc-order.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/abstracts/abstract-wc-order.php b/includes/abstracts/abstract-wc-order.php index 31ef38fdc13..e566a095a3a 100644 --- a/includes/abstracts/abstract-wc-order.php +++ b/includes/abstracts/abstract-wc-order.php @@ -1654,7 +1654,7 @@ abstract class WC_Abstract_Order { // Show shipping excluding tax $shipping = wc_price( $this->order_shipping, array('currency' => $this->get_order_currency()) ); - if ( $this->order_shipping_tax > 0 && $this->prices_include_tax ) { + if ( $this->order_shipping_tax != 0 && $this->prices_include_tax ) { $tax_text = WC()->countries->ex_tax_or_vat() . ' '; } @@ -1663,7 +1663,7 @@ abstract class WC_Abstract_Order { // Show shipping including tax $shipping = wc_price( $this->order_shipping + $this->order_shipping_tax, array('currency' => $this->get_order_currency()) ); - if ( $this->order_shipping_tax > 0 && ! $this->prices_include_tax ) { + if ( $this->order_shipping_tax != 0 && ! $this->prices_include_tax ) { $tax_text = WC()->countries->inc_tax_or_vat() . ' '; }