[英]Prestashop hookActionProductCancel is not working
我正在為 Prestashop 1.7.7 開發一個支付模塊,我想為 hookActionProductCancel 添加一些功能。 我嘗試將它添加到我的主 my_module.php 文件中,但它不起作用。
public function hookActionProductCancel($params)
{
Tools::dieObject($params);
}
另外,我用以下方式注冊了鈎子:
public function install()
{
return parent::install()
&& $this->registerHook('header')
&& $this->registerHook('displayPaymentReturn')
&& $this->registerHook('actionProductCancel')
&& $this->registerHook('paymentOptions');
}
已解決,這是此處描述的錯誤https://github.com/PrestaShop/PrestaShop/issues/20712並在 Prestashop 版本 1.7.7.1 上解決
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.