Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Products Namespace / ProductCalculator Class / LoadForProduct Method / LoadForProduct(Int32,Int32,String,List<Int32>) Method
Id of the product
Quantity of the product
List of option ids if this is a variant
Generic integer list of the kit product Ids
In This Topic
    LoadForProduct(Int32,Int32,String,List<Int32>) Method
    In This Topic
    Creates a ProductCalculator object for given product details
    Syntax
    [Obsolete("Provided for backward compatibility only.  It is preferred to pass kitList as string variable with a comma delimited list of kit product ids.")]
    public static ProductCalculator LoadForProduct( 
       int productId,
       int quantity,
       string optionList,
       List<int> kitList
    )

    Parameters

    productId
    Id of the product
    quantity
    Quantity of the product
    optionList
    List of option ids if this is a variant
    kitList
    Generic integer list of the kit product Ids

    Return Value

    A ProductCalculator object
    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