Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Products Namespace / ProductVariantManager Class / HasVariantData Method
Id of the product to check variant data for
In This Topic
    HasVariantData Method
    In This Topic
    Check if the given product has any variant data persisted to the database
    Syntax
    public static bool HasVariantData( 
       int productId
    )

    Parameters

    productId
    Id of the product to check variant data for

    Return Value

    true if product has variant data, false otherwise
    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