Reward Points + Referral program
v3.2.4

Migration from Magento 1 to Magento 2

Below are examples of the script, which may be used in transferring data from Mirasvit Reward Points for Magento 1 to Mirasvit Reward Points for Magento 2.

To use this script, you will need the help of a PHP developer. This script may contain bugs which may not transfer all the necessary data. So you will need to fit it in line with your needs.

Our migration scripts provided above are examples. Unfortunately, in some cases, the migration requires an additional developer's supervision to make the migration go smoothly. Therefore, if you wish to employ our developers' services to make the migration to your store successful, you should buy our migration service on https://mirasvit.com/magento-extensions/data-migration-service.html

Click on the name of the export script below to download:

How to perform the migration

Follow these steps to perform the migration correctly:

  1. Run a standard Magento 2 migration, and ensure, that customers and their orders are transferred from your M1 store to M2;
  2. Ensure that the Reward Points for Magento 2 are [installed]on (/setup/installation) to your M2 store.
  3. Modify "`mirasvit_rewards_m1_export.phpscript to match your setup. Typically, it would be best if you changed$exportFileName``` variable for storing exported data (full path is required). Make sure that this file doesn't exist.
  4. Place "`mirasvit_rewards_m1_export.php``` to the root of your M1 store, and run it either:
    • From browser by opening URL http://store_m1.com/mirasvit_rewards_m1_export.php, or;
    • From SSH/Console: navigate to your store's root and run command php -f mirasvit_rewards_m1_export.php
  5. If the script returns successful, a file with the name, set at $exportFileName, will be created. Transfer it to your workstation.
  6. Run step 2 of Import procedure.
  7. Check migrated data.
  8. When the migration is complete, remove migration script.

Troubleshooting

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