Jump to content

hookActionProductCancel is not working


Recommended Posts

actually I'm developing a PaymentModule 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 its 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');
    }

Thanks in advance.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...