name = 'hmodule'; $this->tab = 'front_office_features'; $this->version = '1.0'; $this->author = 'PrestaShop'; $this->need_instance = 0; $this->bootstrap = true; parent::__construct(); $this->displayName = $this->l('H Module on the homepage'); $this->description = $this->l('H Module on homepage tab.'); } public function install() { $this->_clearCache('*'); if (!parent::install() || !$this->registerHook('displayHomeTab') || !$this->registerHook('displayHomeTabContent') ) return false; return true; } public function uninstall() { return parent::uninstall(); } public function hookDisplayHomeTab($params) { return $this->display(__FILE__, 'tab.tpl', $this->getCacheId('hmodule-tab')); } public function hookDisplayHomeTabContent($params) { return $this->display(__FILE__, 'hmodule.tpl', $this->getCacheId()); } }