coupon in orders + model review : backquote use

This commit is contained in:
Etienne Roudeix
2013-12-18 17:46:42 +01:00
parent c39492d6ce
commit 1ba60103f3
214 changed files with 4173 additions and 3065 deletions

View File

@@ -83,7 +83,6 @@ class Cart extends BaseCart
foreach($this->getCartItems() as $cartItem) {
$subtotal = $cartItem->getRealPrice();
$subtotal -= $cartItem->getDiscount();
/* we round it for the unit price, before the quantity factor */
$subtotal = round($taxCalculator->load($cartItem->getProduct(), $country)->getTaxedPrice($subtotal), 2);
$subtotal *= $cartItem->getQuantity();
@@ -102,7 +101,6 @@ class Cart extends BaseCart
foreach($this->getCartItems() as $cartItem) {
$subtotal = $cartItem->getRealPrice();
$subtotal -= $cartItem->getDiscount();
$subtotal *= $cartItem->getQuantity();
$total += $subtotal;