Jump to content

addJS at end of file (before closing body tag)


Michael247

Recommended Posts

Hi

 

Can somebody tell me how i do include a javascript file before the </body> tag?

 

I know I can insert manually into footer.tpl. But how does that work in a module?

 

I have tried to add to footer hook, but it is still displayed in the head section.

public function hookDisplayFooter()
{
  $this->context->controller->addJs($this->_path . 'js/jquery.dgmobnav.js');
}

Prestashop 1.6.x

Edited by Michael247 (see edit history)
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...