Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Orders Namespace / BasketItemRepository Class / CreateForProduct Method / CreateForProduct(Int32,Int32) Method
The product for which to create the basket item
The quantity of the basket item
Version
CreateForProduct(Int32,Int32) Method
Creates a basket item for a product
Syntax
public 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