[*] FO : display initial price in the cart when a specific price is applied to a product

This commit is contained in:
vChabot committed 2011-09-15 12:37:44 +00:00
1 parent 14004d9f97
commit 875d5488e6
6 files changed
+45 -12

No files matched your search

+6 -3
View File
@@ -261,9 +261,12 @@ class ParentOrderControllerCore extends FrontController
}
$this->context->smarty->assign('free_ship', $total_free_ship);
}
// for compatibility with 1.2 themes
foreach($summary['products'] AS $key => $product)
$summary['products'][$key]['quantity'] = $product['cart_quantity'];
foreach ($summary['products'] AS $key => $product)
{
$summary['products'][$key]['quantity'] = $product['cart_quantity'];// for compatibility with 1.2 themes
$std_product = new Product($summary['products'][$key]['id_product']);
$summary['products'][$key]['price_without_specific_price'] = $std_product->getPrice(!Product::getTaxCalculationMethod(), $summary['products'][$key]['id_product_attribute']);
}
$this->context->smarty->assign($summary);
$this->context->smarty->assign(array(