According to the official Magento documentation, migration to the Magento 2 consists of four different stages:
- Theme Migration
- Extension Migration
- Customizations
- Data Migration
Theme Migration
Magento 2 introduces new methodologies and technologies for delivering enhanced shopping and store experience to the merchants and users. Developers can take advantages of new ways of creating awesome Magento 2 themes or modify the current ones to make them compatible with the Magento 2 standards. You should keep in mind that you cannot directly migrate your Magento 1 theme to Magento 2.
You have to create a new theme for Magento 2 and make it responsive for the best user experience.
If you wish to avoid all this hassle, buy and install a Magento 2 theme from the Magento Marketplace or from other reputed sources.
Extension Migration
Extensions are essential components that provide new features and extend the functionalities of your Magento store. The next step in Magento migration process is to install the desired Magento 2 extensions available on Magento Marketplace.
Remember that, Magento 1 extensions will not work on Magento 2. You will experience severe compatibility issues while integrating Magento 1 extensions into Magento 2.
Only install the relevant extensions that are available and required for your Magento 2 stores. The Magento developers, community and development agencies are still working hard on porting Magento 1 extensions to Magento 2.
Customization
In many cases, the custom code used by your Magento 1 store is compatible with Magento 2. Magento offers a Code Migration Toolkit that helps you in this process. It should be noted here that due to structural differences in the two platforms, This Magento migration may require additional work to make sure that the custom code successfully integrates with the Magento 2 store.
To know more about the integration, visit the GitHub repository of Magento Code Migration Toolkit.
Data Migration
The last action you need to perform during Magento migration process is moving your Magento 1 settings and data to Magento 2. Magento provides a Magento 2 Data Migration Tool which makes the migration process hassle free. This fantastic tool helps in migrating critical data (products, categories, orders, store configurations & settings, etc.) to Magento 2.
To perform a successful data migration, follow these guidelines:
Step 1 : Installing
data-migration-toolTo perform a successful data migration, follow these guidelines:
composer
config repositories.magento composer https://repo.magento.com
composer
require magento/data-migration-tool:<version>
NOTE : where
<version> is either an exact version of magento or next significant release.
EX
: composer require magento/data-migration-tool:2.1.0
Step 2 : Configure
Data Migration Tool
·
contains configuration and scripts for migrating
from Magento 1 Community Edition to Magento 2 Community Edition
Path : <Magento 2 root
dir>/vendor/magento/data-migration-tool/etc/ce-to-ce
·
contains configuration and scripts for migrating
from Magento 1 Community Edition to Magento 2 Enterprise Edition
Path : <Magento 2 root
dir>/vendor/magento/data-migration-tool/etc/ce-to-ee
·
contains configuration and scripts for migrating
from Magento 1 Enterprise Edition to Magento 2 Enterprise Edition
Path : <Magento 2 root
dir>/vendor/magento/data-migration-tool/etc/ee-to-ee
if you are performing data
migration from Magento 1 CE to Magento 2 CE, navigate to the “<Magento 2 root
dir>/vendor/magento/data-migration-tool/etc/ce-to-ce/<Magento 1.x
version>” directory and rename “config.xml.dist”
to “config.xml”.
Step 3 : open
config.xml in your favorite code editor and specify the following :
<source>
<database
host="localhost" name="Magento1-DB-name"
user="DB-username" password="DB-password"/>
</source>
<destination>
<database
host="localhost" name="Magento2-DB-name"
user="DB-username" password="DB-password"/>
</destination>
<options>
<crypt_key>Magento1-Encrypted-Key</crypt_key>
</options>
In the above code, <source>
has the database information of Magento 1 and <destination> has the
relevant information of Magento 2. <crypt_key> is mandatory to fill in.
It is the encryption key of Magento 1 which can be found in “<Magento 1 root
dir>/app/etc/local.xml” file in
<key> tag.
Step 4 : Migrate Settings :
Command : php bin/magento
migrate:settings --reset <path to your config.xml>
where <path
to your config.xml> this would be
vendor/magento/data-migration-tool/etc/ce-to-ce/<Magento 1.x
version>/config.xml. I have used --reset argument in the above command which
forces the Data Migration Tool to start from the beginning.
Step 5 : Migrate Data :
Command : php
bin/magento migrate:data --reset <path to your config.xml>
Step 6 : Migrate Success Test
the Magento 2 store completely
thank for your artical, it is very useful for my code
ReplyDeleteMigration to Magento can be confusing for some non-technical users. Read more to learn about an easy procedure for Magento 2 migration.
ReplyDelete