Example #1
0
 /// <summary>
 /// Creates a basket item for a product
 /// </summary>
 /// <param name="productId">Id of the product for which to create the basket item</param>
 /// <param name="quantity">The quantity of basket item</param>
 /// <param name="optionList">List of option ids for the variant</param>
 /// <param name="kitList">List of product Ids of the kit items</param>
 /// <returns>The BasketItem created</returns>
 public static BasketItem CreateForProduct(int productId, short quantity, string optionList, string kitList)
 {
     return(BasketItemDataSource.CreateForProduct(productId, quantity, optionList, kitList, Token.Instance.UserId));
 }
Example #2
0
 /// <summary>
 /// Creates a basket item for a product
 /// </summary>
 /// <param name="productId">The product for which to create the basket item</param>
 /// <param name="quantity">The quantity of the basket item</param>
 /// <returns>The BasketItem created</returns>
 public static BasketItem CreateForProduct(int productId, short quantity)
 {
     return(BasketItemDataSource.CreateForProduct(productId, quantity, string.Empty, String.Empty, Token.Instance.UserId));
 }