Skip to content

Commit

Permalink
Work out cart discount without tax amounts woocommerce#5300
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejolley committed Apr 10, 2014
1 parent 31cb09a commit 3228fec
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ public static function save( $post_id, $post ) {
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' );
Expand Down

0 comments on commit 3228fec

Please sign in to comment.