Jump to content

module hook


Recommended Posts

In order to hook a module there you are going to need to create your own hook and then edit your tpl file to add your custom hook. You will then need to transplant your module to your custom hook. If you don't really know your way around PS this might be challenging.

 

If you can explain in greater detail what you are trying to do I might be able to offer a different solution.

 

Marty Shue

Link to comment
Share on other sites

Yor module must be hooked on "productactions" hook, that means you must add this line on install function:

 

 

 OR !$this->registerHook('productActions')

 

and must have inside your module also this function:

 

 

public function hookProductActions($params)
{
global $smarty;

$smarty->assign('id_product', (int)(Tools::getValue('id_product')));
return ($this->display(__FILE__, 'your_module.tpl'));
}

 

You can also do not display any .tpl file, but just the smarty variables that you want to display on product.tpl file.

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...