Zwirko Posted February 24, 2012 Share Posted February 24, 2012 Hi I've merged all Prestashop 1.4 stylesheets that my store uses into a single 16K file - it's a very minimalist design. Having done this I was wondering if the various php files in the modules folder (and elsewhere) that have references to css files that no longer exist presents a problem for the PS backend? Is it okay to leave things like: "Tools::addCSS(($this->_path).'blockcart.css', 'all');" lying around in various files that point to non-existent files? Or should I somehow get rid of them? Thanks for any advice. Link to comment Share on other sites More sharing options...
phrasespot Posted February 28, 2012 Share Posted February 28, 2012 I've merged all Prestashop 1.4 stylesheets that my store uses into a single 16K file - it's a very minimalist design. This (and more) is exactly what Back Office > Preferences > Performance > CCC (Combine, Compress and Cache) > Smart cache for CSS > Use CCC for CSS. w/o needing to modify any core files. Having done this I was wondering if the various php files in the modules folder (and elsewhere) that have references to css files that no longer exist presents a problem for the PS backend? Is it okay to leave things like: "Tools::addCSS(($this->_path).'blockcart.css', 'all');" lying around in various files that point to non-existent files? Or should I somehow get rid of them? If the file included with Tools::addCSS() is not found it will not be added; no bad side-effects. Still en extra method call though. However there are many of those and if you modify every single file they appear, you will have fun when you next try to update to a later version. 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