Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Orders Namespace / IOrderItemRepository Interface / CreateForProduct Method / CreateForProduct(Int32,Int32) Method
The id of the product to add.
The quantity of the product to add.
In This Topic
    CreateForProduct(Int32,Int32) Method
    In This Topic
    Gets the order items that would result from the addition of the given product to an order.
    Syntax
    IList<OrderItem> CreateForProduct( 
       int productId,
       int quantity
    )

    Parameters

    productId
    The id of the product to add.
    quantity
    The quantity of the product to add.

    Return Value

    The order items that would result from the addition of the given product to an order
    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