Socket
Book a DemoInstallSign in
Socket

datocms-plugin-commercelayer

Package Overview
Dependencies
Maintainers
0
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datocms-plugin-commercelayer

A plugin that allows users to search and select Commerce Layer SKUs

2.0.7
latest
npmnpm
Version published
Weekly downloads
13
18.18%
Maintainers
0
Weekly downloads
 
Created
Source

DatoCMS Commerce Layer plugin

A plugin that allows users to search and select Commerce Layer SKUs.

App credentials (Commerce Layer)

To use this plugin first you need to create a Commerce Layer OAuth application and take note of its credentials. If you don't have a Commerce Layer account you can sign up for free here and follow the onboarding tutorial to create an organization and seed it with test data. Once successfully signed in to the Commerce Layer admin dashboard, go into your organization's Integrations section and create a new integration app with role Read only:

New application

Now you can access the application's base endpoint, client ID, and client secret:

Application credentials

BACKWARD COMPATIBILITY — Please note that if you are upgrading from a previous version (older than v2.0.0) you need to change your plugin settings to use an integration app because old datocms Commerce Layer apps have been dismissed and don't work with the new versions of the plugin.

Plugin configuration (DatoCMS)

You can search the plugin from the DatoCMS admin dashboard or install it from the marketplace. Once installed, you need to configure the plugin with the credentials you get from Commerce Layer app you previously created:

Plugin settings

You can either hook this plugin manually to your single-line fields, or specify an identifier and use it to create an automatic match rule (e.g. via regex).

Usage

To use the plugin you need to add a single-line text field to your model in DatoCMS and select Commerce Layer SKU from the dropdown menu in the Presentation tab:

Field type Field settings Field presentation

Now you can browse your Commerce Layer organization SKUs, search and select them from the UI. You can also create and add new SKUs by clicking the button that redirects to Commerce Layer admin dashboard:

SKU search SKU selection

The selected SKU's main information will then show in the related record:

SKU visualization

Keywords

datocms

FAQs

Package last updated on 14 Feb 2025

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.