New release: Conditional Fields

Snipcart Orders

By Jacob Størdahl

A dashboard widget for displaying recent orders from Snipcart. This plugin is a part of the Steel headless commerce sudo framework.

sanity-plugin-snipcart-orders

A dashboard widget for displaying recent orders from Snipcart.

This plugin is a part of the Steel headless commerce sudo framework.

Installation

Be sure to have dashboard installed in your studio by running...

sanity install @sanity/dashboard

Then install the widget...

sanity install snipcart-orders

Configuration

The plugin can be configured by creating a file called dashboardConfig.js in the root of your studio. You'll then need to add the following object to the parts array in your projects sanity.json...

{ 
  "implements": "part:@sanity/dashboard/config", 
  "path": "./dashboardConfig.js" 
}

You'll then need to add some boilerplate to dashboardConfig.js along with options for the plugin...

export default {
  widgets: [
    {
      name: 'snipcart-orders',
      options: 
      {
        apiKey: string, // SNIPCART SECRET API KEY
        limit: number, //DEFAULTS TO FIVE
      }
    }
  ]
}

Options

| Option | Type | Description | |--------|--------|-------------| | apiKey | string | a secret api key from Snipcart. Check the docs. | | limit | number | the number of orders to be returned |

License

MIT © Jacob Størdahl See LICENSE

Install command

sanity install snipcart-orders

Contributor

Jacob Størdahl

JAMstack + serverless developer // javascript // all in on @sveltejs // 🏳️‍🌈 // any pronouns // prolly listening to a podcast

Jacob is located at Minneapolis, USA
Visit Jacob Størdahl's profile

Other plugins by author

Snipcart Best Sellers

A dashboard widget for viewing top sellers from Snipcart. This plugin is a part of the Steel headless commerce sudo framework.

Jacob Størdahl
Go to Snipcart Best Sellers