![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
medusa-source-shopify
Advanced tools
Source plugin that allows users to import products from a Shopify store
Plugin that allows users to source Medusa using a Shopify store.
This plugin will copy all of your products and collections from Shopify to Medusa.
To get started with the plugin you should follow these steps.
Navigate to your Medusa server in your terminal, and install the plugin.
$ cd my-medusa-server
$ yarn medusa-source-shopify
Navigate to your Shopify dashboard, and then go to Apps
and click the Develop apps for your store
button at the bottom of the page. After navigating to the App development
page, click the Create an app
in the top right corner.
This should open a modal where you can choose a name for your app. Write a name and click Create app
.
You should then click the button that says Configure Admin API scopes
. Scroll down to Products
and select the read_products
scope, and then save your changes.
Go back to overview and click Install app
. This should generate a token, that you should write down as you can only view it once.
Update your medusa-config.js
with the following:
//Shopify keys
const SHOPIFY_STORE_URL = process.env.SHOPIFY_STORE_URL || "";
const SHOPIFY_API_KEY = process.env.SHOPIFY_API_KEY || "";
const plugins = [
// other plugins...
{
resolve: `medusa-source-shopify`,
options: {
domain: SHOPIFY_STORE_URL,
password: SHOPIFY_API_KEY,
},
},
];
You should then add SHOPIFY_STORE_URL
and SHOPIFY_API_KEY
to your .env
.
SHOPIFY_API_KEY=<your_secret_shopify_key>
SHOPIFY_STORE_URL=<your_store_name>
The SHOPIFY_API_KEY
is the token that we generated in the previous step. SHOPIFY_STORE_URL
is the name of your store. You can view the name in the url of your Shopify dashboard, which has the following format <your_store_name>.myshopify.com
.
After setting everything up you can now run your server
$ yarn start
and the plugin will handle the rest.
The plugin stores everytime it is run, and will use this timestamp to only fetch products, collections and collects that have been updated in Shopify since the last time it pulled data.
Product/Collection
relations (Collect
)Shopify supports products being part of more than one collection, but Medusa does not support this. For this reason a product will only be part of the first collection it has a relation to in Medusa. The plugin processes Shopify product/collection relations in the following order:
This means that if product X
is part of custom collection Y
and smart collection Z
in Shopify, it will only be added to custom collection X
in Medusa.
FAQs
Source plugin that allows users to import products from a Shopify store
The npm package medusa-source-shopify receives a total of 110 weekly downloads. As such, medusa-source-shopify popularity was classified as not popular.
We found that medusa-source-shopify demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.