Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Products Namespace / IProductVariantRepository Interface / GetProductVariantId Method / GetProductVariantId(Int32,Int32[]) Method
Id of the product
An array of option choices for the product
In This Topic
    GetProductVariantId(Int32,Int32[]) Method
    In This Topic
    Gets the product variant ID for the given choices
    Syntax
    int GetProductVariantId( 
       int productId,
       int[] optionChoices
    )

    Parameters

    productId
    Id of the product
    optionChoices
    An array of option choices for the product

    Return Value

    The id of the variant for the given choices
    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