John Davidson

php - Prestashop hookActionProductCancel is not working

0 comments
Message:


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

5 of 5 based on 3457 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us