- ShoppingCartItem
ShoppingCartItem
Namespace: Middleware.ShoppingCart
Assembly: Middleware
Provides details shopping cart item data.Constructors
#ctor | Default constructor |
#ctor(Int32,Decimal,Int64,Decimal,String,String,String,String[],Boolean,Boolean,String,SharedPluginFeatures.DiscountType,Decimal) | Constructor containing detailed items information. |
#ctor(Int32,Int64,Decimal,Decimal,Decimal,String,String,String,String[],Boolean,Int32,String,Boolean,String) | Constructor containing all detailed item information. |
Properties
Id | Unique id of the shopping cart item. |
ItemId | Id of the product item |
ItemCount | Number of items. |
ItemCost | Cost of the item. |
TaxRate | Rate of tax applied to the item. |
Name | Name of the item. |
Description | Description of the item. |
SKU | Item SKU |
Images | Images for the item |
IsDownload | Indicates that the item is downloadable or not. |
Weight | Weight of item in grams. |
CustomerReference | Customer reference for the item in the cart. |
CanBackOrder | Indicates that the item can be backordered. |
Size | Size or dimensions of the item. |
StockAvailability | Availability of stock for the item in the shopping cart. |
DiscountRate | Discount amount for specific product item |
DiscountType | Type of discount |
Methods
UpdateCount(Int32) | Update the count of the individual item by adding more. |
ResetCount(Int32) | Resets the total count to a new value |
SetCurrentStockLevel(UInt32) | Sets the stock availability for an item within the shopping cart. |
CostWithDiscountApplied() | Retrieves the cost with any discounts applied |
UpdateDiscountCode(String, SharedPluginFeatures.DiscountType, Decimal, Int32) | Updates the shopping cart with a shopping cart, if it exists |