Migration from Magento 1 to Magento 2
Below are examples of scripts, which may be used for transferring data from Mirasvit Gift Registry for Magento 1 to Mirasvit Gift Registry for Magento 2.
To use scripts you need a help of 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 a help of our team, you'll need to buy a migration service.
Click on the names of scripts below to download:
mirasvit_giftr_m1_export.php
- script for exporting Gift Registry data to XML file.mirasvit_giftr_m2_import.php
- script for importing Gift Registry data from XML file.
How to perform Migration
Follow these steps to correctly perform migration:
- Run standard Magento 2 migration, and make sure, that customers and orders were transferred from your M1 store to M2;
- Make sure, that Gift Registry MX for Magento 2 is installed on your M2 store.
- Place
mirasvit_giftr_m1_export.php
to the root of your M1 store, and run it either:- From browser by opening URL
http://store_m1.com/mirasvit_giftr_m1_export.php
, or - From SSH/Console: navigate to your store's root and run command
php -f mirasvit_giftr_m1_export.php
- From browser by opening URL
- If script returned success, file
giftr_export.xml
will be created at the root of the store, with all your data. Transfer it to the root of your M2 store; - Place
mirasvit_giftr_m2_import.php
to the root of your M2 store, and run it either:- From browser by opening URL
http://store_m1.com/mirasvit_giftr_m2_import.php
, or - From SSH/Console: navigate to your store's root and run command
php -f mirasvit_giftr_m2_import.php
- From browser by opening URL
- Check migrated data.
- When migration is completed, remove both migration scripts.
Troubleshooting
In some cases import script can crush on timeout or memory overloading error (due to large quantities of data). In this case just restart import script by reloading browser page. It will skip previously uploaded data, and proceed from the last unprocessed record.