v1.1.13

Migration from Magento 1 to Magento 2

Below are examples of scripts, which may be used for transferring data from Mirasvit Knowledge Base for Magento 1 to Mirasvit Knowledge Base for Magento 2.

To use scripts, you need the help of a PHP developer. Scripts may contain bugs and may not transfer all necessary data. So you may need to fit them for your needs. Migration service is not a part of our support service. If you need the help of our team, you'll need to buy a migration service.

Click on the names of scripts below to download:

How to perform Migration

Follow these steps to correctly perform the migration:

  1. Run standard Magento 2 migration, and make sure, that customers and orders were transferred from your M1 store to M2;
  2. Make sure, that Knowledge Base for Magento 2 is installed on your M2 store.
  3. Place mirasvit_kb_m1_export.php to the root of your M1 store, and run it either:
    • From browser by opening URL http://store_m1.com/mirasvit_kb_m1_export.php, or
    • From SSH/Console: navigate to your store's root and run command php -f mirasvit_kb_m1_export.php
  4. If script returned success, the file kb_export.xml would be created in the root of the store, with all your data. Transfer it to the root of your M2 store;
  5. Place mirasvit_kb_m2_import.php to the root of your M2 store, and run it either:
    • From browser by opening URL http://store_m1.com/mirasvit_kb_m2_import.php, or
    • From SSH/Console: navigate to your store's root and run command php -f mirasvit_kb_m2_import.php
  6. Check migrated data.
  7. When the migration is completed, remove both migration scripts.

Note: The article's author exports by name in the example script

Troubleshooting

In some cases, the import script can crush on timeout or memory overloading error (due to large quantities of data). In this case, restart the import script by reloading the browser page. It will skip previously uploaded data, and proceed from the last unprocessed record.