1.1.9 • Published 1 year ago
@fleetbase/storefront v1.1.9
Installation
With NPM
npm install @fleetbase/storefront
With Yarn
yarn add @fleetbase/storefront
Documentation
See the documentation webpage.
If you would like to make contributions to the Fleetbase Javascript SDK documentation source, here is a guide in doing so.
Quick Start for Browser
import Storefront, { Product } from "@fleetbase/storefront";
const storefront = new Storefront("Your Store Key");
// list products
storefront.products.findAll();
// create a product
const product = new Product({ name, description, price });
// retrieve cart & add item
storefront.cart.retrieve().then((cart) => {
cart.add("product_xyxyxyx", 1);
// empty cart
cart.empty();
});
// checkout
storefront.checkout.capture();
Create a custom adapter
Storefront will eventually allow you to bring your own ecommerce adapter.
@todo
1.1.9
1 year ago
1.1.8
1 year ago
1.1.7
1 year ago
1.1.6
2 years ago
1.1.5
3 years ago
1.1.4
3 years ago
1.1.3
3 years ago
1.1.2
4 years ago
1.1.1
4 years ago
1.1.0
4 years ago
1.0.9
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago