Print Page | Close Window

Changes to PrdsalesReport.asp

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=1777
Printed Date: 07-October-2024 at 1:23am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Changes to PrdsalesReport.asp
Posted By: Dean
Subject: Changes to PrdsalesReport.asp
Date Posted: 29-June-2008 at 1:54pm
I've just upgraded from 2.76 and while the process was relatively painless there are some changes I have made to the code of PrdsalesReport.asp that I'd like to bring forward.  Comparing the code between 3.11 vs 2.76 shows a large number of changes.  I've run some tests using the old code and everything seems to work the way I'd like, but my tests haven't been exhaustive. 

Is there any harm or will other reports quit working if I just replace the 3.11 code with the modified 2.76 code?



Replies:
Posted By: Hamish
Date Posted: 29-June-2008 at 3:35pm
Hi Dean,
    As this is reporting I very much doubt there is any code in there which does DB updates - in which case it would be "safe".  However, if you do decide to do this  then I would advise only doing it as a short term stop-gap.  I personally would advise against it though. The danger in this approach is that you will end up, in a future release with code that will not work and a lot more pain trying to work out what changes you made and how to bring them across to the version that is even more different. I've had to go in and tidy up after others had done this in the past & it's not fun!

There are lots of products out there which help you to compare files to ease the migration of your changes. Personally I use GVIM, but that has a  pretty steep learning curve. I've heard good things about winmerge though. http://winmerge.org/
Of couse, documenting your changes always helps as well. Not sure if you've done this already (hopefully so), but if not then this is a great opportunity to do so.

Regards,
     Hamish
    



-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code



Posted By: Hamish
Date Posted: 29-June-2008 at 4:08pm
Hi, I just did a quick diff of the two versions. There are some extra chunks of code & some lines have minor changes such as formatting, but it shouldn't be difficult integrating any changes you made unles they were major.
I often achieve this with a "3 way diff" (well techically a two way diff & the new version of the file also open to take the migrated changes)- where I compare my changed version with the original version (V2.76) - which makes it easy to see what I changed and where & then copy the change lines over to the new version (V3.11) - not forgetting to back up the V3.11 version before I start of course :-)


-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code



Posted By: Dean
Date Posted: 30-June-2008 at 3:29pm
Hamish - You sir are awesome!  I downloaded Winmerge and it totally saved the day.  When I make changes I document every line, so moving what I did to the new version was easy using Winmerge.

Thanks again.


Posted By: Hamish
Date Posted: 30-June-2008 at 3:33pm
Hi Dean,
  No problem - Thank the folks at Winmerge - they did the hard bit :-)



-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code




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