From 0e34d66ac1defbc5bc4fde0dac494f01cf8df011 Mon Sep 17 00:00:00 2001 From: Brent Shepherd Date: Fri, 27 Apr 2012 17:00:47 +1000 Subject: [PATCH] Replacing formatting code duplicated in email items template with call to WC_Order::get_formatted_line_subtotal(). --- templates/emails/email-order-items.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/templates/emails/email-order-items.php b/templates/emails/email-order-items.php index e07d9dab7ab..b65cbc52331 100644 --- a/templates/emails/email-order-items.php +++ b/templates/emails/email-order-items.php @@ -35,18 +35,7 @@ foreach ($items as $item) : ?> - display_cart_ex_tax || !$order->prices_include_tax ) : - $ex_tax_label = ( $order->prices_include_tax ) ? 1 : 0; - echo woocommerce_price( $order->get_line_subtotal( $item ), array('ex_tax_label' => $ex_tax_label )); - else : - echo woocommerce_price( $order->get_line_subtotal( $item, true ) ); - endif; - - ?> - + get_formatted_line_subtotal( $item ); ?> id, '_purchase_note', true)) : ?>