Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Reporting Namespace / IPageViewRepository Interface / GetRecentlyViewedProducts Method / GetRecentlyViewedProducts(Int32) Method
The user to filter views by; pass 0 for all users
In This Topic
    GetRecentlyViewedProducts(Int32) Method
    In This Topic
    Get the recently viewed products for the given user Id
    Syntax
    IList<Product> GetRecentlyViewedProducts( 
       int userId
    )

    Parameters

    userId
    The user to filter views by; pass 0 for all users

    Return Value

    A list of products recently viewed by the user.
    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