[email protected] Posted May 9, 2012 Share Posted May 9, 2012 I'm very new to Prestashop. I've just downloaded and installed prestashop 1.4.7.2 yesterday and download a free theme which is for 1.4.2.5. I followed the instructions and installed it without any problem. But I'm quite puzzled at the way the theme installation. There are normally two folders under the downloaded theme, the first one is "theme". This is no problem to copy from this folder to my Prestashop installation. But there is another folder called "modules". When I copied it to my Prestashop installation, it seems there are a few folders have the same name. Does this mean my theme package change something in prestashop system modules? If that is the case, there could be a lot of problems: 1. Since I'm using the theme for 1.4.2.5, my modules will cause problem for 1.4.7.2 2. When I upgrade my Prestashop in the future, my modules will possibly changed so that my theme won't work any more. When I'm using other system like Drupal, Magento, the customized theme will be installed in its own folder so that the system files won't be affected at all. How does Prestashop deal with this? Thanks Link to comment Share on other sites More sharing options...
shacker Posted May 9, 2012 Share Posted May 9, 2012 yes, this overwrites the default modules. 1-some modules dont change, but if change, you lost the configuration of the theme modules 2-the best themes dont replace core modules, or have the modules folder inside the theme folder, so dont overwrite the original modules 1 Link to comment Share on other sites More sharing options...
[email protected] Posted May 9, 2012 Author Share Posted May 9, 2012 yes, this overwrites the default modules. 1-some modules dont change, but if change, you lost the configuration of the theme modules 2-the best themes dont replace core modules, or have the modules folder inside the theme folder, so dont overwrite the original modules Thank you for your reply. Understand what you mean. So the best theme designer should not change the core module, instead, they have to write their own module and only add the modules which are not core modules into their own modules folder inside the theme folder. Link to comment Share on other sites More sharing options...
shacker Posted May 9, 2012 Share Posted May 9, 2012 yes, this is the correct way. Link to comment Share on other sites More sharing options...
[email protected] Posted May 9, 2012 Author Share Posted May 9, 2012 But all the themes I download so far have a few modules inside modules folder, for example, blockcms, etc. Another questions is that which one has the priority if a module (with the same name) is both inside the modules folder and themes/customtheme/modules folder? Thanks Link to comment Share on other sites More sharing options...
Mike Kranzler Posted May 9, 2012 Share Posted May 9, 2012 Hi bagusflyer, The modules in the /themes folder should take priority. I hope this helps. -Mike Link to comment Share on other sites More sharing options...
shacker Posted May 9, 2012 Share Posted May 9, 2012 remember that the modules in theme folder dont override the php files Link to comment Share on other sites More sharing options...
[email protected] Posted May 10, 2012 Author Share Posted May 10, 2012 remember that the modules in theme folder dont override the php files I don't quite understand your point. You mean Mike Kranzler's answer is wrong? Please explain. Thanks Link to comment Share on other sites More sharing options...
[email protected] Posted May 10, 2012 Author Share Posted May 10, 2012 I found the modules which not exist in system modules folder won't take effect at all. But the modules exist in system modules folder for example blockcms will take effect. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted May 10, 2012 Share Posted May 10, 2012 I don't quite understand your point. You mean Mike Kranzler's answer is wrong? Please explain. Thanks No, shacker is just clarifying my answer to ensure you have all the necessary information to make the best decision on your site. All things being equal, I personally prefer to go with the theme's version of the module just to ensure full compatibility, but shacker is right; if your current module has any overrides, you should stick with that one. I hope this helps. -Mike Link to comment Share on other sites More sharing options...
[email protected] Posted May 11, 2012 Author Share Posted May 11, 2012 Thanks. But I found the modules which not exist in system modules folder won't take effect at all. For example, there is a module called "jbx_menu" in the theme I used. If I move this module into theme/mytheme/modules folder, then there is no effect at all. However for some modules which exist in system folder will override the one in system's modules folder, for example,there is a blockcms module. Link to comment Share on other sites More sharing options...
Recommended Posts