Tested Opencart Version: 1.5.x
Tested WooCommerce Version: 3.x.x
- Main Categories
- Sub Categories
- Products
- Product Photos
- Product Tags
$ cd opencart-to-woocommerce-migration\wc-api-php
$ composer require automattic/woocommerce
Wordpress Admin Panel -> WooCommerce -> Settings -> Advanced -> Rest API -> Create Key
Description: Opencart Migration
User: Admin User
Permission: Read/Write
Create key button click.
Open the config.php file in the opencart-to-woocommerce-migration folder. Edit the file.
$wpUrl = 'https://www.wordpressurl.com';
$token = 'xxx';
$tokenSecret = 'xxx';
Go to opencart folder ../image/data
Replace htaccess file name with .htaccessx
Files to be run respectively:
- main-category-install.php
- sub-category-install.php
- run.php (press the buton on the page)