@biz-storefront/checkout

2,798
Install
npm install @biz-storefront/checkout@2.0.26
Latest Version:2.0.26
Vue:3
Older releases:2
Last Updated:Aug 19, 2021
Links: npm
Maintainer: bizcommerce

checkout

import Vue from 'vue'
import Router from 'vue-router'
import Vuex from 'vuex'
import checkout from 'https://cdn.loja.biz/storefront/checkout.js'
import addToCart from 'https://cdn.loja.biz/storefront/add-to-cart.js'

Vue.use(Vuex)
Vue.use(Router)

const router =  new Router(routes)
const store = new Vuex.Store(Store)

class CheckoutApp extends HTMLElement {
  constructor(){
    super()
    this.appendChild(document.createElement('div').setAttribute('id', 'checkout'))
    const app = new Vue({
      router,
      store,
      render: h => h(App)
    }).$mount('#checkout')
  }
}

class AddToCart extends HTMLElement {
  constructor(){
    super()
    const app = new Vue({
      router,
      store,
      render: h => h(App)
    }).$mount(this)
  }
}
window.customElements.define('checkout-app', CheckoutApp);

<header>
  <checkout-app></checkout-app>
</header>
<main>
  <button is="cartAddable"></button>
</main>

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Run your tests

npm run test

Lints and fixes files

npm run lint

Run your end-to-end tests

npm run test:e2e

Customize configuration

See Configuration Reference.

Related Packages

@biz-storefront/auth

A embeddable single page application to handle authentication for your storefron...

2,931
@biz-storefront/bizy

Bizy-Bizcommerce component library

1,452
biz

Version History

Version Released Vue License
2.0.26 ^3.0.2
1.1.8 ^2.6.6
1.1.7 ^2.6.6
1.1.6 ^2.6.6
1.1.5 ^2.6.6
Pre-releases (77)
Version Released Vue License
2.0.86-alpha.0 ^3.0.5
2.0.85-alpha.0 ^3.0.5
2.0.84-alpha.0 ^3.0.5
2.0.83-alpha.0 ^3.0.5
2.0.82-alpha.0 ^3.0.5