@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
Related Packages
@biz-storefront/auth
A embeddable single page application to handle authentication for your storefron...
2,931
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 | ||
| 1.1.4 | ^2.6.6 | ||
| 1.1.3 | ^2.6.6 | ||
| 1.1.1 | ^2.6.6 | ||
| 1.0.1 | ^2.6.6 | ||
| 1.0.0 | ^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 | ||
| 2.0.81-alpha.0 | ^3.0.5 | ||
| 2.0.80-alpha.0 | ^3.0.5 | ||
| 2.0.79-alpha.0 | ^3.0.5 | ||
| 2.0.78-alpha.0 | ^3.0.5 | ||
| 2.0.77-alpha.0 | ^3.0.5 | ||
| 2.0.76-alpha.0 | ^3.0.5 | ||
| 2.0.75-alpha.0 | ^3.0.5 | ||
| 2.0.74-alpha.0 | ^3.0.5 | ||
| 2.0.73-alpha.0 | ^3.0.5 | ||
| 2.0.72-alpha.0 | ^3.0.5 | ||
| 2.0.71-alpha.0 | ^3.0.5 | ||
| 2.0.70-alpha.0 | ^3.0.5 | ||
| 2.0.69-alpha.0 | ^3.0.5 | ||
| 2.0.68-alpha.0 | ^3.0.5 | ||
| 2.0.67-alpha.0 | ^3.0.5 | ||
| 2.0.66-alpha.0 | ^3.0.5 | ||
| 2.0.65-alpha.0 | ^3.0.5 | ||
| 2.0.64-alpha.0 | ^3.0.5 | ||
| 2.0.63-alpha.0 | ^3.0.5 | ||
| 2.0.62-alpha.0 | ^3.0.5 | ||
| 2.0.61-alpha.0 | ^3.0.5 | ||
| 2.0.60-alpha.0 | ^3.0.5 | ||
| 2.0.59-alpha.0 | ^3.0.5 | ||
| 2.0.58-alpha.0 | ^3.0.5 | ||
| 2.0.57-alpha.0 | ^3.0.5 |
Showing the latest 30 of 77. See every release on npm