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

This commit is contained in:
vChabot
2011-09-15 12:37:44 +00:00
parent 14004d9f97
commit 875d5488e6
6 changed files with 45 additions and 12 deletions
+2 -1
View File
@@ -484,6 +484,7 @@ class CartCore extends ObjectModel
$row = array_merge($row, $row2);
$row['reduction_applies'] = ($specificPriceOutput AND (float)$specificPriceOutput['reduction']);
$row['quantity_discount_applies'] = ($specificPriceOutput AND $row['cart_quantity'] >= (int)$specificPriceOutput['from_quantity']);
$row['id_image'] = Product::defineProductImage($row,$this->id_lang);
$row['allow_oosp'] = Product::isAvailableWhenOutOfStock($row['out_of_stock']);
$row['features'] = Product::getFeaturesStatic((int)$row['id_product']);
@@ -1448,7 +1449,7 @@ class CartCore extends ObjectModel
*
* @return array Cart details
*/
function getSummaryDetails($id_lang = null)
public function getSummaryDetails($id_lang = null)
{
if (!$id_lang)
$id_lang = Context::getContext()->language->id;