Jump to content
CartDesign

Overwriting system files

Recommended Posts

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

Share this post


Link to post
Share on other sites

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.

Edited by Jack_mcs

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×