Jump to content

Add Hook in admin 1.6


Recommended Posts

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()) {
        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?
Edited by CptSilver (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...