Lab1 – MacPhee WorkShop
Menu
Cart 0

Lab1

View current api.jquery.js file.

The Cart

Shopify.getCart Shopify.getCart()
Shopify.addItem Shopify.addItem( , )
Shopify.addItemFromForm
variant: qty:

Shopify.addItemFromForm('add-item-form')

Shopify.updateCartAttributes Shopify.updateCartAttributes( {
  • '' : ''
} )
Shopify.updateCartNote Shopify.updateCartNote()
Shopify.removeItem Shopify.removeItem()
Shopify.changeItem Shopify.changeItem(, )
Shopify.clear Shopify.clear()

A product

Shopify.getProduct (requires the handle of a product)
Shopify.getProduct()
Tools

Shopify.resizeImage(
,

)

Shopify.formatMoney()