Jump to content

can't add hook to module in 1.5.6


Recommended Posts

Hi,

 

I have aproblem:

I've added a hook (cartList) to call the module addquantitybox within my theme, therefore I have added the line:

"'HOOK_CARTLIST' => Hook::exec('cartList'),"

to the file classes/controller/FrontController.php

In the php-File of the module I've added the function:

public function hookCartList($params)
{
     return $this->hookFooter($params);
}


and to the install function of the php-File of the module (it's only composed of one php file) I've added:

!$this->registerHook('cartList')

But nothing works...the product-list.tpl consists of the Hook-call via:

:{$HOOK_CARTLIST}:

If you take a look at the website.. you see only ::

Did it the same way with 1.5.5 it worked (okay it was basically an other module but should that concern!? No!

 

Thank, c.f.

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...