// fix little issue on Favorites Product module
This commit is contained in:
@@ -78,19 +78,14 @@ class FavoriteProducts extends Module
|
|||||||
|
|
||||||
public function hookDisplayCustomerAccount($params)
|
public function hookDisplayCustomerAccount($params)
|
||||||
{
|
{
|
||||||
include_once(dirname(__FILE__).'/FavoriteProduct.php');
|
$this->smarty->assign('in_footer', false);
|
||||||
|
|
||||||
$products = FavoriteProduct::getFavoriteProducts($this->context->customer->id, $this->context->language->id);
|
|
||||||
$this->smarty->assign(array(
|
|
||||||
'favorite_products' => $products,
|
|
||||||
));
|
|
||||||
|
|
||||||
return $this->display(__FILE__, 'my-account.tpl');
|
return $this->display(__FILE__, 'my-account.tpl');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function hookDisplayMyAccountBlock($params)
|
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)
|
public function hookDisplayLeftColumnProduct($params)
|
||||||
|
|||||||
@@ -25,8 +25,8 @@
|
|||||||
*}
|
*}
|
||||||
|
|
||||||
<li class="favorite products">
|
<li class="favorite products">
|
||||||
<a href="{$link->getModuleLink('favoriteproducts', 'account')|escape:'htmlall':'UTF-8'}" title="{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'}">
|
||||||
<img src="{$module_template_dir}img/favorites.png" class="icon" />
|
{if !$in_footer}<img src="{$module_template_dir}img/favorites.png" class="icon" />{/if}
|
||||||
{l s='My favorite products' mod='favorite products'}
|
{l s='My favorite products' mod='favoriteproducts'}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
Reference in New Issue
Block a user