simpleCart(js)

items
Items:
Total:

simpleCart.Item.get( name )

arguments:

  • name: name of item attribute to return the value of

returns:

  • value of the attribute of the item
var myItem = simpleCart.add({ name: "Awesome T-Shirt" , price: 10 , size: "Small" });

myItem.get( "size" ); // Small

myItem.set( "size" , "Medium" );

myItem.get( "size" ); // Medium


Comments

  1. Aug 11, 2012

    Lee  said:

    Pay pal has the branding advagtane more than Google checkout, everybody knows google but I think for the checkout people still prefers paypal because of ebay.

Commenting is not available in this channel entry.