Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Upgrading Your Zen Cart / Upgrading to 2.x.x / Best Option from 1.55f to 2.2 - Advice Please

Best Option from 1.55f to 2.2 - Advice Please

1 Dec 2026, 6:20 PM
#1
sdelaney avatar

sdelaney

New Zenner

Join Date:
Feb 2010
Posts:
47
Plugin Contributions:
0

Post #1 by sdelaney

Finally getting around to upgrade from 1.55 to most recent version. I have a number of customizations in my working version.

In the upgrade documentation it suggests for such a span of upgrades that I should consider a database only upgrade and start from a fresh template. I assume this means figuring out how to apply my previous customizations on the fresh code.

My other option is to do the standard upgrade, reviewing release info for each release in between, etc.

I'm looking for advice on my best option ... database only or standard upgrade path?

I also see that I need to update the database char set from latin_1. Should this be done in advance of the database upgrade?

1 Dec 2026, 7:19 PM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,933
Plugin Contributions:
26

Post #2 by dbltoe

A betting man would say that any customization that you made for 1.5.5 is either now part of the core, barely working, or broken without your knowing. 10 years in e-commerce is even more than the dog years calculation.😛

I recommend keeping the old site running, creating a test site, and taking your time to get the new site to your liking.

I have an article at https://myzencarthost.com/index.php?rp=/knowledgebase/1/Creating-a-Test-Site-with-cPanel.html geared specifically toward someone with cPanel.

The docs have a generic list at https://docs.zen-cart.com/user/upgrading/db_only_upgrade/

The article helps by showing how to keep the old site running and properly set up the test. Improper PHP settings can kill the live site or disable the test.

Testing the site also lets you go through all the encapsulated plugins to see which ones strike a fancy. Their beauty is that you can add or delete them basically at will without damaging the overall operation of the new code.

Of course, the folks at the forum are ready to help as well.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

1 Dec 2026, 7:43 PM
#3
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,839
Plugin Contributions:
30

Post #3 by balihr

You're in for quite a task, but quite enjoyable if you ask me. It's a great learning process and can help you discover how powerful Zen Cart really is. 🙂

Going from 1.5.5 to 2.2.2 is quite a leap - pretty much everything (apart from the directory structure) has changed. Trying to do a traditional file-by-file merge across a decade of releases will be a nightmare, so definitely go with the fresh install + database upgrade path. At least that's how I'd go.

Although the zc_install process should be able to update your charset, it would probably be best to run the conversion tool beforehand: https://www.zen-cart.com/plugins/zen-cart-database-conversion-tool-vb2367

Just to clarify the database upgrade - you'll need to have both databases available on the same server (old and fresh). After you've finished the fresh install, manually point your configure.php to the old database and run zc_install again. You'll be prompted to upgrade the database - do that. Mind the prefixes - if you don't get the upgrade button, you're most likely missing the database prefix in the configure.php file. Once finished, point the configure.php file back to the fresh install database. Now, carry over the relevant data (address_book, customers*, orders*, products* etc) over to the new database. Make sure you don't miss relational tables (ie. customers_info, or manufacturers, or products_to_categories). At this point, your fresh install contains all of your customers, orders and products. Don't forget to copy the old images/ directory to the fresh install.

(For those wondering why I don't just keep the old database and manually carry over the tables: there might be tables or configuration keys from old plugins that are no longer useful, or can occasionally throw duplicate key errors when installing newer versions of those plugins. You could cherry-pick those keys or tables, but I've found this approach to be easier/cleaner.)

Now, the main question is whether your customization means installed plugins or actually custom-written code.

If it's plugins, look for the latest version of it and see if it's compatible with 2.2.2, or if there are alternatives. If not, do not attempt to install it because you'll probably just break the site.

If it's custom code, see if you can rebuild it using observers/notifiers or as encapsulated plugins. Keeping core files untouched will make your next upgrade a 10-minute job.

If you get stuck on anything, try to provide as much information as you can and I'm sure someone here will help you get back on track.

My site - Pro ZC Help
My portfolio | My plugins

2 Dec 2026, 7:26 PM
#4
sdelaney avatar

sdelaney

New Zenner

Join Date:
Feb 2010
Posts:
47
Plugin Contributions:
0

Post #4 by sdelaney

Thanks for the advice folks. I was leaning to a fresh install and re-implementing my customizations.

Most of the customizations were trivial (renaming buttons and menu items). But I had two major ones that involve custom code: checking a member number in a third party application API using curl, and pre-filling customer data in the fields of products for certain purchases. Also had some custom coded scripts to download data and to display data on EZ Pages. Hopefully I can replicate these in the 2.2 code without too much difficulty!

From this response I see that the database upgrade is not quite so straight forward. I had assumed it was just a matter of an auto upgrade that brought forward my current database to the latest database format. If I read this correctly, I do that sort of upgrade, but then copy over certain tables from the old, upgraded database, to a fresh new database. Correct?

It seems there is a different approach to customizations than the override structure approach - observers/notifiers (perhaps suits the member number check) and encapsulated plugins (for the rest). This will get interesting.

Once again, thanks for the encouragement.

2 Dec 2026, 8:33 PM
#5
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,933
Plugin Contributions:
26

Post #5 by dbltoe

sdelaney:

From this response I see that the database upgrade is not quite so straight forward. I had assumed it was just a matter of an auto upgrade that brought forward my current database to the latest database format. If I read this correctly, I do that sort of upgrade, but then copy over certain tables from the old, upgraded database, to a fresh new database. Correct?

Unless you are a just-as-good-as-an-AI-db expert, I would not recommend trying to pick and choose when it comes to the database,

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

2 Dec 2026, 9:08 PM
#6
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,839
Plugin Contributions:
30

Post #6 by balihr

sdelaney:

From this response I see that the database upgrade is not quite so straight forward. I had assumed it was just a matter of an auto upgrade that brought forward my current database to the latest database format. If I read this correctly, I do that sort of upgrade, but then copy over certain tables from the old, upgraded database, to a fresh new database. Correct?

The zc_install database upgrade handles the actual schema upgrade automatically, and you can simply leave it at that and use the upgraded database directly for the new site. For many stores, any leftover tables or configuration keys from old plugins will sit there harmlessly and you'll never even notice them. The minor overhead from those leftover tables is negligible nowadays anyway.

Copying the core tables with relevant data into a clean database is just an extra hygiene step I prefer to take so there's zero legacy bloat or risk of duplicate key errors if you install newer plugins down the road. It's definitely not rocket science once the schemas match (which they do after the database is upgraded). If you ever hire someone to work on the site later, handing them a clean database saves them time (read: saves you money) in case they encounter an error and need to fix it on top of what they're hired for.

Either option works - go with whichever you feel most comfortable with, and remember you can (and should) always test it on a copy first.

Your customization - you're spot on.

Renaming buttons and menu items is much cleaner now with the new array-based language files (and you don't even have to touch core files for most of them). Plus, you can always use Language Manager (https://www.zen-cart.com/plugins/language-manager-vb2424) to do it from the admin without even touching any code.

The cURL member check and pre-filling product fields - textbook use cases for observers/notifiers. 🙂

If you ever end up having to touch a core file, it's not the end of the world and it's not against the law. Just keep track of it, keep it documented (commented). Try to do as much as you can with overrides, observers and encapsulated plugins - this way, your next upgrade to v2.3.0 will be like a stroll in the park on a nice sunny day.

My site - Pro ZC Help
My portfolio | My plugins