ec_cart v0.1.5 EcCart.Item

Definition of the structure of an Item used by EcCart

Summary

Functions

Creates a structure based on

Functions

new(ec_sku, ec_price, ec_qty, attr)

Creates a structure based on:

ec_sku SKU of the item

ec_price Float that represents the price of the item

ec_qty Number that represents the quantity of the item

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