evoShop.add( values )


  • values: name/value map of an item to be added to the cart
  • returns:

  • evoShop.Item object if successfully added
  • Add an item to the cart

        name: "Cool T-Shirt" ,
        price: 45.99 ,
        size: "Small" ,
        quantity: 3

    If a price is not supplied, it is set to 0.

    If a quantity is not supplied, it is set to 1.

    If all of the fields match an item currently in the cart, evoShop will increment that items quantity by the quantity supplied