Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Products Namespace / IProductRepository Interface / GetPopularProducts Method
maximum number of products to retrieve
The category from which to load the popular products. Use 0 for no category filter.
In This Topic
    GetPopularProducts Method (IProductRepository)
    In This Topic
    Gets a list of popular products
    Syntax
    IList<Product> GetPopularProducts( 
       int limit,
       int categoryId
    )

    Parameters

    limit
    maximum number of products to retrieve
    categoryId
    The category from which to load the popular products. Use 0 for no category filter.

    Return Value

    A list of popular products
    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