soee Posted April 4, 2017 Share Posted April 4, 2017 Hi all, i have PrestaShop configured to work with Multistore. I have also 2 different themes that shops should use. One template is a small modification from the first one. I can switch themes for shops and asset files like CSS or JS loads fine for each of them but there is huge problem with modules templates: Lets say first theme is named Primary and second one Secondary. Primary is set as a theme for default shop in the group while Secondary is used for other shops. Primary theme seems to work fine with default shop. Now on others shops in the group Secondary theme is used but modules templates are loaded from Primary theme here and i can't find the reason of this. So links to assets in Secondary them looks like: domain.com/themes/Secondary/assets/css/theme.css but comments that wraps the modules (hooks) templates used inside shows: domain.com/themes/Primary/modules/ps_mainmenu/ps_mainmenu.tpl so as you can see, it reads if from Primary template - not the Secondary that is used for shop. Any ideas what is going on? It happens on PrestaShop 1.7.0 and 1.7.1 (we did not tested lower version). Link to comment Share on other sites More sharing options...
soee Posted April 5, 2017 Author Share Posted April 5, 2017 (edited) It seems like the problem is somewhere in the cached content. If for Templates Compilation option Force compilation is selected, than the problem is gone. So it might be that the same cache identifier/path is used for some templates no matter from what theme it comes. It needs some more investigation. Edited April 5, 2017 by soee (see edit history) Link to comment Share on other sites More sharing options...
soee Posted April 5, 2017 Author Share Posted April 5, 2017 This topic might be also the same problem (and stays unresolved) so i link it here to close both if they get resolved: https://www.prestashop.com/forums/topic/558385-mix-of-templates/ 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