Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Products Namespace / IProductRepository Interface / SearchRelatedProductsCount Method / SearchRelatedProductsCount(String,Int32,CrossSellState,Int32) Method
The product name to search
The category id to search within
The type of cross sell relationship the target items have to the given product
The product used to determine cross sell relationship
In This Topic
    SearchRelatedProductsCount(String,Int32,CrossSellState,Int32) Method
    In This Topic
    Count the number of related products depending upon their cross sell relation
    Syntax

    Parameters

    productName
    The product name to search
    categoryId
    The category id to search within
    crossSellFilter
    The type of cross sell relationship the target items have to the given product
    productId
    The product used to determine cross sell relationship

    Return Value

    The number of Product objects matching the cross sell search criteria.
    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