shopify-cart-pro

Shopping cart for Shopify stores

Usage no npm install needed!

<script type="module">
  import shopifyCartPro from 'https://cdn.skypack.dev/shopify-cart-pro';
</script>

README

Shopify Cart Pro

Customers can manage their cart from the cart overlay.

Cart Preview

Installation

yarn add shopify-cart
import React from 'react'
import * as ReactDOM from 'react-dom'

import { Cart, showCart } from 'shopify-cart'

// Initialize the cart
const cartContainerEl = document.getElementById('cart-container')
ReactDOM.render(<Cart />, cartContainerEl)

// Open the cart
const cartIconEl = document.getElementById('cart-icon')
cartIconEl.addEventListener('click', showCart)