How to Migrate Online Shop From Magento 1 to Magento 2

How to Migrate Online Shop From Magento 1 to Magento 2

If you want to migrate your shop from Magento 1 to Magento 2, follow our tutorial below.

We will use UberTheme Migration tool for demonstration purposes:

Download the tool from https://github.com/ubertheme/magento2_data_migration/releases

  1. Create a folder in the root directory of your server and extract the tool
  2. Make sure you have Magento 2 installed prior using the tool.
  3. Create following folders with the write permissions.
    WEB_ROOT_PATH\migrate-data-tool\assets
    WEB_ROOT_PATH\migrate-data-tool\protected\runtime
  4. 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
  5. Run this migration tool In your browser by accessing localhost/foldername
  6. Enter the details of both databases. Make sure they are correct.
  7. Click “next step”. If the your database details are correct and the connection between 2 databases is established, you will be able to select the website you want to migrate.
  8. Click “Next step” and migrate attributes.
  9. After that you need to migrate categories. From the list of the categories, you can select those you want to migrate.
  10. Now you are ready to migrate products. You can migrate all types of products or select only specific product type to migrate.
  11. Migrate customers. You can either select all customer types or specific types only.
  12. The next step is a migration of  sales data.
  13. Finally you can migrate reviews and ratings; and other data.
  14. Reindexing is required 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
  15. Re-save attribute sets in Magento2. To do so go to Stores > Attributes > Attribute Set. Open the Attribute Set, edit it if needed and save.
  16. Move media files
    • Copy the folder at \your_magento1_folder\media\catalog and move it to WEB_ROOT_PATH\your_magento2_folder\pub\media\
    • Copy the folder at \your_magento1_folder\media\downloadable and move it to WEB_ROOT_PATH\your_magento2_folder\pub\media\
  17. Set “catalog” and “downloadable” folders to recursively writable.
  18. Remove all folders and files in root\magento2_folder\var but keep the .htaccess file.
  19. Remove all folders and files in root\magento2_folder\pub\static but keep  the .htaccess file.
  20. Data migration from Magento 1.x to Magento 2.0 is successfully completed.