@sogody/susam

0.0.14 • Public • Published

SUSAM

This plugin seamlessly integrates Shopify asset management in Sanity and allows uploading assets to Shopify CDN straight from Sanity Studio. We styled the Shopify file input component to match the default Sanity styling. The maximum file size that can be uploaded is 20MB.

Installation

In your Sanity project folder:

sanity install @sogody/susam

This will add the Sogody Custom shopifyURL Input File plugin as an input type.

Configuration

After installing the plugin through npm, @sogody/susam.json file will be added to the Sanity Studio’s config directory. You must add your Shopify credentials to the susam.json which will be used to connect to Shopify CDN through SUSAM.

{
    "SHOPIFY_DOMAIN": <yourStore.myshopify.com>,
    "API_PASSWORD": <yourAdminAPIpassword>
}

How to configure?

To get the configuration keys do the following steps:

  1. Create a Shopify Private App, go to Apps > Develop Apps > Create an app.
  2. From your Shopify Private App Admin API section get:
    • Shopify App Domain Name and add it to SHOPIFY_DOMAIN
    • Password and add it to API_PASSWORD
  3. Make sure that @sogody/susam is present in sanity.json.

Usage

Make a schema type that uses the SUSAM's shopifyURL. You can add the Shopify input field on your schema as follows.

{
    name: 'shopifyURL',
    title: 'Shopify Input File',
    type: 'shopifyURL',
}

Install Extension

To gain access to all features please install the SUSAM extension.

Readme

Keywords

Package Sidebar

Install

npm i @sogody/susam

Homepage

susam.app

Weekly Downloads

1

Version

0.0.14

License

ISC

Unpacked Size

198 kB

Total Files

42

Last publish

Collaborators

  • synim-sogody
  • sogody-new