0.0.16 • Published 4 months ago

strapi-plugin-shopify-connect v0.0.16

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

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.

0.0.16

4 months ago

0.0.15

5 months ago

0.0.14

5 months ago

0.0.13

5 months ago

0.0.12

5 months ago

0.0.10

7 months ago

0.0.11

6 months ago

0.0.9

8 months ago

0.0.8

8 months ago

0.0.7

8 months ago

0.0.6

8 months ago

0.0.5

8 months ago

0.0.4

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.1

8 months ago

0.0.0

8 months ago