How to Migrate Shopify to Magento

How to Migrate Shopify to Magento

|Commerce Codes

Shopify is an out-of-the-box SaaS platform that lets you create an online store quickly and easily. It offers a range of customizable themes, and merchants without technical or design skills can launch a store without hiring an agency or a developer. People who know HTML and CSS can also take more control over the design, because Shopify lets you edit both.

As a business grows, though, some merchants need more control than a hosted platform allows: custom checkout logic, complex B2B pricing, multiple storefronts or full access to the server and code. That's when many consider moving to Magento (now Adobe Commerce), a self-hosted, open-source platform that can be customized almost without limits.

Migrating from Shopify to Magento is a fairly complex process with a lot of moving parts. In this guide, we walk you step by step through the main ways to move your store data from Shopify to Magento 2, either through data files or a direct API connection, and how to keep both stores in sync if you need to run them side by side for a while.

Note: The methods below use Firebear's Improved Import & Export extension for Magento 2, a paid third-party extension. Magento's built-in import tool can't map Shopify's data format, so an extension like this does most of the heavy lifting.

In this guide:

Migrate from Shopify to Magento 2 via data files

  1. In your Shopify admin, export your products, orders, customers, collections and any other data you need in CSV or XML format. You can also use a third-party export app for this.
  2. In your Magento 2 admin, create a new import job under System > Improved Import / Export > Import Jobs.
  3. Configure the four sections of the job, General Settings, Import Settings, Import Behavior and Import Source, based on your business needs:
    • General Settings: give the job a title and, if needed, set a schedule so updates run automatically.
    • Import Settings: select the entity you want to move from Shopify to Magento 2. The extension can import products, categories, customers, advanced pricing, orders, attributes, cart price rules, and CMS pages and blocks. Some entities unlock extra options; for example, for products you can remove old product associations or categories.
    • Import Behavior: choose an import behavior, select a validation strategy, and specify the separators your file uses.
    • Import Source: choose the file type and its source, then upload and validate the file once the other settings are configured.
  4. Apply mapping to match Shopify's attributes to the ones used in Magento 2.

Remember: you need to create a separate import job for each entity (one for products, one for customers, one for orders, and so on).

Migrate from Shopify to Magento 2 via API

Instead of moving files back and forth, the Improved Import & Export extension can also connect to Shopify directly, replacing file transfers with a REST or SOAP API connection.

  1. In your Magento 2 admin, create a new import job under System > Improved Import / Export > Import Jobs.
  2. Configure the job's four sections:
    • General Settings: add a job title and, if needed, an update schedule.
    • Import Settings: turn on API transfers by setting Use API to Yes, then select the entity you want to transfer from Shopify to Magento 2.
    • Import Behavior: choose an import behavior and a validation strategy, then specify the necessary separators.
    • Import Source: select the data format (XML or JSON) and the API type (REST or SOAP). Continue once the other settings are configured and the data is accepted.
  3. Apply mapping to match Shopify attributes to Magento 2 attributes.
  4. Create and configure a separate import job for each entity.

Synchronize Magento 2 and Shopify via data files

If you plan to run both stores in parallel during the move, you can keep them in sync with scheduled import and export jobs. This works in two directions.

Import Shopify data into Magento 2

  1. In your Shopify admin, export your products, orders, customers, collections and other data in CSV or XML format, or use a third-party export app.
  2. In your Magento 2 admin, create a new import job under System > Improved Import / Export > Import Jobs.
  3. Configure the job's four sections:
    • General Settings: set a job title and create an update schedule, so imports run automatically in the background.
    • Import Settings: choose the entity you want to move from Shopify to Magento 2.
    • Import Behavior: select an import behavior and a validation strategy, then specify separators.
    • Import Source: choose the file type and source, configure the remaining parameters, then upload and validate the file.
  4. Apply mapping to match Shopify attributes to Magento 2 attributes.
  5. Create and configure a separate import job for each entity you want to keep in sync.

Export Magento 2 data to Shopify

To send your Magento 2 data back to Shopify, first install a Shopify app that can import data from Magento files. Then:

  1. In your Magento 2 admin, create a new export job under System > Improved Import / Export > Export Jobs.
  2. Configure the job's sections based on your needs:
    • General Settings: enter the export job title and create an update schedule.
    • Export Settings: select the entity you want to move from Magento 2 to Shopify. You can export products, categories, customers, advanced pricing, orders, attributes, cart price rules, and CMS pages and blocks.
    • Store Filter: select a store view to export data more precisely.
    • Export Behavior: choose a file format and specify the necessary separators.
  3. Apply mapping and filters to match Magento 2 attributes to the ones Shopify uses and to produce a cleaner file.
  4. Create and configure a separate export job for each entity.
  5. Save and run all your import and export jobs to keep Magento 2 and Shopify in sync.

Synchronize Magento 2 and Shopify via API

You can also keep data flowing between Shopify and Magento 2 over an API connection. The Improved Import & Export extension can move the information you need from your old store to your new one using REST or SOAP.

  1. In your Magento 2 admin, create a new import job under System > Improved Import / Export > Import Jobs.
  2. Configure the job's four sections:
    • General Settings: enter a job title and create an update schedule.
    • Import Settings: turn on API transfers by setting Use API to Yes, then select the entity you want to import from Shopify.
    • Import Behavior: choose the import behavior that suits your needs, select a validation strategy and specify separators.
    • Import Source: select the data format (XML or JSON) and the API type (REST or SOAP), configure the other parameters and validate the data.
  3. Map Shopify's attributes to their Magento 2 equivalents.
  4. Create and configure a separate import job for each entity, then run them to keep data flowing from Shopify to Magento 2.

Ready-made migration tools

If you'd rather automate the whole migration, these extensions can help: