Site icon MageComp Blog

Magento 1.x to Magento 2.x Migration

Magento 1.x to Magento 2.x Migration

Magento 1.x to Magento 2.x Migration

The long awaited Magento 2.0 has been released few days ago. There is a vast difference in file structure of Magento 2.x and Magento 1.x, so it’s not possible to upgrade to the 2.0 version like we used to in 1.x version. Though the awesome Magento Community has developed such tools which can help you migrate data of your Magento store from 1.x to 2.x versions. You can’t upgrade the Magento theme to 2.0 but you can at least perform data migration.

Here I will show the how to Migrate data from Magento 1.x to Magento 2.x using a migration tool.

Here are some tools I came to know for Magento 2.x Migration:

  1. data-migration-tool-ce by Magento Team
  2. magento2_data_migration by UberTheme

Here we are going to guide you to migrate to Magento 2 using UberTheme Migration tool:

  1. Download the tool from https://github.com/ubertheme/magento2_data_migration/releases
  2. Extract in the root of your server by making any folder.
  3. We suppose you have already installed Magento 2.
  4. Create these folders, folders shall have write permissions.
WEB_ROOT_PATH\migrate-data-tool\assets

WEB_ROOT_PATH\migrate-data-tool\protected\runtime
  1. Make sure these files also have write permissions.
WEB_ROOT_PATH\migrate-data-tool\protected\config\config.php

WEB_ROOT_PATH\migrate-data-tool\protected\data\ub_tool.db
  1. Run this tool In browser by accessing localhost/foldername
  2. You shall receive following screen. Enter the details of both the databases. Make sure those are accessible if you are using firewall or something.
  3. Once configured, click on next step, it will check the connection between 2 databases and shall show this screen. Select websites and stores you want to migrate.
  4. Clicking on Next step, you will be able to see the screen to migrate attributes.
  5. Migrate Categories now. It will show all the list of categories, you can select few of them or select all to migrate all.
  6. Migrate Products.

You can migrate all types of products you want to migrate, you will have selection as well.

  1. Migrate customers
  2. Migrate Sales Data,
  3. Migrate Reviews and Ratings
  4. Migrate other data.
  5. You will need to reindex to see the migrated data in Magento 2.
Linux : php -f WEB_ROOT_PATH\your_magento2_folder\bin\magento indexer:reindex

Windows: php -f WEB_ROOT_PATH\your_magento2_folder\bin\magento indexer:reindex

Or

php bin/magento cache:flush

php bin/magento indexer:reindex
  1. You will need to resave attribute sets in Magento2 after data migration, go to Stores > Attributes > Attribute Set. Open the Attribute Set, edit information of it if needed and click the save button.
  1. Copy media files

Make recursive write able to “catalog” and “downloadable” folders which you have just copied.

  1. Remove all folders and files in root\magento2_folder\var but take the .htaccess file.
  2. Remove all folders and files in root\magento2_folder\pub\static but take the .htaccess file.
  3. You have successfully migrated all the data from Magento 1.x to Magento 2.0.

 

FAQ:

1. Sales Data is not migrating after complete Migration.

Ans. If you face any trouble in migrating sales data, follow this: https://github.com/ubertheme/magento2_data_migration/issues/12

 

Comment below and we will help you out if you face any issue. I will love to hear from you if you find any other way to migrate the data.

Contact us anytime if you need any help with Magento 2 Custom Development, Extension development and customization, Magento 2 upgrade/migration Service for Magento 1.x versions.

Exit mobile version