// fix little issue on Favorites Product module

This commit is contained in:
aFolletete
2012-05-19 12:53:33 +00:00
parent c6d7fe06a0
commit 0ac5fe3dd2
2 changed files with 6 additions and 11 deletions
@@ -78,19 +78,14 @@ class FavoriteProducts extends Module
public function hookDisplayCustomerAccount($params)
{
include_once(dirname(__FILE__).'/FavoriteProduct.php');
$products = FavoriteProduct::getFavoriteProducts($this->context->customer->id, $this->context->language->id);
$this->smarty->assign(array(
'favorite_products' => $products,
));
$this->smarty->assign('in_footer', false);
return $this->display(__FILE__, 'my-account.tpl');
}
public function hookDisplayMyAccountBlock($params)
{
return $this->hookDisplayCustomerAccount($params);
$this->smarty->assign('in_footer', true);
return $this->display(__FILE__, 'my-account.tpl');
}
public function hookDisplayLeftColumnProduct($params)
@@ -25,8 +25,8 @@
*}
<li class="favorite products">
<a href="{$link->getModuleLink('favoriteproducts', 'account')|escape:'htmlall':'UTF-8'}" title="{l s='My favorite products' mod='favorite products'}">
<img src="{$module_template_dir}img/favorites.png" class="icon" />
{l s='My favorite products' mod='favorite products'}
<a href="{$link->getModuleLink('favoriteproducts', 'account')|escape:'htmlall':'UTF-8'}" title="{l s='My favorite products' mod='favoriteproducts'}">
{if !$in_footer}<img src="{$module_template_dir}img/favorites.png" class="icon" />{/if}
{l s='My favorite products' mod='favoriteproducts'}
</a>
</li>