🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

strapi-plugin-shopify-connect

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strapi-plugin-shopify-connect

Sync products, variants and image data to Strapi.

latest
Source
npmnpm
Version
0.0.16
Version published
Weekly downloads
118
Maintainers
1
Weekly downloads
 
Created
Source

Strapi plugin shopify-connect

This is very much a work in progress!

As of today, only product/update and product/create webhooks are implemented:

In Shopify / Settings / Notifications / Webhooks, add a new webhook for either of the above, and point it to <strapi domain>/shopify-connect/webhook.

Next features to be implemented:

  • Process webhooks
    • Save new products to Strapi, or update products in Strapi that are sent by Shopify webhooks
      • ~~ saving new products, except bug in variant image connection.~~
      • update existing products
  • Sync all products from Shopify
    • Fetch all products via Shopify REST api and add to Strapi. Images will not be downloaded, but image urls will be saved.
      • create new products
      • update existing products
  • Sync individual products to Shopify
  • Sync all products to Shopify
  • Anything else, I'm open to ideas

Setup

middleware

In config/middleware.js add:

module.exports = [
  'strapi::errors',
  'strapi::security',
  'strapi::cors',
  'strapi::poweredBy',
  'strapi::logger',
  'strapi::query',
  {
    name: 'strapi::body',
    config: {
      patchKoa: true,
      multipart: true,
      includeUnparsed: true // Add this to handle webhooks
    },
  },
  'strapi::session',
  'strapi::favicon',
  'strapi::public',
];

pluigns

In config/plugins.js add:

module.exports = {
  // ...
  'shopify-connect': {
    enabled: true,
    resolve: './src/plugins/shopify-connect'
  },
  // ...
}

environment

in .env add:

SHOPIFY_API_KEY=
SHOPIFY_API_SECRET=
SHOPIFY_WEBHOOK_SECRET=

These will be found in Shopify.

FAQs

Package last updated on 05 Jan 2024

Did you know?

Socket

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.

Install

Related posts