Results 1 to 10 of 10
  1. #1
    Join Date
    Apr 2011
    Posts
    511
    Plugin Contributions
    0

    Default Best way to upgrade !

    I have an old site in needs of serious update.

    It is on ZC 1.5.6 with server running PhP 7.3

    I tried (well took a glimpse) to go the winmerge option but so much as change from ZC 1.5.6 and ZC 2.1.

    I have been looking at the changes on the old site and started to migrate them to the new ZC 2.1 but it is honestly a nightmare.

    To anyone who did such update, what would you recommend?

    Should I just scrap the old site and build a new one?

    I know upgrading the database should not be an issue as Zen cart is pretty efficient for this part. It is the whole template and SEO changes and tiny other things that have me concern as I don t want the site to break or end up with missing pages and such.

    Any tips on how to do an easy upgrade?

    Thank you

  2. #2
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,617
    Plugin Contributions
    19

    Default Re: Best way to upgrade !

    Your best option is to start fresh and figure out which template to start with (hint: ZCA Bootstrap). Whatever template you're using on 1.5.6 is most likely outdated and needs A LOT of rework to run smoothly on 2.1.0. There's tons of stuff that has changed so you might not be able to simply migrate other changes - it would probably be best to take note of changes on the current site (ie. compare your site with a vanilla 1.5.6) and then see how to migrate *that* to the new site.

    The database upgrade really is simple, Zen Cart handles that extremely well. Everything else - buckle up, you're in for quite a ride, but it will be an amazing learning experience.

    Of course, the new site needs to be temporarily deployed on a subdomain or a different domain so you can test it and make sure everything works before you replace your current live site. Don't even think about doing it on the live site because there will be broken stuff for sure...

  3. #3
    Join Date
    Jun 2008
    Location
    Japan
    Posts
    202
    Plugin Contributions
    7

    Default Re: Best way to upgrade !

    You can use this method here: https://docs.zen-cart.com/user/upgra..._only_upgrade/
    You will have to redo your customization but will keep your data and have clean new ZC.

  4. #4
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,763
    Plugin Contributions
    30

    Default Re: Best way to upgrade !

    Should I just scrap the old site and build a new one?
    Yes.

    MUCH easier to start with a working, new site and add in the "old" mods one by one and fix things as you break them.
    Some of which you'll probably decide are not really needed, and you've more experience now and will do some things differently, and most mods can be used with some tweaking.

    It's an opportunity to spring clean and use the much-improved possibilities of overriding core cores/using observers instead of modifying core files.
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

  5. #5
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,464
    Plugin Contributions
    11

    Default Re: Best way to upgrade !

    Your host may not allow different PHP settings for your test site unless you put it "above the root". cPanel instructions for setting up such a test site are available at https://myzencarthost.com/index.php?...th-cPanel.html

  6. #6
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,299
    Plugin Contributions
    125

    Default Re: Best way to upgrade !

    > Your host may not allow different PHP settings for your test site unless you put it "above the root".

    ... or they might. Ask if you can use your .htaccess file to set the PHP version. If so, you're good to go.

    https://docs.zen-cart.com/user/upgra...er-your-domain
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  7. #7
    Join Date
    Apr 2011
    Posts
    511
    Plugin Contributions
    0

    Default Re: Best way to upgrade !

    Thank you all for the suggestion

    Scrapping the old and starting fresh seems to be the way to go

    It definitely looks like I got my work cut out on this one. I can only blame myself for holding on doing the updates as they become available.

    I couldn't agree more about Spring cleaning as the old site has a lot of unused plugin /mods

  8. #8
    Join Date
    Apr 2011
    Posts
    511
    Plugin Contributions
    0

    Default Re: Best way to upgrade !

    Quote Originally Posted by swguy View Post
    > Your host may not allow different PHP settings for your test site unless you put it "above the root".

    ... or they might. Ask if you can use your .htaccess file to set the PHP version. If so, you're good to go.

    https://docs.zen-cart.com/user/upgra...er-your-domain

    Php version should not be an issue. I don t remember how exactly i did it but my hosting is currently set to PhP 8.3. ( because of another site using ZC 2.0 on same hosting)

    I did some kind of override on the old site that trick the server to be on PHp 7.3.

    I am more concern about the new site getting indexed before it is ready and if the update takes awhile to complete

    What s the best way to avoid indexing until the new site is fully operational?

    For example: if i set the site to www.oldsite.com/upgrade/newsite and this url gets indexed, it could be a problem.

    when the new site goes operational, the url mentioned above would return a 404 error

  9. #9
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,299
    Plugin Contributions
    125

    Default Re: Best way to upgrade !

    > What s the best way to avoid indexing until the new site is fully operational?

    Password protect the new site using .htaccess. DO NOT rely on robots.txt.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  10. #10
    Join Date
    Apr 2011
    Posts
    511
    Plugin Contributions
    0

    Default Re: Best way to upgrade !

    Thank you

 

 

Similar Threads

  1. Replies: 5
    Last Post: 27 Dec 2012, 11:30 PM
  2. best way to upgrade with mods
    By MB1 in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 10 May 2008, 02:55 PM
  3. Best Way?
    By fakeDecoy in forum Built-in Shipping and Payment Modules
    Replies: 9
    Last Post: 2 May 2007, 08:36 PM
  4. Best way to upgrade template from 1.3.0 to current
    By OFelixCulpa in forum Upgrading from 1.3.x to 1.3.9
    Replies: 4
    Last Post: 21 Jan 2007, 06:12 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