Component: Cart

manage all items added to your cart

mounted :
  • set default value
beforeDestroy :
  • properly detach stuffs
Match routes:
  • /my-cart
  • /my-cart/revision
Fires:

Members

Props

innerreadonlyproptheme String cart.vueline 15

Default Value:
  • light

Data

innerdefault Boolean cart.vueline 29

Computed

innercomputedisReadyForCheckout Boolean cart.vueline 41

innercomputeditems Array.<Item> cart.vueline 35

the actual items from the store

See:

Watchers

staticitems(newitems, olditems) cart.vueline 51

on items change, do some stuff

Parameters:
Name Type Description
newitems Array.<Item>
olditems Array.<Item>

Methods

innerdecrementItem(item) → {Number} cart.vueline 95

do the exact opposite of incrementItem()

Parameters:
Name Type Description
item Item

the item to act on

Returns:
Number

the new quantity

innergoToCheckOut() cart.vueline 70

emit checkout event

Fires:

innerincrementItem(item) → {Number} cart.vueline 83

More of this item !

Parameters:
Name Type Description
item Item

the item to act on

Returns:
Number

the new quantity

Events

checkout cart.vueline 76