Overview
Moving from X-Cart to OpenCart keeps you on a self-hosted PHP cart, but nothing moves by itself: OpenCart has no import for products, customers or orders. Its Backup/Restore only takes OpenCart's own .sql files, and "restoring a backup will completely overwrite your current database". So the data goes across with a migration module from the OpenCart marketplace or a custom script. Products, customers, orders and reviews move well that way. Passwords, attributes with price changes, and old URLs need decisions.
This guide covers X-Cart 5 (current branch 5.6.x) and the older X-Cart 4 "Classic", moving to OpenCart 4.1, the current release. OpenCart 4.1's installer needs PHP 8.1 or newer, so the new store usually goes on its own server.
This guide covers moving from X-Cart to OpenCart — see OpenCart's release history and version notes on its technology page.
Want a plan tailored to your X-Cart → OpenCart migration?
Get my planHave 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 X-Cart to OpenCart
- Products, categories, customers, orders and reviews, with a module. Cart2Cart's and LitExtension's X-Cart to OpenCart modules are on the OpenCart marketplace, and Next-Cart's OpenCart Migration lists X-Cart as a source. They move products, categories, customers and orders; Cart2Cart and LitExtension also list coupons, reviews and taxes.
- Attributes with price and weight changes. X-Cart attribute values can add or subtract a price or weight (for example +1.5). OpenCart's product options work the same way: each option value has a price and weight with a + or − prefix. That's closer than most targets.
- Your own export, if you do it yourself. X-Cart 5 exports products, categories, classes & attributes, attribute values and customers from Catalog > Export, and orders with the free Orders Import add-on. X-Cart 4.4 and later export users, products, categories, taxes, zones and orders from Tools > Import/Export. Those files are the input for a custom import into OpenCart.
- Reviews and coupons, into core features. OpenCart has product reviews and discount coupons built in, so neither needs an extension on the new store.
- Customers' addresses. The modules move billing and shipping addresses with each customer.
What does not transfer
- Password hashes, by copying the column. OpenCart 4.1's login only checks PHP password hashes, its own old salted SHA-1 and plain MD5. X-Cart 4 encrypts passwords with Blowfish, and X-Cart 5's API documents a SHA-512 hash, so a copied column doesn't log anyone in. Cart2Cart (on OpenCart 3.0 and later), LitExtension and Next-Cart each offer a password option: test it on a few accounts. Otherwise customers reset their password once, and OpenCart stores the new one properly.
- Old URLs, automatically. OpenCart has no built-in 301 redirect manager, and a path without a matching SEO keyword shows a not-found page. LitExtension has a "Create 301 Redirects on OpenCart Store" option; otherwise the redirects go in your web server's rules.
- Gift certificates on OpenCart 4. OpenCart 4 moved vouchers and gift certificates out of the core into extensions (3.0.x still has them), and no module says how it moves X-Cart gift certificate balances. List every open balance before the move.
- Product Variations as one product. X-Cart 5.5+ can set up each variation as its own product with its own SKU and stock. Decide whether they stay separate products in OpenCart or become one product with options.
- The theme and add-ons. X-Cart's templates and add-ons don't run on OpenCart: the storefront is rebuilt as an OpenCart theme, and each add-on gets an OpenCart extension or is retired.
Effort drivers
- Your X-Cart version: the URL format and the export differ between 5.6, 5.5, older 5.x and X-Cart 4.
- URLs: 5.6 uses /product/slug; 5.5 puts slugs at the root, optionally ending in .html; stores with clean URLs off use cart.php?target=…, and X-Cart 4 uses product.php?productid=… or Product-Name.html. Every one needs a 301 to its OpenCart SEO URL.
- Options and variants: how many products use attributes, text attributes, or Product Variants/Variations.
- Order history: all past orders, a few years, or none; more history means a longer test migration.
- Gift certificates and add-ons: each one needs an OpenCart extension, a manual step or a decision to drop it.
- Hosting: OpenCart 4.1's installer needs PHP 8.1 or newer, so plan a current server for the new store and keep the old one running until the final migration.
Recommended approach
Do it yourself with a module, or with an agency? The marketplace modules move the data, not the store:
- Cart2Cart (X-Cart to OpenCart Migration Module) is free to install, and a full migration starts at $29, depending on store size and options. It moves products, categories, manufacturers, taxes, customers with addresses, orders, coupons and reviews, and passwords on OpenCart 3.0 and later.
- LitExtension (X-Cart to OpenCart Migration Module) is free to install, with a free demo of 20 records per entity, then priced by the number of records. It has options to migrate customer passwords and create 301 redirects on the OpenCart store. Its listing was last updated in March 2021 and names "4.x.x.x" without a specific 4.1 build, so check support for your version first.
- Next-Cart's OpenCart Migration lists X-Cart as a source and OpenCart up to 4.1.0.4, including passwords; its price isn't on the listing.
A module is a good fit for a store with standard products and few add-ons. An agency adds what the modules don't: the option mapping, the theme, the redirect map and the launch. We Do Dev Work (the team behind MigrateXtoY) does X-Cart 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 options, theme and testing take the time.
Checklist
- Note your X-Cart version and URL format, and back up the store files and database.
- Inventory everything: add-ons, attributes and modifiers, variants or variations, coupons, gift certificates, reviews, integrations.
- Install OpenCart 4.1 on a server with PHP 8.1 or newer, and set up tax, shipping and payments.
- Choose the module and run its demo, or a test migration into a copy of the new store.
- Check counts and totals for products, customers and orders, and log in with a few migrated customer accounts.
- Switch on OpenCart's SEO URLs (System > Settings > Server) and configure the server rewrite.
- Build the redirect map from your old URLs to the new SEO URLs, through the module's redirect option or your server rules.
- Rebuild the theme and replace the add-ons you keep.
- Run the final migration, then launch and submit your sitemap in Google Search Console.
- 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 X-Cart to OpenCart?
- Not by copying them: OpenCart's login doesn't recognise X-Cart'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 X-Cart to OpenCart?
- Yes. The OpenCart marketplace has X-Cart to OpenCart modules from Cart2Cart (full migrations from $29) and LitExtension (free demo of 20 records per entity), and Next-Cart's OpenCart Migration lists X-Cart as a source. Check that the module supports your X-Cart and OpenCart versions before paying.
- Can OpenCart import my X-Cart CSV files?
- Not on its own. OpenCart has no product, customer or order import; its restore only takes OpenCart's own backups and overwrites the database. Use a migration module, or a developer who maps X-Cart's CSV export into OpenCart's tables.
- Will my old X-Cart 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 LitExtension's redirect option or server rewrite rules, mapping each old product and category URL to its new SEO URL, and check a sample before launch.
- How much does an X-Cart 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.
- Do X-Cart's attribute price changes survive in OpenCart?
- Usually, yes. OpenCart's product options carry a price and weight with a + or − prefix per option value, which matches X-Cart's price and weight modifiers. Text attributes and X-Cart 5.5+ product variations still need a decision: separate products, or one product with options.
