• Plugin Manager

AddToCart Method

Namespace: Middleware

Assembly: Middleware

Class: IShoppingCartProvider

Adds an individual product to a shopping cart.

Parameters

userSession Shared.Classes.UserSession UserSession for user adding the item to a cart.
shoppingCart SharedPluginFeatures.ShoppingCartSummary The shopping cart the item is being added to.
product Middleware.Products.Product Product item to be added to a cart.
count Int32 Number of items to add.

Returns

long. Unique id of the item within the shopping cart.