dename Posted August 2, 2014 Share Posted August 2, 2014 Hi So I did some changes to the theme code here and there (changed product.tpl, productlist.tpl , css and so on) and with every upgrade I need to put my modifications back there into code again and again. Is there a conventional / suggested way to do less work and preserve changes? Thanks! Link to comment Share on other sites More sharing options...
dioniz Posted August 2, 2014 Share Posted August 2, 2014 Copy default theme folder and rename it. Then in BO > Preferences > Themes select your new theme. Make changes to your new theme and you won't loose them after upgrade. 2 Link to comment Share on other sites More sharing options...
dename Posted August 2, 2014 Author Share Posted August 2, 2014 thanks Dioniz but I assume that after another upgrade, "my" theme will not get bug fixes / upgrades which come with default theme upgrade? And than I will need to merge default theme upgrades into "my" theme? Link to comment Share on other sites More sharing options...
vekia Posted August 2, 2014 Share Posted August 2, 2014 yes, unfortuantely your theme will not get all bugfixes etc. unfortunately you have to choice between upgrades/ or own template with modifications 1 Link to comment Share on other sites More sharing options...
dioniz Posted August 2, 2014 Share Posted August 2, 2014 That's true but there are only minor changes and i think it's easier to merge changes then make all your changes over and over again. Your decision 1 Link to comment Share on other sites More sharing options...
dename Posted August 2, 2014 Author Share Posted August 2, 2014 thanks I will try and is there a way to do something similar with changes to modules code which are outside of "themes" directory? copy module's directories and create own module from it? could work? how to accomplish? Link to comment Share on other sites More sharing options...
dioniz Posted August 2, 2014 Share Posted August 2, 2014 You can copy all modules .tpl files to yourtheme/modules and css files to yourtheme/css/modules just make sure you have same folder structure as in original module file. 1 Link to comment Share on other sites More sharing options...
dename Posted August 6, 2014 Author Share Posted August 6, 2014 so I copied the whole the default theme and of course got directories like /mytheme/modules/autoupgrade, .../bankwire, ... ... and so on 82 directories total only in modules is it how it supposed to be? Link to comment Share on other sites More sharing options...
dioniz Posted August 6, 2014 Share Posted August 6, 2014 Yes that's ok. You can override module tpl, css and js files in those folders 1 Link to comment Share on other sites More sharing options...
dename Posted December 26, 2014 Author Share Posted December 26, 2014 So I copied the whole default theme and of course got directories like /mytheme/modules/autoupgrade and so on ... and now standard modules are never getting updated nor getting "need to update" flag. I suppose that's because they are actually copies of "original" modules which are left in original theme. What is the "suggested" procedure now to get my modules updated? Link to comment Share on other sites More sharing options...
dioniz Posted December 26, 2014 Share Posted December 26, 2014 Modules should be updated anyway. You have only modules .tpl files in theme folder. 1 Link to comment Share on other sites More sharing options...
dename Posted December 27, 2014 Author Share Posted December 27, 2014 (edited) Modules should be updated anyway. so that means there is something wrong because the last tume my prestashop wanted to update modules was just before I created and switched to a custom theme. You have only modules .tpl files in theme folder. that seems true, for example homefeatured module in custom theme dir has homefeatured.tpl , tab.tpl and translations dir. so where to look to put updates back to work? Edited December 27, 2014 by dename (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts