// fix product comparison

This commit is contained in:
tDidierjean
2011-08-11 08:39:52 +00:00
parent a39d1e520a
commit 8ca035aa55
6 changed files with 25 additions and 22 deletions
+4 -4
View File
@@ -150,10 +150,10 @@ class CategoryControllerCore extends FrontController
'homeSize' => Image::getSize('home')
));
if (isset(self::$cookie->id_customer))
self::$smarty->assign('compareProducts', CompareProduct::getCustomerCompareProducts((int)self::$cookie->id_customer));
elseif (isset(self::$cookie->id_guest))
self::$smarty->assign('compareProducts', CompareProduct::getGuestCompareProducts((int)self::$cookie->id_guest));
if (isset($this->context->customer->id))
$this->context->smarty->assign('compareProducts', CompareProduct::getCustomerCompareProducts($this->context->customer->id));
elseif (isset($this->context->customer->id_guest))
$this->context->smarty->assign('compareProducts', CompareProduct::getGuestCompareProducts($this->context->customer->id_guest));
}
}