...

World Wide Web Server 2012-07-04 16:07:29 -07:00
parent 01d75bd117
commit d6da365442

@ -174,10 +174,6 @@ class MY_Cart extends CI_Cart
$product_price = $gp->price;
}
#Lets figure out the total tax
$tax_diff = $val['price'] * $hst_dec;
$tax_total = $val['price'] - $tax_diff;
#Apply A Discount % if quantity is higher than discount multiple items.
if($val['qty'] >= $this->CI->config->item('discount_multiple_items'))
{
@ -194,6 +190,10 @@ class MY_Cart extends CI_Cart
$total += ($val['price'] * $val['qty']);
$items += $val['qty'];
#Lets figure out the total tax
$tax_diff = $val['price'] * $hst_dec;
$tax_total = $val['price'] - $tax_diff;
// Set the subtotal
$this->_cart_contents[$key]['subtotal'] = ($this->_cart_contents[$key]['price'] * $this->_cart_contents[$key]['qty'] + $tax_total * $this->_cart_contents[$key]['qty']);