Setup/Initialization

cartShingle requires jQuery

Quick Start

Initialize cartshingle

cartShingle.init('store_token');

arguments:
  • store_token: a string containing your store's token

Cartshingle needs to be initialized with the init function before anything will be rendered. For example, a user will be unable to add items to the cart before the init function finishes.

cartShingle.init('25604465456465813548');

To place the shopping cart, use the class .cartShingle_shoppingcart. cartShingle will fill this div with the shipping cart. This only places the shipping cart, you will need to set up a link to the checkout to start the checkout process.

<div class="cartShingle_shoppingcart"></div>

The placement of the checkout is designated with the .cartShingle_checkout class. cartShingle will fill the element with the checkout elements.

<div class="cartShingle_checkout"></div>

For more information, please refer to our quick start guide.