Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Products Namespace / IProductRepository Interface / SearchRelatedProducts Method / SearchRelatedProducts(String,Int32,CrossSellState,Int32,Int32,String,Int32,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
Assgined group id of the product
Sort expression to use for sorting the loaded products
Maximum number of rows to retrieve
Starting index from where to start retrieving
Version
SearchRelatedProducts(String,Int32,CrossSellState,Int32,Int32,String,Int32,Int32) Method
Load 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
groupId
Assgined group id of the product
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 products 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