Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2012
    Posts
    10
    Plugin Contributions
    0

    help question Fix existing or rebuild?

    I'm working as a webdeveloper in a firm that has an existing zen-cart store which I have no idea how old is. The first thing i did was to redesign their store and upgrade it to the latest zen-car (at that time 1.3.9h) but after a while I found that the override system is completely f* and the template they use is very difficult to alter the way I want it.

    Now I am at a point where i'm torn between whether to do a clean install and start from scratch (using the existing DB), or to just install a new template and customize, or build one myself. The problem however is that the people that have been working on this shop from the beginning are not developers and they have not documented a single step of previous customization, overrides, mod installs etc. so I have really no clue to what they've done in the past.

    Anyone been in this situation before? What did you do, or what do you recommend?

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Started as webdeveloper for company with old zen-cart. Fix existing or rebuild?

    It depends to some degree on how many mods they/you have installed. Many mods haven't been updated to work with version 1.5 yet (if they ever will be), so you'll need to see what mods you can't live without and make your decision accordingly.

    In your position, I'm inclined to start over. Most Zenners, IMO, install too many mods, so this would be a good opportunity to clean up that part of the installation. Also, any site which has used the same template for a long time is probably dated and in need of a face-lift anyway.

  3. #3
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Started as webdeveloper for company with old zen-cart. Fix existing or rebuild?

    We treat every new client as though this were the situation, even when they're able to provide a list of what they've done, as we've yet to see a list that was complete.

    We go back to basics and do a complete file comparison (we're huge fans of "Beyond Compare") between the site and the version that it purports to be to identify all changes. Then we look for clues as to whether they're part of an add-on mod to separate those from custom changes.

    We reverse engineer custom changes to work out what they were trying to do, and whether they are actually doing that. When a site's been tweaked by non-professionals or their SEO experts, it's quite normal to discover a ton of aborted changes that have no effect, so we strip those out.

    By the time we've finished we have a much smaller collection of files that have been changed from Zen Cart's core code and a list of add-on mods.

    Then we check whether the mods have versions compatible with the latest version of Zen Cart, and if not assess whether that's a problem. Occasionally we have to upgrade a mod ourselves to avoid it blocking the upgrade, but that's extra cost for the client so we try to avoid it.

    Next step is to compare the files containing custom changes that haven't been thrown away to the current version of Zen Cart. If a file has changed in core Zen Cart it's usually best to re-apply the changes to new version of the file as that way the file's current version control stamping is captured (and of course we document those changes and their purpose).

    Templates are generally much easier to work with, even when completely botched, than functional changes, as they can generally be segregated using the override system.

    When we've finished, we merge the files from the latest version of the add-ons, with those for custom changes and then overlay the result onto a clean install of the latest version of Zen Cart and start testing.

    It's really not a lot different from doing a normal upgrade, but unless you keep a clear focus on the goal of each step, it is very easy to get lost.

    The biggest challenge is usually working out what the hell odds and ends of changed code are meant to do and what to do about them. It gets easier over time and as you get a better feel for and knowledge of Zen Cart (we've been doing this for six years and so have the advantage of knowing it pretty well) and I suspect that this will prove to be the most challenging aspect of the work for you.

    But good luck and remember that this forum is here to help you.
    Last edited by kuroi; 6 Feb 2012 at 12:52 PM.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  4. #4
    Join Date
    Feb 2012
    Posts
    10
    Plugin Contributions
    0

    Default Re: Started as webdeveloper for company with old zen-cart. Fix existing or rebuild?

    Thank you for constructive answers. I slapped my superiors head around with a large trout and made him find out what he could about alterations to the core functionality and it was good news. As far as he could remember, and discover in his old e-mails, there were just a few custom-mods, done by professionals, from which we still have free support. The mods I have installed after I started working here I have well documented so they are easy to reinstall.

    We then agreed that I should start over from scratch and rebuild the whole thing so we can strip out all the unnecessary things. Another question arised immediately and that is what to export from the existing DB, and what to leave "stock" apart from the most obvious things as order/admin/customer data and products.

  5. #5
    Join Date
    Jul 2010
    Location
    Velsen-Zuid
    Posts
    33
    Plugin Contributions
    2

    Default Re: Started as webdeveloper for company with old zen-cart. Fix existing or rebuild?

    If you read the 'comments' of the various Dbase parts thorougly, you will be able to just insert the bits and pieces you want/need from your 'old' Dbase to your new Dbase.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Started as webdeveloper for company with old zen-cart. Fix existing or rebuild?

    Quote Originally Posted by Digiwinkel View Post
    If you read the 'comments' of the various Dbase parts thorougly, you will be able to just insert the bits and pieces you want/need from your 'old' Dbase to your new Dbase.
    A much more correct statement is this:

    For your upgrade, you simply use the same database as you have today. For your staging area, simply make a copy of the entire database, and then run zc_install to upgrade that database to the new version's structure. This is all documented in the Detailed Section of the upgrade documentation. www.zen-cart.com/upgrade

    TO BE CLEAR: DO NOT HACK OUT SELECTED SECTIONS OF DATABASE CONTENT. TAKE THE ENTIRE DATABASE. The only exception to this would be if you are an highly experienced database engineer and know EXACTLY what you're doing with EVERY one of the almost 100 database tables and ALL of the inter-connected relationships between every one of them.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Feb 2012
    Posts
    10
    Plugin Contributions
    0

    Default Re: Fix existing or rebuild?

    Thank you for the replies. We settled on doing a fresh install of 1.3.9h (not upgrading to 1.50 just yet) using the existing stores DB and found a simple template as a starting point of building a new one.

 

 

Similar Threads

  1. Add downloads to existing products and update existing orders
    By abprice in forum Managing Customers and Orders
    Replies: 2
    Last Post: 9 Dec 2011, 01:58 AM
  2. Need to rebuild store
    By troyJensen in forum General Questions
    Replies: 1
    Last Post: 24 May 2011, 03:12 AM
  3. Rebuild Thumbnails
    By webman1 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 18 Jul 2009, 02:51 PM
  4. Need to rebuild my site?
    By bugstumper in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Aug 2007, 08:32 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR