OndraP Posted April 11, 2013 Share Posted April 11, 2013 (edited) Hello, I am facing an issue with HOMEFEATURED module during my upgrade to 1.5.4. It doesn't use the css file associated with it. The homefeatured.css is not loaded in the <head></head> of the site. I tried to use original module which came with the installation package, I also tried my modified module, I followed the issue mentioned on http://forge.prestas...owse/PSCFV-6316 , I went through the possible solutions with my friend but everything without any success. Enclosed is the problematic module. I would be truly happy if anybody could give me suggestions to this issue. Thanks in advance! Ondrej homefeatured.zip Edited April 12, 2013 by vekia (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted April 11, 2013 Share Posted April 11, 2013 what prestashop version you use before you updated store to the 1.5.4 ? Link to comment Share on other sites More sharing options...
OndraP Posted April 11, 2013 Author Share Posted April 11, 2013 Thank you for your reaction, vekia. I upgraded from 1.5.0.17. I performed 1-click update. Link to comment Share on other sites More sharing options...
vekia Posted April 11, 2013 Share Posted April 11, 2013 can you check how your modules/homefeatured/homefeatured.php looks like? im interested in something like: public function hookHeader($params) { $this->context->controller->addCss($this->_path.'homefeatured.css', 'all'); } does it exist in your .php file? Link to comment Share on other sites More sharing options...
OndraP Posted April 11, 2013 Author Share Posted April 11, 2013 Yep, I also tried various combinations of this part of the code because I know the bracket problem mentioned in the bug ("$this->_path" should be in brackets) which I referred to in my 1st post. I even replaced this part of the code with the corresponding part from the most up-to-date module version. I did not even forget to adjust the part in function install ( ....|| !$this->registerHook('displayHeader') ). I am afraid that the problem is outside the php file My current php file is enclosed (one of the variations). homefeatured.php Link to comment Share on other sites More sharing options...
vekia Posted April 11, 2013 Share Posted April 11, 2013 hmm other css files from other modules works well? try to use: $this->context->controller->addCss($this->_path.'homefeatured.css', 'all'); in different hook, for example in hookdisplayhome Link to comment Share on other sites More sharing options...
OndraP Posted April 12, 2013 Author Share Posted April 12, 2013 This worked!! Thank you very much, vekia! Your rock Link to comment Share on other sites More sharing options...
vekia Posted April 12, 2013 Share Posted April 12, 2013 nice to hear that now everythink works like a charm :-) So i can mark this thread as solved. the solution is in #6 reagards Link to comment Share on other sites More sharing options...
Nekoid Posted October 31, 2013 Share Posted October 31, 2013 (edited) EDIT : Sorry, wrong topic Edited October 31, 2013 by Nekoid (see edit history) Link to comment Share on other sites More sharing options...
Essemme_Forniture Posted February 14, 2017 Share Posted February 14, 2017 I will bring me to this old post, Hi All first of all, i recently installed a new themebut if i turn on the module "homefeatured" and the cache, the man page doesn't work... no more, It appears but I can not interact with her. If i turn off the cache all works. The strange thing, is if i go in a product page , all works, even with cache, so just the homepage with homefeatured and cache. Milos, you know how 's possibile? 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