Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Orders Namespace / IOrderItemRepository Interface / CreateForProduct Method / CreateForProduct(Int32,Int32,String,String) Method
The id of the product to add.
The quantity of the product to add.
List of option choice ids if this is a variant
List of kit products if it is a Kit
In This Topic
    CreateForProduct(Int32,Int32,String,String) Method
    In This Topic
    Gets the order items that would result from the addition of the given product to an order.
    Syntax

    Parameters

    productId
    The id of the product to add.
    quantity
    The quantity of the product to add.
    optionList
    List of option choice ids if this is a variant
    kitList
    List of kit products if it is a Kit

    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