simpleCat.Item.price( [price] )

arguments:

  • price (optional): set the price of the item to this number
  • returns:

  • if no argument is present, the price of the item is returned
  • var myItem = evoShop.add({ name: "T-shirt" , price: 5 });
    
    myItem.price(); // 5
    
    myItem.price( 10 ); 
    
    myItem.price(); // 10