FG OpenCart to WooCommerce


This plugin migrates products, categories, images and information pages from OpenCart to WooCommerce/WordPress.

It has been tested with OpenCart versions 1 to 3 and the latest version of WordPress. It is compatible with multisite installations.

Major features include:

  • migrates OpenCart products
  • migrates OpenCart product images
  • migrates OpenCart product categories
  • migrates OpenCart product tags
  • migrates OpenCart information pages

No need to subscribe to an external web site.

Premium version

The Premium version includes these extra features:

  • migrates OpenCart attributes
  • migrates OpenCart options
  • migrates OpenCart users
  • migrates OpenCart customers
  • migrates OpenCart orders
  • migrates OpenCart reviews
  • migrates OpenCart tax classes
  • migrates OpenCart related products
  • migrates OpenCart coupons
  • SEO: Redirect the OpenCart URLs to the new WordPress URLs
  • SEO: Import meta data (meta title, description, keywords) to WordPress SEO
  • the users and customers can authenticate to WordPress using their OpenCart passwords
  • ability to update existing products
  • ability to do a partial import
  • ability to run the import automatically from the cron (for dropshipping for example)
  • ability to run the import by WP CLI

The Premium version can be purchased on: https://www.fredericgilles.net/fg-opencart-to-woocommerce/


The Premium version allows the use of add-ons that enhance functionality:

  • Brands: imports the manufacturers
  • Internationalization: imports the translations to WPML or Polylang
  • Custom order numbers
  • Product Options


  • English (default)
  • French (fr_FR)
  • other can be translated

Captures d’écran

  • Parameters screen



WooCommerce must be installed and activated before running the migration.


  1. Install the plugin in the Admin => Plugins menu => Add New => Upload => Select the zip file => Install Now
  2. Activate the plugin in the Admin => Plugins menu
  3. Run the importer in Tools > Import > OpenCart
  4. Configure the plugin settings. You can find the OpenCart database parameters in the OpenCart file config.php
  5. Test the database connection
  6. Click on the import button


I get the message: « [fgoc2wc] Couldn’t connect to the OpenCart database. Please check your parameters. And be sure the WordPress server can access the OpenCart database. SQLSTATE[28000] [1045] Access denied for user ‘xxx’@’localhost’ (using password: YES) »

  • First verify your login and password to your OpenCart database.
  • If OpenCart and WordPress are not installed on the same host, you can do this:
  • export the OpenCart database to a SQL file (with phpMyAdmin for example)
  • import this SQL file on the same database as WordPress
  • run the migration by using WordPress database credentials (host, user, password, database) instead of the OpenCart ones in the plugin settings.

The import is not complete

  • You can run the migration again and it will continue where it left off.
  • You can add: define('WP_MEMORY_LIMIT', '2G'); in your wp-config.php file to increase the memory allowed by WordPress
  • You can also increase the memory limit in php.ini if you have write access to this file (ie: memory_limit = 2G).

The images aren’t being imported

  • Please check the URL field. It must contain the URL of the OpenCart home page

Are the product attributes and options imported?

  • This is a Premium feature available on: https://www.fredericgilles.net/fg-opencart-to-woocommerce/

Don’t hesitate to let a comment on the forum or to report bugs if you found some.


5 septembre 2023
some time goes bye and then there's finally something like this!!!!!!!
12 janvier 2022
Fast import with multiple connection options. A no fuss migration solution. I would definitely consider FG's premium option for more complex migrations. Thank you.
1 octobre 2021
It was a god experience working with FG OpenCart to WooCommerce by Frédéric GILLES. The support is also good. Thank you for your work!
Lire les 6 avis

Contributeurs/contributrices & développeurs/développeuses

« FG OpenCart to WooCommerce » est un logiciel libre. Les personnes suivantes ont contribué à cette extension.


“FG OpenCart to WooCommerce” a été traduit dans 1 locale. Remerciez l’équipe de traduction pour ses contributions.

Traduisez « FG OpenCart to WooCommerce » dans votre langue.

Le développement vous intéresse ?

Parcourir le code, consulter le SVN dépôt, ou s’inscrire au journal de développement par RSS.



  • Tested with WordPress 6.3


  • New: Import the short description managed by the OpenCart plugin Product Short Description Pro
  • Fixed: FTP connection failed with password containing special characters
  • Tested with WordPress 6.2.2


  • Tweak: Clear WooCommerce Analytics cache


  • Fixed: Product and category URLs were wrong in the translated languages


  • Fixed: Constant FILTER_SANITIZE_STRING is deprecated on PHP 8


  • Fixed: [ERROR] Error:SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘o.invoice_id’ in ‘field list’
  • Tested with WordPress 6.2


  • New: Compatibility with PHP 8.2


  • New: Import the OpenCart 1.5 tags


  • New: Compatibility with OpenCart 1.4
  • Fixed: The option « Import the media with duplicate names » didn’t work anymore (regression from 1.10.0). So wrong images were imported.


  • Fixed: Files containing « + » were not imported
  • Fixed: Files starting with /image were not imported
  • Fixed: Files starting with ./image were not imported


  • New: Import the OpenCart 1.5 URLs


  • New: Compatibility with OpenCart 1.5


  • New: Import the products SEO URLs
  • New: Import the product categories SEO URLs
  • Tested with WordPress 6.1.1


  • New add-on: Brands


  • Fixed: Missing parent category for some categories
  • Change: Don’t add the product name at the end of the image filename


  • New: Add the functions « get_wp_post_ids_from_meta » and « get_wp_term_ids_from_meta »
  • Tweak: Shorten the filenames if the option « Import the media with duplicate names » is selected
  • Tested with WordPress 6.1.0


  • New add-on: Custom order numbers


  • New add-on: Internationalization
  • Fixed: [ERROR] Error:SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘option’ at line 1
  • Tested with WordPress 6.0.2


  • Tested with WordPress 6.0.1


  • New: Add the WordPress path in the Debug Info
  • Fixed: The widget « Filter Products by Attribute » was empty on the front-end
  • Tested with WordPress 6.0


  • Fixed: Products imported with wrong special price when there is a tax rate


  • New: Don’t delete the theme’s customizations (WP 5.9) when removing all WordPress content
  • Tested with WordPress 5.9


  • Fixed: [ERROR] Error:SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘order o’


  • Tested with OpenCart 2
  • Tested with WordPress 5.8.1


  • Fixed: Progress bar exceeds 100% when running the import again
  • Fixed: Decode HTML entities in the product title
  • Update README.txt
  • Translations


  • Initial version: Import OpenCart products, categories, images and CMS