JoelWebsites Posted April 11, 2015 Share Posted April 11, 2015 (edited) My custom module Slider works only on my front module controller pages for example...see the screenshort.. ie http://localhost/prestashop9/index.php?fc=module&module=mymodule&controller=display Why dont my slider module work on other pages like the index page? I have used the displaytop hook.This is my second slider module but I have been experiencing the same issue. I have used the below functions...Can anyone tell me what have I done wrong..Is there a correct way to get this done? public function hookHeader() { $this->context->controller->addCSS($this->_path.'/css/style.min.css'); $this->context->controller->addCSS($this->_path.'/css/style.css'); } public function hookDisplayTop() { $dir = $this->_path; $path = "$dir/views/img/"; $this->context->smarty->assign(array( 'path' => $path, )); $path1 = $this->_path.'/views/templates'; return $this->display(__FILE__, 'awesomeslider.tpl'); } Edited April 11, 2015 by JoelWebsites (see edit history) Link to comment Share on other sites More sharing options...
selectshop.at Posted April 11, 2015 Share Posted April 11, 2015 (edited) For which PS-version (1.6.0.??) are you having the problem ? Edited April 11, 2015 by selectshop.at (see edit history) Link to comment Share on other sites More sharing options...
JoelWebsites Posted April 11, 2015 Author Share Posted April 11, 2015 I use prestashop 1.6.0.8 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now