CptSilver Posted September 3, 2014 Share Posted September 3, 2014 (edited) Hi,I'm trying to create a module to change a little the admin. I want to put a field in the features of the product. I followed the doc of prestashop on how to create a module and add an hook but nothing shows. public function install() { if (Shop::isFeatureActive()) { Shop::setContext(Shop::CONTEXT_ALL); } return parent::install() &&$this->registerHook('featureForm'); } public function hookDisplayFeatureForm($params){ return $this->display(__FILE__, 'featureform.tpl'); } and i have created the /views/templates/admin/featureform.tpl content of the tpl : <div>IM INSIDE</div> the hook is on the position menu, but nothing on the product/features page Someone has an idea? Thanks Edited September 3, 2014 by CptSilver (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now