// Assigned compared products to smarty
This commit is contained in:
@@ -304,6 +304,10 @@ class FrontControllerCore extends Controller
|
||||
foreach ($languages as $lang)
|
||||
$meta_language[] = $lang['iso_code'];
|
||||
|
||||
$compared_products = array();
|
||||
if (Configuration::get('PS_COMPARATOR_MAX_ITEM') && isset($this->context->cookie->id_compare))
|
||||
$compared_products = CompareProduct::getCompareProducts($this->context->cookie->id_compare);
|
||||
|
||||
$this->context->smarty->assign(array(
|
||||
// Usefull for layout.tpl
|
||||
'mobile_device' => $this->context->getMobileDevice(),
|
||||
@@ -342,6 +346,7 @@ class FrontControllerCore extends Controller
|
||||
'PS_STOCK_MANAGEMENT' => Configuration::get('PS_STOCK_MANAGEMENT'),
|
||||
'quick_view' => Configuration::get('PS_QUICK_VIEW'),
|
||||
'shop_phone' => Configuration::get('PS_SHOP_PHONE'),
|
||||
'compared_products' => is_array($compared_products) ? $compared_products : array()
|
||||
));
|
||||
|
||||
// Add the tpl files directory for mobile
|
||||
|
||||
Reference in New Issue
Block a user