Rissinko Posted November 25, 2015 Share Posted November 25, 2015 Hi Can someone explain me how work child theme in prestashop ? I found some tutorials which said that I need copy whole theme ... But what If i need change only some files in my theme ? and want other core files of theme preserve for future updates ? Link to comment Share on other sites More sharing options...
Krystian Podemski Posted November 25, 2015 Share Posted November 25, 2015 There is not such a thing like "Child theme" in PrestaShop (yet because in 1.7 this will be way better to handle), you can only create special module to override specific files using "DisplayOverrideTemplate" hook Link to comment Share on other sites More sharing options...
Rissinko Posted November 26, 2015 Author Share Posted November 26, 2015 Thanks for your answer .. I going to read something about it. Link to comment Share on other sites More sharing options...
roo10 Posted November 27, 2015 Share Posted November 27, 2015 Many developers are selling single theme with multiple demos (or homepage layouts) in it. So, can I switch between those layouts from back-office using custom module which they might be providing OR they provide separate install-able zip for each layout which has to be installed from "Themes" page as usual? Please share here if anyone has good tutorial on how to develop such multi-layout themes as one theme. Link to comment Share on other sites More sharing options...
Krystian Podemski Posted December 3, 2015 Share Posted December 3, 2015 There is no tutorial how to do that, there are numbers of possibilites, I personally think that a couple of separate installations .zip is difficult to maintain, that's why I have a mechanism that manipulates module positions respectively after the change of theme style or simply include specific module .tpl files... but for sure - there is no such a thing like a tutorial for that kind of problems Link to comment Share on other sites More sharing options...
NemoPS Posted December 4, 2015 Share Posted December 4, 2015 I think they are simply using their own custom module for it, that switches the theme folder/css to accomodate different layouts Link to comment Share on other sites More sharing options...
Krystian Podemski Posted December 4, 2015 Share Posted December 4, 2015 I think they are simply using their own custom module for it, that switches the theme folder/css to accomodate different layouts As I wrote, dozen of possibilites, targeting specific .tpl from module, overriding .tpl dynamically from module, {if] inside template and {include} specific .tpl etc. etc. Link to comment Share on other sites More sharing options...
roo10 Posted February 2, 2016 Share Posted February 2, 2016 There is no tutorial how to do that, there are numbers of possibilites, I personally think that a couple of separate installations .zip is difficult to maintain, that's why I have a mechanism that manipulates module positions respectively after the change of theme style or simply include specific module .tpl files... but for sure - there is no such a thing like a tutorial for that kind of problems I would like to know more about your mechanism on developing multiple homepage layouts in single theme. How to enable/disable or change specific module's position while switching the layout? I would appreciate if you can provide as much info as possible on this subject. 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