Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

What is the best way to manage contributions


Recommended Posts

hello everyone,


new to oscommerce, learning everyday. Would like to ask a basic question on how to manage contributions that affect similar files.


Now most of the contribustions ask you to overwrite existing files and upload the contribution file. But in case I have applied another contribution that actually changed the same file before, I will end up with fixing one thing and beaking other.


How do people at oscommerce manage this distributed nature of contribution development.


Is there way to manage this



Suggestions are welcome, I have limited html knowlwedge and can follow instructions quite well

Link to comment
Share on other sites

Unfortunately, there is no way to do this other than you just keeping track of what was changed. Only use the replace files method on a clean shop. From then on, you can still do that but only if the files have not been altered. If you are unsure, you will need to edit the files to make the changes.



Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

there are many applications out there, whick can keep track of the changes in the programs, and evel allow you to go back to a certain version of the change.

of course, if you have modified the database, you need to know ho w to go in there and remove the change related to a particular version.

Link to comment
Share on other sites

I have added a good few mods and contributions.

I ALWAYS make the changes to my existing files, and don't overwrite my files.

When installing a contribution, I always use the following method.


//New contribution name starts here =>

code code


//New contribution name ends here =>


I also have a readme file server side and on my pc, that I add to everytime I change files and include info like:

2005/04/10 - includes/languages/english/order.php -changed lines 23-27, 146-148


This seems like a pain, but I recently needed help, and was asked to paste the code in the forum. Within minutes I had an answer, and the comment from the person helping me " If your code wasn't marked properly with all the changes, it would have taken me hours, so well done on Good File House Keeping"


If there is software that can help me do the above, I'd buy it for sure.

Link to comment
Share on other sites

Thanks alot for the help,


I understand what you are saying and how it works, I have problem in terms of finding out whats new in the code, its difficult to know the difference in the code unless you have a tool that compares the files and tells you the contributions is different in these areas.


I wish there is more thinking on how contributions are made and managed. What I mean here is that so many people are doing things and it can be really difficult to track things.


I wish there is a tool that lets you manage this.


Also would be nice if the contribustion author posts the changes in the file that is needed along with the complete package.


May be I am asking too much, but I do feel if there is some orderly approach to contributions they can go a long way in making everyone's life much easier.


I have taken a extreme step of doing my own version control say after every major change or contribution install, i take a complete back up of the files and database.


Let see if I can sustain this methodology. If I can may be someone can write a small contribution, which backsup all the files and database whenever you need with a single click and restore them if need.


I would do this but unfortunately my PHP skills are very much limited.

Link to comment
Share on other sites



I have no problem with it, all the contribition i have installed so far (like only 5 so far - i'm relative new to osC) where installed by merging the contrib file with the excisting one, it was easy to do, cause all the contrib i used had what mwdesign described:


// Bof contribname

code code


// Eof contribname




<!-- Bof contribname -->

code code


<!-- Eof contribname -->


Its then relative easy to see where the modifications where.

To backup my excisting site - I just use my ftp-upload program - and download my whole shop this way. It takes a while yes - but i have my backup. If you dont use the build in utility from osC to upload you need a program - that can easely download to - so backup created. And in the manager you can backup your database easely by a single click (Tools - Backup). Then i also have a clean osC version backup on my harddisk incase i need a clean file to work from. (ex. to look lines up - or original code)


And then, of course, there are many different people making contrib's, and there is a standard, and I think most stick to it. But its inevitable for contrib's to be different if that many different people make it.





Even in this dark place, yes, I am afraid of my own shadow.




Contributions | KnowledgeBase | osCommerce 2.2 pdf

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...