enanobots / m2-m1migration
Magento 2 - Magento 1 migration
Installs: 701
Dependents: 0
Suggesters: 0
Security: 0
Stars: 32
Watchers: 1
Forks: 5
Open Issues: 1
Type:magento2-module
Requires
- php: >=7.4
- magento/framework: 103.0.*
README
Magento 2 - Magento 1 Migration Tool
Documentation In Progress...
Important:
Module has not been used for 24 months, so you might have few issues in 2.4 ;-)
This tool was never used with MSI, it was used from M2.1 up to M2.3 without MSI
Feel Free to Create a PR that supports MSI
Installation
Installation is via composer
composer require enanobots/m2-m1migration
After installing the packages just run:
php bin/magento setup:upgrade
Requirements:
PHP 7.4
and higherMagento 2.1
and higher (you might adjust the code to work withPHP 7.2
)- module
Magento_Swatches
has to be enabled
Used on:
Magento 2.1.x
OpenSource and Commerce (2018-2019)Magento 2.2.x
OpenSource and Commerce (2019-2020)Magento 2.3.x
OpenSource
How this works?
There are 2 ways the import works. I recommend checking both classes and the code before you start working on this
- Sync method, via
SyncAbstract
class that works on EAV table structures - Data mapping method, via
TableImportAbstract
class that work on other tables.
The idea behind this module is simply to determine & capture the differneces in between Magento 1 and Magento 2 databases and simply MAP data from 1 database to another without any weird logic behind it. Module only imports data so:
- any attribute source models have to be recreated in the M2 code base
Module adds a lot of CLI commands to support:
- full data migration
- partial data migration for specified entites (orders, cms blocks, email templates and so on)
Supported Data Migration
- Product Attributes (with image swatches sync)
- CMS Pages
- CMS Blocks
- Store Configuration
- Sales Data
- Customer Data with password
- Newsletter subscribers
- URL regeneration
Usage:
- You need to have Magento 1 database access
- Log to Admin Panel and configure M1 database access under: Stores -> Configuration -> M1 Import Tools
- Save Configuration
- Go to CLI and run:
php bin/magento nanobots:import:full
The script will:
- recreate stores
- recreate and check for all store attributes assigned to products
- import customers
- import sales data (orders, invoices, credit memos)
- import catalog
- impory and sync stocks
- cms blocks and pages import
- gallery import with images file import (M1 images have to be in the same path as M2 images)
During import you will be shown the status of migration for specified entities:
Product import:
Module only imports:
- simple products
- configurable products
For bundle products / downloadable products you have to create a proper table sync operations.