CartDesign Posted February 12, 2019 Share Posted February 12, 2019 How does oscommerce overwriting system files, provided in the installation, look like? So that the changes continue to work, for example, after updating the entire e-commerce Link to comment Share on other sites More sharing options...
Jack_mcs Posted February 12, 2019 Share Posted February 12, 2019 I'm not sure I understand what you are asking but if you want to know if you can upload all of the files in a new version over an old version, the answer is, most likely, no, you can't do that. Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
CartDesign Posted February 12, 2019 Author Share Posted February 12, 2019 I want to change some functions in oscommerce but I don't want them to be overwritten when I update the oscommerce core. For example, I want to change the tep_image function. Link to comment Share on other sites More sharing options...
MrPhil Posted February 12, 2019 Share Posted February 12, 2019 A new installation of osC would overwrite any file that you've changed. It can be done, with care -- you need to keep track of all your customized files, save them to the side when overwriting the existing installation, and then manually put your custom changes back in. I don't know if we'll ever get back to the old way of incremental updates on new osC versions -- add-on-like updates that might preserve your changes. Do be sure to look at recent add-ons for osC 2.3.4.1BS (CE) -- the idea is to get away from changing "core" files. You might be able to configure your desired changes in the same manner, so that a new install won't wipe you out, but no promises. Speaking of add-ons, first look at existing add-ons to see if what you want has already been done! Contrast this with CMSs like Drupal, where all the customization is either stored in the database, or in an approved library of new PHP code, so typically you would never modify their PHP code yourself. Link to comment Share on other sites More sharing options...
CartDesign Posted February 13, 2019 Author Share Posted February 13, 2019 14 hours ago, MrPhil said: Do be sure to look at recent add-ons for osC 2.3.4.1BS (CE) -- the idea is to get away from changing "core" files. You might be able to configure your desired changes in the same manner, so that a new install won't wipe you out, but no promises. Speaking of add-ons, first look at existing add-ons to see if what you want has already been done! This is the best solution to keep changes away from the core. Are there any tutorials about creating add-ons? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.