Dolke Posted July 24, 2013 Share Posted July 24, 2013 (edited) Hi to all, I have one question that I believe might be interesting for all people out there who did even a slightly modification/customization of their Prestashop websites, and I also belive there is no man or woman, using prestashop, who didn't do a color or image change at least My website is located at www.dekom.co.rs As you can see by the naked eye some of the CSS files has been changed but there are also some smaller CSS/HTML changes made to other core files of the Prestashop and to some native and non native modules as well. My current version of the Prestashop is the latest so 1.5.4.1 As all other software Prestashop is not immune to bugs, and I personally found quite a lot of them as well as some non logical solutions especially in the back office. I have one 3rd party module installed called 1-click Upgrade which I was using to upgrade to 1.5.4.1 before I did any changes to the core files, theme files etc. This same module is reporting that atm I made quite a lot changes to the core files. Please see the screenshot below: My question to all admins and Prestashop developers here is with the new PS version coming soon (no matter if it is some minor update or major version release) is, will upgrade overwrite these changes and if it will, how can I upgrade the Prestashop and then restore these changes back as they were? Many of these changes took many hours of work and patience and help people from these forums, so It must be some method to upgrade the Prestashop to its newest version and preserve these customization/modifications. Edited July 24, 2013 by Dolke (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted July 24, 2013 Share Posted July 24, 2013 answer is: yes, if you changed core and default theme then you will lost all changes. the best way to avoid this is creating overrides and new template (you have to change "default" name to "mydefault" for example) Link to comment Share on other sites More sharing options...
Dolke Posted July 24, 2013 Author Share Posted July 24, 2013 (edited) Vekia thanks again. Well saving the template to new one will do the trick when it comes to template modification. What if some changes, like in my case, were done to some core PS files that are not template related? Edited July 24, 2013 by Dolke (see edit history) Link to comment Share on other sites More sharing options...
Jiten rash (away) Posted July 24, 2013 Share Posted July 24, 2013 vekia is a good Listener.. Link to comment Share on other sites More sharing options...
Dolke Posted July 24, 2013 Author Share Posted July 24, 2013 He really is, but I would like other people to participate more... I believe as I said that many of the users can relate to this. Link to comment Share on other sites More sharing options...
El Patron Posted July 24, 2013 Share Posted July 24, 2013 before upgrading an important piece of pre-work is to identify changes made to ps. what I do is use a program like beyond compare to find the differences between a vanilla and the shops files. I do not rely on the back office-->identified differences once I have the changes, I can then determine 1) if I need to carry them forward 2) if changes will retrofit the same and if not how they will be applied You should first build a running test system of your production shop that you can test not only the upgrade but the applying of any changes you might have made Link to comment Share on other sites More sharing options...
vekia Posted July 24, 2013 Share Posted July 24, 2013 when you changed the core - its better to create override - do not change original files located in the /classes/ or /controllers/ dir this is the best way to avoid changes after update Link to comment Share on other sites More sharing options...
Dolke Posted July 24, 2013 Author Share Posted July 24, 2013 (edited) El Patron, thank you for this useful information. This is something that I will be doing later on when new (and I believe improved) versions of the prestashop sees the light. For now I just want to gather as much as useful info and suggestions from you experienced users. Are you mentioned this software? http://www.scooterso...e.com/index.php Vekia, what do you mean by overrides? Well most of the changes are not made there I believe, but I don't really keep track (except topics that I started here on the forums) of what I have changed and where... Edited July 24, 2013 by Dolke (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted July 24, 2013 Share Posted July 24, 2013 El Patron, thank you for this usful information. This is something that I will be doing later on when new (and I believe improved) versions of the prestashop sees the light. For now I just want to gather as much as useful info and suggestions from you experienced users. Are you mentioned this software? http://www.scooterso...e.com/index.php Vekia, what do you mean by overrides? Well most of the changes are not made there I believe, but I don't really keep track (except topics that I started here on the forums) of what I have changed and where... yes, that is pretty decent comparison program... as for overrides...I used to think they were a good idea...and they are if there is no hook...if there is a hook avoid overrides when possible....that is my honest opinion Link to comment Share on other sites More sharing options...
Dolke Posted July 24, 2013 Author Share Posted July 24, 2013 compare to find the differences between a vanilla and the shops files. If I may ask, and forgive my ignorance, what is the meaning of vanilla here? Link to comment Share on other sites More sharing options...
vekia Posted July 24, 2013 Share Posted July 24, 2013 Dolke, take a look here: http://doc.prestasho...dingacontroller + http://doc.prestashop.com/display/PS15/Overriding+default+behaviors Link to comment Share on other sites More sharing options...
Dolke Posted July 24, 2013 Author Share Posted July 24, 2013 ty V. Link to comment Share on other sites More sharing options...
El Patron Posted July 24, 2013 Share Posted July 24, 2013 If I may ask, and forgive my ignorance, what is the meaning of vanilla here? sorry...vanilla means a fresh download of your current version of PrestaShop, un-modified. you can find all the versions here... http://code.google.com/p/prestashop/downloads/list my advice, drop modifications that you just can do without...only keep the ones you really have to have. When you move the code to the new release, mark it with a tag you can easily search for later. The less modification you make the easier it will be to upgrade...I'm hearing rumors that 1.6 is going to rock... and remember...back up back up back up... Link to comment Share on other sites More sharing options...
El Patron Posted July 24, 2013 Share Posted July 24, 2013 Dolke, take a look here: http://doc.prestasho...dingacontroller + http://doc.prestasho...fault+behaviors ps is certainly improving the override structure...it's much better than in 1.4...much!....I'm just a little afraid (in a module form) to use typical class override, most because it may already exist... Link to comment Share on other sites More sharing options...
Recommended Posts