Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Products Namespace / IProductVariantRepository Interface / GetProductVariantId Method / GetProductVariantId(Int32,IDictionary<Int32,Int32>,Boolean) Method
Id of the product for which to get the variant
Selected option choices of the variant
If true invalid options are ignored
In This Topic
    GetProductVariantId(Int32,IDictionary<Int32,Int32>,Boolean) Method
    In This Topic
    Gets the product variant Id for the given product with given option choices
    Syntax

    Parameters

    productId
    Id of the product for which to get the variant
    optionChoices
    Selected option choices of the variant
    ignoreInvalidOptions
    If true invalid options are ignored

    Return Value

    Id of the ProductVariant
    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