Fix array sum and out of base subtotals

This commit is contained in:
Mike Jolley 2014-02-05 11:45:21 +00:00
parent 60f04ee3b4
commit 875694e2eb
1 changed files with 1 additions and 1 deletions

View File

@ -1018,7 +1018,7 @@ class WC_Cart {
// Now add modifed taxes // Now add modifed taxes
$tax_result = $this->tax->calc_tax( $line_subtotal, $item_tax_rates ); $tax_result = $this->tax->calc_tax( $line_subtotal, $item_tax_rates );
$line_subtotal_tax = array_sum( $taxes ); $line_subtotal_tax = array_sum( $tax_result );
/** /**
* Regular tax calculation (customer inside base and the tax class is unmodified * Regular tax calculation (customer inside base and the tax class is unmodified