Work out cart discount without tax amounts #5300

This commit is contained in:
Mike Jolley 2014-04-09 15:50:13 +01:00
parent 31cb09aec6
commit 3228fecbe5
1 changed files with 2 additions and 2 deletions

View File

@ -150,8 +150,8 @@ class WC_Meta_Box_Order_Items {
wc_update_order_item_meta( $item_id, '_line_tax', wc_format_decimal( $line_tax[ $item_id ] ) );
// Total up
$subtotal += wc_format_decimal( $line_subtotal[ $item_id ] ) + wc_format_decimal( $line_subtotal_tax[ $item_id ] );
$total += wc_format_decimal( $line_total[ $item_id ] ) + wc_format_decimal( $line_tax[ $item_id ] );
$subtotal += wc_format_decimal( $line_subtotal[ $item_id ] );
$total += wc_format_decimal( $line_total[ $item_id ] );
// Clear meta cache
wp_cache_delete( $item_id, 'order_item_meta' );