A Vue plugin that provides renderless components for the Shopify Buy SDK / Storefront API
# npm
$ npm install vue-shopify-buy --save
# yarn
$ yarn add vue-shopify-buy
Initialize the plugin with your Shopify Domain and Storefront Access Token. (How to generate a Storefront Access Token).
import Vue from 'vue'
import VueShopifyBuy from 'vue-shopify-buy'
Vue.use(VueShopifyBuy, {
domain: 'xxxxx.myshopify.com', // Insert your Shopify Domain
storefrontAccessToken: 'xxxxxxxx' // Insert your Shopify Storefront Access Token
})
Component | Description |
---|---|
shopify-cart |
Provides access to the cart |
shopify-product |
Provides access to a single product |
shopify-product-list |
Provides access to a list of products |
shopify-collection-list |
Provides access to a list of collections |
todo
todo
todo
todo
yarn install
yarn run serve
yarn run build
yarn run test
yarn run lint