
Many OpenCart stores still run on 2.x or 3.x. They work, but they get older every year: new payment extensions target OpenCart 4, hosting companies retire old PHP versions, and themes stop getting updates. Sooner or later the question is not whether to upgrade, but how to do it without losing products, customers, orders or Google rankings.
The short answer: treat it as a migration to a fresh OpenCart 4 install, not as a one-click update. This guide explains why, and walks through the steps we follow.
Why OpenCart 3 to 4 is a migration, not an update
OpenCart 4 is a major release. The front end moved to Bootstrap 5, extensions use a new folder layout, and a lot of the code they hook into changed. OpenCart includes upgrade scripts for the database, but they do not convert your theme, your extensions or your OCMOD and vQmod modifications. Those were written for the old code and usually have to be replaced with 4.x versions or rebuilt.
If your store has many paid extensions, check first that each one has an OpenCart 4 version. Missing extensions are the most common reason an upgrade takes longer than planned.
Before you start: a checklist
- Take a full backup of the files and the database, and test that the backup can be restored.
- List every installed extension, module and modification, and note which ones you actually use.
- Check which OpenCart 4 release you will move to and which PHP version it requires, and confirm your hosting supports it.
- Set up a staging copy of the store on a separate URL or subdomain. Never upgrade the live store directly.
- Write down the key URLs that bring traffic (from Google Search Console), so you can check them after the move.
Step-by-step migration
- Install a clean OpenCart 4 on staging with the same languages, currencies and tax settings as the old store.
- Migrate the catalogue: categories, products, options, attributes, manufacturers, images and reviews.
- Migrate customers, customer groups, addresses and order history, so returning customers keep their accounts.
- Convert the SEO URLs. The SEO URL table changed format in OpenCart 4, so keywords have to be converted, not copied.
- Install OpenCart 4 versions of your payment, shipping and other extensions, and rebuild any custom ones.
- Rebuild or adapt the theme for Bootstrap 5 and the new templates.
- Test everything: search, filters, cart, checkout with every payment method, order emails, taxes and shipping costs.
- Compare the new store with the old one: product counts, prices, customer totals and the key URLs from your list.
- Go live: put the old store in maintenance mode, copy the orders and customers created since the staging copy was made, and switch over.
Common problems after an upgrade
- Payment callbacks fail because the payment extension or its notification URL changed.
- Product images are missing because image paths or the image cache were not migrated.
- Old URLs return 404 because SEO keywords were not converted. Fix the mapping or add 301 redirects.
- Admin pages show errors because the server runs a PHP version the extension or theme does not support.
Will I lose my Google rankings?
Not if your URLs stay the same or every changed URL gets a 301 redirect to its new address. After the switch, watch Google Search Console for new 404 errors for a few weeks and fix them as they appear.
How we handle OpenCart upgrades
We are an official OpenCart Partner (Gold) since 2016 and have published 24 extensions on the OpenCart Marketplace. For upgrades we always work on a staging copy, migrate products, categories, customers, orders and SEO URLs, and check them against the old store before switching over. You get a written plan with a fixed quote before any big commitment.
Need help with this?
OpenCart upgrades & migration



