Shopify Source Plugin
This document will guide you through installing the shopify source plugin on your Medusa backend.
If you're migrating from Shopify to Medusa, this plugin will facilitate the process for you. It migrates data related to your products on Shopify to Medusa. It also registers a scheduled job that runs periodically and ensures your data is synced between Shopify and Medusa.
A Medusa backend is required to be set up before following along with this document. You can follow the quickstart guide to get started in minutes.
Using this plugin requires having a Shopify account with access to development keys and resources.
Private Shopify App
This plugin authenticates with Shopify through a private app that has Read access to products.
To create a private app:
- Open your Shopify store's dashboard
- Choose Apps from the sidebar
- Scroll down and click on "Manage private apps"
- If asked, enable private app development.
- Once enabled, click on the "Create private app" button.
- In the form, enter the app's name and email.
- In the Admin API section, click on "Show inactive Admin API permissions" then, for Products, choose "Read Access".
- Once done, click on the "Save" button.
- Click the "Create App" button in the pop-up that shows up.
- Copy the Password to use for the plugin's configurations.
In the directory of your Medusa backend, run the following command to install the plugin:
Then, add the following environment variables to
<YOUR_SHOPIFY_DOMAIN>is the subdomain of the Shopify store that you're migrating. If you're not sure what it is, your store's domain should be of the format
<DOMAIN>is the value of this environment variable.
<YOUR_SHOPIFY_PASSWORD>is the password for the private app you created.
Finally, add the plugin to the
plugins array in
Test the Plugin
To test the plugin, run the following command in the directory of the Medusa backend to start the backend:
As the backend starts, so does the migration script. The products and its data will be migrated into Medusa.