Migrating from osCommerce to OpenCart

Overview

Moving from osCommerce to OpenCart keeps you on a self-hosted PHP cart, but it isn't an upgrade: the databases are different, and neither side has a native path for the data. osCommerce 2.x can only make a database backup (.sql), and OpenCart can only restore its own backups, so the move is done with a migration module from the OpenCart marketplace or a custom script. Products, customers, orders and reviews move well that way. Passwords, gift vouchers and old URLs need decisions.

This guide is mostly about osCommerce 2.2 and 2.3 "classic" stores, whose official 2.3 requirements page lists only PHP 4 and PHP 5. The target is OpenCart 4.1 (the current release; 3.0.x is still maintained, but its own release notes recommend OpenCart 4). osCommerce 4 is a different codebase with its own import and export tools, noted where it differs.

This guide covers moving from osCommerce to OpenCart — see OpenCart's release history and version notes on its technology page.

Want a plan tailored to your osCommerce → OpenCart migration?

Get my plan

Have We Do Dev Work do it: from €2,000 (small shop migration). Excl. VAT, for businesses. The final price follows a short call.

What transfers cleanly from osCommerce to OpenCart

  • Products, categories and manufacturers, with a migration module. Cart2Cart, LitExtension and Next-Cart all have osCommerce to OpenCart modules on the OpenCart marketplace, and all list products, categories, customers and orders. osCommerce product options with price adjustments map to OpenCart's product options, which work the same way.
  • Customers and addresses. Every module moves them. Saved card data doesn't move: Cart2Cart says its tool doesn't migrate it, for security.
  • Orders, with their products, totals and status history. OpenCart has no order import of its own, so the module (or a script) writes them straight into OpenCart's order tables.
  • Reviews. Both carts have reviews in core (product, author, text, rating), and Cart2Cart, LitExtension and a $55 script on the marketplace list them.
  • Taxes. Both carts use tax classes, rates and geo zones; the modules list taxes as migrated. OpenCart adds tax rules and customer-group links, so check the result rather than assume it.
  • SEO keywords, if you ask for them. Cart2Cart and LitExtension have an option to migrate product and category SEO URLs into OpenCart's keyword table.

What does not transfer

  • Customer password hashes, by copying the column. osCommerce 2.2 stores md5 with a salt, 2.3 uses phpass ($P$ hashes), and osCommerce 4 uses bcrypt with a site key. OpenCart 4.1's login checks PHP password hashes, its own old salted SHA-1 and plain md5, none of which matches. Cart2Cart (OpenCart 3.0 and later only), LitExtension and Next-Cart all offer a password option, so test it on a few accounts; otherwise customers reset their password once, and OpenCart stores the new one properly.
  • Gift vouchers on OpenCart 4. OpenCart 4 moved vouchers and gift certificates out of the core into extensions (3.0.x still has them). osCommerce 2.3 core has no vouchers either, so this only matters if your store added a voucher add-on, and no migration module says it moves them.
  • Discount coupons from a stock 2.3 store. osCommerce 2.3 core has only specials (sale prices), no coupon codes. If an add-on gave you coupons, LitExtension lists coupons; OpenCart has coupons in core under Marketing.
  • Redirects, automatically. OpenCart has no built-in 301 redirect manager, and an unknown SEO path just shows a not-found page. LitExtension has a "Create 301 Redirects on OpenCart Store" option; the only dedicated osCommerce redirect extension supports OpenCart 1.5.6–2.3 only. Otherwise the redirects go in your web server's rules.
  • The theme and add-ons. osCommerce templates and contributions don't run on OpenCart. The storefront is rebuilt as an OpenCart theme, and each add-on gets an OpenCart extension or is retired.
  • A restore of an osCommerce backup into OpenCart. OpenCart's Backup/Restore only takes .sql files that come from the same OpenCart version, and restoring overwrites the database.

Effort drivers

  • How old the store is: a 2.2 or 2.3 store on an old PHP may need its own server just long enough for the migration module to read it.
  • Contributions and custom code: classic osCommerce stores often carry years of add-ons (coupons, vouchers, SEO URLs, extra product fields), and each needs a home or a decision.
  • Product options: how many products use options, and whether you need stock tracked per combination of options.
  • Order history: all past orders or a few years; more history means a longer test migration and more to check.
  • URLs: stock osCommerce uses product_info.php?products_id=… and index.php?cPath=…, or product_info.php/products_id/123 with search-engine-safe URLs switched on. Every one needs a 301 to the new OpenCart URL.
  • Passwords: whether a module's password option works on your osCommerce version, or customers reset theirs.
  • Hosting: OpenCart 4.1's installer needs PHP 8.1 or newer, so the new store usually goes on a new server.

Recommended approach

Do it yourself with a module, or with an agency? The marketplace modules move the data, not the store:

  1. Cart2Cart (osCommerce to OpenCart Migration Module) is free to install; full migrations start at $29 and depend on store size and options. It moves products, categories, manufacturers, taxes, customers, orders and reviews, and passwords on OpenCart 3.0 and later.
  2. LitExtension is free to install with a demo of 20 of each entity, then paid per entity. It adds coupons, CMS pages, a password option and a 301-redirect option. Its listing was last updated in 2021, so check OpenCart 4.1 support first.
  3. Next-Cart lists osCommerce as a source and is compatible up to OpenCart 4.1.0.4, including passwords; its price isn't on the listing.
  4. Smaller fixed-price scripts exist too, such as a $55 one-off migration script that covers products, reviews, specials, customers and orders.

A module is a good fit for a stock store with few add-ons. An agency adds what the modules don't: getting an old store running long enough to export it, mapping years of contributions, the theme, the redirects and the launch. We Do Dev Work (the team behind MigrateXtoY) does osCommerce to OpenCart migrations from €2,000 for a small shop, from €5,000 for a medium shop (500–5,000 products, a few integrations), and large or custom stores from €12,500 on quote. Prices exclude VAT and are for businesses; the final price follows a short call.

Timeline. In our projects a small shop takes about 4–8 working days, a medium shop 10–20, and a large or custom store 25 or more. The data move is the short part; the add-ons, theme and testing take the time.

Checklist

  1. Back up the osCommerce files and database (Tools > Database Backup), and keep a copy off the server.
  2. Inventory everything: version, contributions, product options, coupons, vouchers, SEO URL setup, custom fields.
  3. Install OpenCart 4.1 on a new server with PHP 8.1 or newer, and set up tax, shipping and payments.
  4. Choose the module (or script) and run its demo or a test migration into a copy of the new store.
  5. Check counts and totals for products, customers and orders, and log in with a few migrated customer accounts.
  6. Switch on OpenCart's SEO URLs (System > Settings > Server) and configure the server rewrite.
  7. Build the redirect map from the old products_id and cPath values to the new URLs, through the module's redirect option or your server rules.
  8. Rebuild the theme and replace the add-ons you keep.
  9. Run the final migration, then launch and submit your sitemap in Google Search Console.
  10. Watch 404s and rankings for a few weeks, and tell customers how to reset their password if theirs didn't move.

FAQ

Can I move customer passwords from osCommerce to OpenCart?
Not by copying them: OpenCart's login doesn't recognise any of osCommerce's password formats. Cart2Cart (on OpenCart 3.0 and later), LitExtension and Next-Cart each offer a password option, so test it on a few accounts during the trial run. If it doesn't work for your version, customers reset their password once and OpenCart stores the new one.
Is there a tool that migrates osCommerce to OpenCart?
Yes. The OpenCart marketplace has osCommerce migration modules from Cart2Cart (full migrations from $29), LitExtension and Next-Cart, plus smaller fixed-price scripts. Check that the module supports your exact osCommerce and OpenCart versions before paying.
Can I just restore my osCommerce database backup into OpenCart?
No. The two carts use different databases, and OpenCart's restore only accepts backups made by the same OpenCart version (and overwrites the database). Make the backup anyway: it's your safety copy if anything goes wrong.
Will my old osCommerce URLs keep their rankings?
Only with 301 redirects. Every URL changes, and OpenCart has no redirect manager of its own: an unknown address shows a not-found page. Use the redirect option of your migration module (LitExtension has one) or server rewrite rules, mapping each old products_id and cPath to its new URL, and check a sample before launch.
How much does an osCommerce to OpenCart migration cost?
With a module, from about $29 for a small Cart2Cart migration, rising with store size and options, plus your time for the theme and checks. With We Do Dev Work, from €2,000 for a small shop and from €5,000 for a medium one (excluding VAT), and from €12,500 on quote for large or custom stores.
Should I move to OpenCart 4 or OpenCart 3?
OpenCart 4. Version 3.0.x still gets releases, but its own release notes recommend OpenCart 4. The one thing to plan for is gift vouchers: OpenCart 4 moved them from the core into extensions.

Related migrations

Ready to see what this actually takes?

Tell us your site and the platforms involved. We reply with effort, risk, and the order to do things in. No signup.

Get my plan