Print Page | Close Window

System for tracking code changes when upg

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Using ProductCart
Forum Description: Running your store with ProductCart
URL: https://forum.productcart.com/forum_posts.asp?TID=563
Printed Date: 28-September-2024 at 11:42pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: System for tracking code changes when upg
Posted By: edwardmills
Subject: System for tracking code changes when upg
Date Posted: 19-December-2006 at 4:35pm
Hi all

This will definitely reveal my newbie status. How are some of you more experienced programmers tracking and reloading the custom changes you make when you upgrade to a new version of PC?

EI wants me to upgrade to 3.04 before troubleshooting an issue and I realize "D'oh!" that I have not been keeping track of the changes I've been making to the code.

Just wondering if anyone has any time-saving tips I might use for the next round.

Thanks
ed



Replies:
Posted By: JoltDigital
Date Posted: 05-January-2007 at 4:40am

A couple of tips:

1. Place all mods in seperate include files and the include files in their own directory
2. Place comments in the include file describing what it is doing.
3. Place comments around your include file call in the ProductCart page you are modifying
4. Put a text document somewhere with the page name and line number in your old code. Be sure to keep this file updated as you do upgrades if the info changes
5. Document any changes you make to the database.



-------------
http://www.joltdigital.com/host_pc.asp - JoltDigital Inc.
1-888-785-5658
Premium ProductCart Hosting


Posted By: edwardmills
Date Posted: 08-January-2007 at 7:04pm
Thanks for the tips. Unfortunately you lost me at the part about Include Files and Calls. I can figure out how to cut and paste things around in the ASP files and stuff like that. But beyond that I'm out of my league. You're probably thinking about now that if that's the case I shouldn't be messing around in the code at all. And you're probably right! But alas, I can't leave well enough alone. So I've got a bunch of ASP files with changes and some notes that may or may not help me when I upgrade.

Seriously, though, is there a resource you can suggest that would guide me through the process of creating these includes and the calls to them?

Much appreciated.

ed


Posted By: watercrazed
Date Posted: 20-March-2007 at 2:44pm
There are several pieces of software the will do file compares based on the content. Off hand I don't remember specific names well enough to recommend one though.  One suggestion, get a clean install of the version you are now using and run some file compare software to find where your changes are, markup the pages in your version. as suggested by the earlier poster. However commenting the start of the change, the purpose, and date and commenting the end of the modified code right in the page being modified can work too.

P.S. ( a rough approximation) include files are used in the page you are working on, but stored seperately and then referenced with an include statement. the software then in essence pastes the include file into the page you are working on when it is accessed by the browser.




-------------
John

http://www.ultimatewatermassage.com - massagers, heat therapy, buckwheat pillows and more


Posted By: ProductCart
Date Posted: 20-March-2007 at 2:49pm
Many of us here at Early Impact use ExamDiff Pro. http://www.examdiff.com - www.examdiff.com

-------------
The ProductCart Team

Home of ProductCart http://www.productcart.com" rel="nofollow - shopping cart software



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net