Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Products Namespace / IProductReviewRepository Interface / GetProductRating Method
ID of product to calculate rating for.
In This Topic
    GetProductRating Method (IProductReviewRepository)
    In This Topic
    Calculates the average rating for a product.
    Syntax
    decimal GetProductRating( 
       int productId
    )

    Parameters

    productId
    ID of product to calculate rating for.

    Return Value

    The average rating for a product.
    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