简体   繁体   English

Prestashop hookActionProductCancel 不起作用

[英]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.我正在为 Prestashop 1.7.7 开发一个支付模块,我想为 hookActionProductCancel 添加一些功能。 I try to add it to my main my_module.php file but it's not working.我尝试将它添加到我的主 my_module.php 文件中,但它不起作用。

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已解决,这是此处描述的错误https://github.com/PrestaShop/PrestaShop/issues/20712并在 Prestashop 版本 1.7.7.1 上解决

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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