项目作者: alexcasche

项目描述 :
Vue mini-cart integration for Shopify
高级语言: JavaScript
项目地址: git://github.com/alexcasche/shopify-vue-mini-cart.git
创建时间: 2019-01-09T17:32:31Z
项目社区:https://github.com/alexcasche/shopify-vue-mini-cart

开源协议:

下载


Shopify Vue Mini Cart

Vue shopping cart component for Shopify

Setup

To get started clone the repository.

  1. git clone https://github.com/alexcasche/shopify-mini-cart.git

Run zip command and create new theme in Shopify from theme.zip.

  1. yarn run zip

Add a config.yml file with your theme settings.

  1. development:
  2. password: [DEV_PASSWORD]
  3. theme_id: [DEV_THEME]
  4. store: [DEV_SHOP]
  5. ignore_files:
  6. - settings_data.json

Run start command and local changes will be pushed.

  1. yarn start

Development

If your Shopify theme is up to date with you local project, run the watch command instead of start.

  1. yarn watch

Vue Integration

All Vue files will live under the src/vue directory. Vue comopnents can be mounted anywhere in shopify and can be passed external props from liquid.

  1. <vue-custom-element prop="{{ liquid_var }}"></vue-custom-element>

Notes

The browserUpdate.js file is used to trigger BrowserSync reloads. It should not be edited.

Resources

This repo utilizes the awesome library vue-custom-element.