Hello,
I am facing a problem at PS 1.7.2.2 where I wanted to use Javascript files for my module.
But the above hook does not include any JS file to the Products Page (but CSS files are added). But it works for the ProductList and other pages, where I use it.
Do I need to use another hook for including the JS files after JQuer Core has been included for the Product Page?
public function hookdisplayHeader( $params )
{
$this->context->controller->registerJavascript('modules-mymod1', 'modules/'.$this->name.'/views/js/myjs1.js', array('position' => 'bottom', 'priority' => 100));
$this->context->controller->registerJavascript('modules-mymod2', 'modules/'.$this->name.'/views/js/myJS.js', array('position' => 'bottom', 'priority' => 150));
}
Many Thanks in advance