Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Products Namespace / IProductVariantRepository Interface / LoadForOptionList Method / LoadForOptionList(Int32,IDictionary<Int32,Int32>) Method
ID of the product
A dictionary with OptionId as the key and the selected OptionChoiceId as the value.
In This Topic
    LoadForOptionList(Int32,IDictionary<Int32,Int32>) Method
    In This Topic
    Gets a variant for the given options
    Syntax

    Parameters

    productId
    ID of the product
    optionChoices
    A dictionary with OptionId as the key and the selected OptionChoiceId as the value.

    Return Value

    The variant for the given options, or null if the options are invalid
    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