// fixed bug on module
This commit is contained in:
@@ -48,7 +48,7 @@ class MyAccountControllerCore extends FrontController
|
||||
'voucherAllowed' => (int)(Configuration::get('PS_VOUCHERS')),
|
||||
'returnAllowed' => (int)(Configuration::get('PS_ORDER_RETURN'))
|
||||
));
|
||||
$this->context->smarty->assign('HOOK_CUSTOMER_ACCOUNT', Hook::exec('customerAccount'));
|
||||
$this->context->smarty->assign('HOOK_CUSTOMER_ACCOUNT', Hook::exec('displayCustomerAccount'));
|
||||
|
||||
$this->setTemplate(_PS_THEME_DIR_.'my-account.tpl');
|
||||
parent::initContent();
|
||||
|
||||
@@ -64,7 +64,7 @@ class BlockMyAccount extends Module
|
||||
$this->smarty->assign(array(
|
||||
'voucherAllowed' => (int)Configuration::get('PS_VOUCHERS'),
|
||||
'returnAllowed' => (int)Configuration::get('PS_ORDER_RETURN'),
|
||||
'HOOK_BLOCK_MY_ACCOUNT' => Hook::exec('myAccountBlock'),
|
||||
'HOOK_BLOCK_MY_ACCOUNT' => Hook::exec('displayMyAccountBlock'),
|
||||
));
|
||||
return $this->display(__FILE__, $this->name.'.tpl');
|
||||
}
|
||||
|
||||
@@ -48,6 +48,7 @@ class FavoriteProducts extends Module
|
||||
{
|
||||
if (!parent::install()
|
||||
|| !$this->registerHook('displayMyAccountBlock')
|
||||
|| !$this->registerHook('displayCustomerAccount')
|
||||
|| !$this->registerHook('displayLeftColumnProduct')
|
||||
|| !$this->registerHook('displayHeader'))
|
||||
return false;
|
||||
|
||||
@@ -761,8 +761,6 @@ class ProductComments extends Module
|
||||
'nbComments' => (int)ProductComment::getCommentNumber((int)Tools::getValue('id_product'))
|
||||
));
|
||||
|
||||
|
||||
|
||||
return ($this->display(__FILE__, '/productcomments.tpl'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user