Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Products Namespace / ProductVariantManager Class / GetSortedOptionChoices Method
ID of product
Dictionary of option, option choice ID relationships
In This Topic
    GetSortedOptionChoices Method
    In This Topic
    Converts a dictionary of option / option choice pairs into an array of int with the option choices in matrix order.
    Syntax
    public static int[] GetSortedOptionChoices( 
       int productId,
       IDictionary<int,int> optionChoices
    )

    Parameters

    productId
    ID of product
    optionChoices
    Dictionary of option, option choice ID relationships

    Return Value

    An array of int containing the option choice ids in matrix 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