Skip to main content

How to migrate from Magento 1 to Magento 2

Below are examples of a script that can be used to transfer data from Mirasvit Reward Points for Magento 1 to Mirasvit Reward Points for Magento 2.

To use this script, you will need the assistance of a PHP developer. The script may contain bugs or may not transfer all necessary data. You may need to adjust it according to your specific needs.

Our migration scripts are provided as examples. In some cases, migration requires additional developer supervision to ensure smooth execution. If you would like our developers to assist in making the migration process successful, you can purchase our migration service from Mirasvit.

Click on the export script name below to download:

How to perform the migration

Follow these steps to perform the migration correctly:

  1. Run a standard Magento 2 migration, ensuring that customers and their orders are transferred from your M1 store to M2.
  2. Ensure that Reward Points for Magento 2 is installed on your M2 store.
  3. Modify the mirasvit_rewards_m1_export.php script to match your setup. Typically, you need to change the $exportFileName variable to store exported data (full path is required). Ensure this file does not already exist.
  4. Place the mirasvit_rewards_m1_export.php script in the root directory of your M1 store and run it either:
    • From a browser by opening the URL http://store_m1.com/mirasvit_rewards_m1_export.php, or;
    • From SSH/Console: navigate to your store's root and run the command php -f mirasvit_rewards_m1_export.php
  5. If the script runs successfully, a file with the name specified in $exportFileName will be created. Transfer it to your workstation.
  6. Run step 2 of the Import procedure.
  7. Verify the migrated data.
  8. Once the migration is complete, remove the migration script.

Troubleshooting

  • In some cases, the import script may crash due to a timeout or memory overload (especially with large data sets). In such cases, restart the import script by reloading the browser page. It will skip the previously uploaded data and continue from the last unprocessed record.