Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Products Namespace / IProductRepository Interface / GetFeaturedProducts Method
The category to search for featured products; pass 0 to disable category filter
If true, only public items are included in the result
If true, out of stock items will also be included in results
sort expression to use for sorting the loaded products
Maximum number of rows to retrieve
Starting index from where to start retrieving
In This Topic
    GetFeaturedProducts Method (IProductRepository)
    In This Topic
    Gets featured products
    Syntax

    Parameters

    categoryId
    The category to search for featured products; pass 0 to disable category filter
    publicOnly
    If true, only public items are included in the result
    includeOutOfStockItems
    If true, out of stock items will also be included in results
    sortExpression
    sort expression to use for sorting the loaded products
    maximumRows
    Maximum number of rows to retrieve
    startRowIndex
    Starting index from where to start retrieving

    Return Value

    A list of featured 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