simpleCart(js)

items
Items:
Total:

simpleCart.Item.set( name , value )

arguments:

  • name: name of item attribute to be modified
  • value: value to set attribute of item to
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. There are no comments for this entry yet.
Commenting is not available in this channel entry.