Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Compare my shop with "Frozen"


René H4

Recommended Posts

My shop was setup in Februari last year (2018) with a pre-version of Frozen. 

We could not wait because my provider was moving from PHP 5.3 fast.

I have downloaded Frozen just now, and I am investigating the possibility to lift the site to Frozen.

My thoughts were to start camparing the directory structure with the files it holds.

Then, as a second step, comparing each file content.

Is this a good plan? Which tools would I need for that? (I am running Windows - not familiar with Unix/Linux)

Thanks, Rene

Link to comment
Share on other sites

You will need 2 tools,

1) For differencing and merging tool use this,  https://www.trythenbuy.co.uk/winmerge-differencing-and-merging-tool-for-windows-p-60.html

2) For simply looking for  class in all files use this, https://www.trythenbuy.co.uk/grepwin-regular-expression-search-and-replace-for-windows-p-64.html

 

You may also wish to consider simply installing the new shop in sub directory and importing db and setting it up in parrallel nd when working as required just switching. As allways backup and get second opinion and talk to your host.

 

Link to comment
Share on other sites

3 hours ago, René H4 said:

My shop was setup in Februari last year (2018) with a pre-version of Frozen. 

We could not wait because my provider was moving from PHP 5.3 fast.

I have downloaded Frozen just now, and I am investigating the possibility to lift the site to Frozen.

My thoughts were to start camparing the directory structure with the files it holds.

Then, as a second step, comparing each file content.

Is this a good plan? Which tools would I need for that? (I am running Windows - not familiar with Unix/Linux)

Thanks, Rene

A (potentially simpler) way, assuming you have your installation date and that date is not too far away from Frozen (April 2018) is;

  1. Find release date of Frozen
    https://github.com/gburton/Responsive-osCommerce/releases
    May 18 2018
  2. get your installation date.  
    Let us say it is February 01 2018
  3. Go to Commits
    https://github.com/gburton/Responsive-osCommerce/commits/master
  4. Page back until you get to (say) a few weeks prior to your install date
    Let's go back to Jan 1st.
    https://github.com/gburton/Responsive-osCommerce/commits/master?after=89e7a674bfc1e4e017ca3526274d47d6773ed05b+174
    You can here see that the first commit was "Custom Data Point - Special Offer" on Jan 31.
  5. See if that Commit exists in your shop
    NO:  make the change, move to the next newest Commit
    YES:  nothing for you to do, move to the next newest Commit

Repeat #5 until you get to "Merge pull request #681 from gburton/One_More_Time" on May 18.

That is fairly simple and *may* be less work and less confusing than comparing files.  But it's on a case by case basis of course.

Link to comment
Share on other sites

3 hours ago, René H4 said:

I have downloaded Frozen just now, and I am investigating the possibility to lift the site to Frozen.

You may also wish to consider if it's better to simply use the BS4 version, should be at same level as frozen or better! Other wise remember to go to frozen bug list and apply the fixes to your new Frozen BS3.

 

Link to comment
Share on other sites

4 hours ago, René H4 said:

Thanks guys, Winmerge I already have, this looks to me like a programm to compare two files. But also directories?

Yes, you can give WinMerge two directories and it will tell you files were added/deleted and which files are different. Then you can click on a "changed" file to get a line-by-line report of the differences.

Link to comment
Share on other sites

1 hour ago, René H4 said:

Going back to oktober 31st 2017 I already have changes. I am not sure what version I have..... 😞

 

It maybe worth contacting the dev who made it - as he might have had a "ready to go" shop based on slightly older code.  In this case..."installation date" is not going to help. 

A while back I used to do the same, have a number of shop installs tailored for particularly countries (TVA, GDPR, language etc and so on) so whenever someone from (eg) France wanted a shop...they got a ready made french build.  But that ready made build might not have been completely up to date.  

Link to comment
Share on other sites

Will do when the time is right, Gary..... 🙂

In the mean time: lots of files just show different lines exact like these, can I just insert the difference? ( class="h3")?

Frozen code:

  <h1 class="h3"><?php echo HEADING_TITLE; ?></h1>

My shops code:

<h1><?php echo HEADING_TITLE; ?></h1>

PS. the difference is nicely displayed with WinMerge.

Link to comment
Share on other sites

I take it that someone massively modified your copy of pre-Frozen, and thus it would be difficult to modify a stock Frozen copy to match? If it wasn't tremendously modified, you may want to consider starting with the current Frozen and (slightly) modifying it to do what you want. That would probably be a lot easier.

Link to comment
Share on other sites

  • 2 weeks later...
On 2/15/2019 at 11:04 AM, burt said:

A (potentially simpler) way, assuming you have your installation date and that date is not too far away from Frozen (April 2018) is;

  1. Find release date of Frozen
    https://github.com/gburton/Responsive-osCommerce/releases
    May 18 2018
  2. get your installation date.  
    Let us say it is February 01 2018
  3. Go to Commits
    https://github.com/gburton/Responsive-osCommerce/commits/master
  4. Page back until you get to (say) a few weeks prior to your install date
    Let's go back to Jan 1st.
    https://github.com/gburton/Responsive-osCommerce/commits/master?after=89e7a674bfc1e4e017ca3526274d47d6773ed05b+174
    You can here see that the first commit was "Custom Data Point - Special Offer" on Jan 31.
  5. See if that Commit exists in your shop
    NO:  make the change, move to the next newest Commit
    YES:  nothing for you to do, move to the next newest Commit

Repeat #5 until you get to "Merge pull request #681 from gburton/One_More_Time" on May 18.

That is fairly simple and *may* be less work and less confusing than comparing files.  But it's on a case by case basis of course.

And if you do not know what your installation date is...

Go to the commits page [ https://github.com/gburton/Responsive-osCommerce/commits/master ]. 

Scroll down until you see "Commits on May 18, 2018" (it may be on page 2 of the Commits).

Is that code in your shop:

YES:  you're on Frozen
NO:  go backwards to the next OLDER commit, is that code in your shop:

YES:  that's your install date
NO:  go backward to the next OLDER commit, is that code in your shop:

YES/NO ... carry on until you find the oldest code that IS in your shop.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...