Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Orders Namespace / IBasketItemRepository Interface / CreateForProduct Method / CreateForProduct(Int32,Int32,String,String,Int32) 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
In This Topic
    CreateForProduct(Int32,Int32,String,String,Int32) 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

    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