Hello,
I tried to create a new Hook in PS 1.5.0.13 following next steps to add something only after the manufacturer page.
1./ create in ps_hook
INSERT INTO `ps_hook` (
`id_hook` ,
`name` ,
`title` ,
`description` ,
`position`
)
VALUES (
NULL , 'afterManufacturer', 'after Manufacturer', NULL , '1'
);
2./ overide class FrontController
class FrontController extends FrontControllerCore {
public function initContent()
{
$this->process();
$this->context->smarty->assign(array(
'HOOK_HEADER' => Hook::exec('displayHeader'),
'HOOK_TOP' => Hook::exec('displayTop'),
'HOOK_LEFT_COLUMN' => ($this->display_column_left ? Hook::exec('displayLeftColumn') : ''),
'HOOK_RIGHT_COLUMN' => ($this->display_column_right ? Hook::exec('displayRightColumn', array('cart' => $this->context->cart)) : ''),
'HOOK_AFTERMANUFACTURER' => Module::hookExec('aftermanufacturer'),
));
}
}
but I do not see the hook in the positions list in BO. What's wrong ?
Thanks...