View Source ExCart.Item (ex_cart v1.1.0)

Definition of the structure of an Item used by ExCart

Summary

Functions

Creates a structure based on:

Functions

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.