int CountForCategory( bool groupRestrictions, IList<ShopByChoice> choices, int categoryId, bool recurse, bool publicOnly )
Parameters
- groupRestrictions
- If true products assigned to groups that doesn't belong to user will not be counted.
- choices
- Restrict using shop by choices.
- categoryId
- The ID of the category to count products for.
- recurse
- If true products are counted in the current category and any of it's children.
- publicOnly
- If true only public (published) products are counted. Default value is false
Return Value
The Number of Product objects for the given ManufacturerId in the database.