I'm developing a payment module for Prestashop 1.7.7 and I want to add some functionalities to the hookActionProductCancel. I try to add it to my main my_module.php file but it's not working.
public function hookActionProductCancel($params)
{
Tools::dieObject($params);
}
Also, I register the hook with:
public function install()
{
return parent::install()
&& $this->registerHook('header')
&& $this->registerHook('displayPaymentReturn')
&& $this->registerHook('actionProductCancel')
&& $this->registerHook('paymentOptions');
}
My Answer:
. $this->registerHook('actionProductCancel');_}_But when I cancel a product in the back office, the hookActionProductCancel function is not being called. What could be the issue here?
Rate this post
4 of 5 based on 1231 votesComments