Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Orders Namespace / IBasketItemRepository Interface / CreateForProduct Method / CreateForProduct(Int32,Int32) Method
The product for which to create the basket item
The quantity of the basket item
In This Topic
    CreateForProduct(Int32,Int32) Method
    In This Topic
    Creates a basket item for a product
    Syntax
    BasketItem CreateForProduct( 
       int productId,
       int quantity
    )

    Parameters

    productId
    The product for which to create the basket item
    quantity
    The quantity of the basket item

    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