// changes to header and footer
This commit is contained in:
@@ -38,9 +38,9 @@ if (!Context::getContext()->cookie->isLogged())
|
||||
|
||||
include(dirname(__FILE__).'/../../header.php');
|
||||
|
||||
if ((int)Context::getContext()->cookie->id_customer)
|
||||
if ((int)Context::getContext()->customer->id)
|
||||
{
|
||||
$smarty->assign('favoriteProducts', FavoriteProduct::getFavoriteProducts((int)Context::getContext()->cookie->id_customer, (int)Context::getContext()->cookie->id_lang));
|
||||
$smarty->assign('favoriteProducts', FavoriteProduct::getFavoriteProducts((int)Context::getContext()->customer->id, (int)Context::getContext()->language->id));
|
||||
|
||||
echo Module::display(dirname(__FILE__).'/favoriteproducts.php', 'favoriteproducts-account.tpl');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user