title: prestashop custom module hook with id_product
body: <p>I'm developing a custom module for add a button "notify me" when product is out of stock.
  this button should simply call an action and write in a custom table (created by this module)</p>
  
  <p>my problem is pass the id_product to the hook</p>
  
  <pre><code>public function install() {
  
      $sql= "CREATE TABLE IF NOT EXISTS `"._DB_PREFIX_."fasys_notify`(
      `id` INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY ,
      `title` VARCHAR(256) NOT NULL )";
  
  
      if (parent::install() == false ||  
              !$this-&gt;registerHook('notify') ||
              !$this-&gt;registerHook('displayHeader') ||
              !Db::getInstance()-&gt;Execute($sql)
          )
          return false;
          return true;
  }
  
  
  
  public function hookFasysNotify($params) {
  
      //NEED ID_PRODUCT HERE
  
      //var_dump(Tools::getValue('id_product')); //doesen't works
  
      $html ='&lt;button type="button" class="notifyme_btn btn btn-info btn-default"&gt;Notify Me&lt;/button&gt;';
  
      return $html ;  
  
  }
  </code></pre>
  
  <p>in my .tpl file i have added this:  </p>
  
  <pre><code>{hook h='fasysNotify' product=$product}
  </code></pre>
  
  <p>how can I retrieve the product ?</p>