Ricarditu Posted September 25, 2013 Share Posted September 25, 2013 Hi! I'm trying to update my Prestashop installation to the newest version but everytime I update it, I lose all the changes I've made to the css and tpl. I made all the changes in the files which are in themes/my template folder/modules/the module name and I used the same folder path as in the module folder in the root. I checked for these changed files and they're there, however, it won't assume them and will always load the original ones from the template. If there are custom ones directly in the theme folder, shouldn't they have priority? Or is there any option to enable this? I already searched for this and followed all the instructions: copy the files to the custom theme, use exactly the same path and names and it would be loaded first. Not working... Thanks in advance! Link to comment Share on other sites More sharing options...
tomerg3 Posted September 25, 2013 Share Posted September 25, 2013 Can you post some screenshots for us? Use one module as an example, include the path to the file & the filename you placed in the theme's folder. Also include a screenshot or a link to your site where the module is displayed. Make sure smarty cache is set to recompile the tpl files. Link to comment Share on other sites More sharing options...
Ricarditu Posted September 25, 2013 Author Share Posted September 25, 2013 Ok, for example blockcart. In the modules folder, the path is "/public_html/modules/blockcart/blockcart.css" and in my theme is "/public_html/themes/virtualleds-rexdot/modules/blockcart/blockcart.css". I used the same path. I migrated the website to a new server and here's where the update was made. So you can compare the correct version and the same version after updating: 1. Website with correct changes and features - http://174.132.166.124/~virtuall/loja/ 2. Website with update to 1.5.5.0. The new features I created are kept but the ones that were changed use the default values from the original files - http://75.98.171.250/~virtuall/ I changed the options to recompile the files. Thanks! Link to comment Share on other sites More sharing options...
tomerg3 Posted September 26, 2013 Share Posted September 26, 2013 Wrong path for css..... It should be in /themes/your_theme/css/modules/module_name Link to comment Share on other sites More sharing options...
Ricarditu Posted September 26, 2013 Author Share Posted September 26, 2013 And the same for tpl files? /themes/your_theme/tpl/modules/module_name? Thanks! Link to comment Share on other sites More sharing options...
tomerg3 Posted September 26, 2013 Share Posted September 26, 2013 No, only css and js, you had the right folder for .tpl files. Link to comment Share on other sites More sharing options...
Ricarditu Posted September 26, 2013 Author Share Posted September 26, 2013 The .tpl files are in the theme root, shall I paste the modules custom .tpl files in there as well? Link to comment Share on other sites More sharing options...
tomerg3 Posted September 26, 2013 Share Posted September 26, 2013 tpl files go in /themes/theme_name/modules/module_name Link to comment Share on other sites More sharing options...
Ricarditu Posted September 26, 2013 Author Share Posted September 26, 2013 Of course... Silly of me! That's where they are... Thanks! Link to comment Share on other sites More sharing options...
Ricarditu Posted September 26, 2013 Author Share Posted September 26, 2013 All good now! Thank you for your help! Link to comment Share on other sites More sharing options...
Recommended Posts