简体   繁体   中英

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)
{
    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');
}

Solved, It was a bug described here https://github.com/PrestaShop/PrestaShop/issues/20712 and its solved on the Prestashop version 1.7.7.1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM