View Source ExCart.Item (ex_cart v1.0.0)

Definition of the structure of an Item used by ExCart



Creates a structure based on:


Link to this function

new(sku, price, qty, attr)

View Source

Creates a structure based on:

sku SKU of the item

price Float that represents the price of the item

qty Number that represents the quantity of the item

attr Additional attributes that needs to be attached to the item, like description, name, etc.