simpleCart(js)

items
Items:
Total:

simpleCart.Item.id()

returns:

  • the id of the item

 

var myItem = simpleCart.add({ name: "Shirt" , price: 4 });

myItem.id(); // "SCS-1"

Comments

  1. There are no comments for this entry yet.
Commenting is not available in this channel entry.