IList<Product> LoadForCategory( bool groupRestrictions, IList<ShopByChoice> choices, int categoryId, bool recurse, bool publicOnly, string sortExpression, int maximumRows, int startRowIndex )
Parameters
- groupRestrictions
- If true products assigned to groups that doesn't belong to user will not be listed.
- choices
- Restrict using shop by choices.
- categoryId
- The ID of the category to load products for.
- recurse
- If true products are loaded from the current category and any of it's children.
- publicOnly
- If true only public (published) products are loaded. Default value is false
- sortExpression
- The sort expression to use for sorting the loaded objects.
- maximumRows
- Maximum number of rows to retrieve.
- startRowIndex
- Starting index from where to start retrieving.
Return Value
A collection of Product objects