Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Orders Namespace / IBasketItemRepository Interface / CreateForProduct Method / CreateForProduct(Int32,Int32,String,String,Int32,Boolean) Method
Id of the product for which to create the basket item
The quantity of basket item
List of option ids for the variant
List of product Ids of the kit items
The user Id
Indicates if we need to calculate one time price for the subscription product.
In This Topic
    CreateForProduct(Int32,Int32,String,String,Int32,Boolean) Method
    In This Topic
    Creates a basket item for a product
    Syntax

    Parameters

    productId
    Id of the product for which to create the basket item
    quantity
    The quantity of basket item
    optionList
    List of option ids for the variant
    kitList
    List of product Ids of the kit items
    userId
    The user Id
    calculateOneTimePrice
    Indicates if we need to calculate one time price for the subscription product.

    Return Value

    The BasketItem created
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also