From 172b2ec26df175f9b6142254e05e3b4df9e482f8 Mon Sep 17 00:00:00 2001 From: bMancone Date: Thu, 25 Aug 2011 07:10:51 +0000 Subject: [PATCH] [*] MO : crossseling - the main title now depends on the number of products in the cart --- modules/crossselling/crossselling.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/crossselling/crossselling.php b/modules/crossselling/crossselling.php index 7dc35ffee..88f9b0037 100755 --- a/modules/crossselling/crossselling.php +++ b/modules/crossselling/crossselling.php @@ -161,7 +161,7 @@ class CrossSelling extends Module $orderProduct['displayed_price'] = Product::getPriceStatic((int)$orderProduct['product_id'], false, NULL); } - $this->context->smarty->assign(array('order' => true, 'orderProducts' => $orderProducts, 'middlePosition_crossselling' => round(sizeof($orderProducts) / 2, 0), + $this->context->smarty->assign(array('order' => (count($pIds) > 1 ? true : false), 'orderProducts' => $orderProducts, 'middlePosition_crossselling' => round(sizeof($orderProducts) / 2, 0), 'crossDisplayPrice' => Configuration::get('CROSSSELLING_DISPLAY_PRICE'))); } return $this->display(__FILE__, 'crossselling.tpl');