I've been working on modifying the product listings to actually make use of a grid.
I'm currently using the following for testing and binding to a asp:grid
ProductCollection theproducts = ProductManager.GetAllProducts(true);
Now is it possible to use the above but modify to filter the products to only show the products based on the current category we are in?
with the productmanager code there doesnt seem to be an option to get all products based on categoryID
But I did find a option which filters based on
CategoryID
ManufacturerID
and some other options
public static ProductCollection GetAllProducts(int CategoryID, int ManufacturerID,
bool? FeaturedProducts, int PageSize, int PageIndex, out int TotalRecords)
How Can I modify this so that I can just simply modify the original so that i Can do
ProductCollection theproducts = ProductManager.GetAllProducts(CategoryID);
i.e
public static ProductCollection GetAllProducts(int CategoryID)
Thanks - fantastic product by the way - will be giving all my support for this
Hope the above makes sense !