John Davidson

php - Prestashop hookActionProductCancel is not working


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)

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

3 of 5 based on 8957 votes


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