Fix array sum and out of base subtotals
This commit is contained in:
parent
60f04ee3b4
commit
875694e2eb
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue