From 32f8142c917f1f2f5f56865b229aa95ee99de9c7 Mon Sep 17 00:00:00 2001 From: pierrebuet Date: Fri, 24 Mar 2017 12:13:00 +0000 Subject: [PATCH] Fixes #13748 --- includes/admin/meta-boxes/views/html-order-item.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/admin/meta-boxes/views/html-order-item.php b/includes/admin/meta-boxes/views/html-order-item.php index 9a71fdefb80..2e5bbbda402 100644 --- a/includes/admin/meta-boxes/views/html-order-item.php +++ b/includes/admin/meta-boxes/views/html-order-item.php @@ -121,7 +121,11 @@ $thumbnail = $product ? apply_filters( 'woocommerce_admin_order_item_thumbnai } if ( $item->get_subtotal() !== $item->get_total() ) { - echo '-' . wc_price( wc_round_tax_total( $tax_item_subtotal - $tax_item_total ), array( 'currency' => $order->get_currency() ) ) . ''; + if ( '' === $tax_item_total ) { + echo ''; + } else { + echo '-' . wc_price( wc_round_tax_total( $tax_item_subtotal - $tax_item_total ), array( 'currency' => $order->get_currency() ) ) . ''; + } } if ( $refunded = $order->get_tax_refunded_for_item( $item_id, $tax_item_id ) ) {