roykin/override/modules/blockmyaccount/blockmyaccount.php
2016-03-16 16:59:24 +01:00

31 lines
613 B
PHP

<?php
if (!defined('_CAN_LOAD_FILES_'))
exit;
class BlockMyAccountOverride extends BlockMyAccount
{
public function install()
{
if (!parent::install() || !$this->registerHook('displayTop'))
return false;
return true;
}
public function hookDisplayTop($params)
{
$this->smarty->assign(array(
'voucherAllowed' => CartRule::isFeatureActive(),
'returnAllowed' => (int)Configuration::get('PS_ORDER_RETURN')
));
return $this->display(__FILE__, $this->name.'.tpl');
}
public function hookDisplayFooter($params)
{
return $this->display(__FILE__, 'blockmyaccount-footer.tpl');
}
}