Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Products Namespace / IProductRepository Interface / GetRandomFeaturedProducts 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
The maximum number of featured items to return
In This Topic
    GetRandomFeaturedProducts Method (IProductRepository)
    In This Topic
    Gets a random selection of 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
    count
    The maximum number of featured items to return

    Return Value

    A collection of random 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