sauce-shopify-snippet

1.0.4 • Public • Published

Shopify liquid snippet

The main theme snippet for the Sauce-Shopify integration. Exposes the key data about all pages of your theme following the Sauce data layer schema.

Installation

This snippet should not be installed directly to your theme, it is automatically added when you install Sauce.

Module usage

This snippet can also be required in as an NPM module:

  1. Install the module with npm install sauce-shopify-snippet
  2. Provide the clientId to the snippet:
var snippet = require('sauce-shopify-snippet');
var html = snippet({
  clientId: '123'
});
// => `html` is the final code

License

This extension is released under Apache License 2.0.

Package Sidebar

Install

npm i sauce-shopify-snippet

Weekly Downloads

5

Version

1.0.4

License

ISC

Last publish

Collaborators

  • chrishoughton