Is there a ProductDataSource method that will return the product from a category in the admin-sorted order? I've tried this:
ProductsRepeater.DataSource = ProductDataSource.NarrowSearch(string.Empty, child.CategoryId, 0, 0, 0, 0, 0, "OrderBy ASC");
but it doesn't work - although it does not error. The order is not by ProductName or ProductID. I tried the same sort expression in the ProductDataSource.FindProducts method and it generated an error saying OrderBy was an invalid column.
Thanks,
ProductDataSource Sort Order
-
- Lieutenant Commander (LCDR)
- Posts: 87
- Joined: Fri Nov 20, 2009 8:46 am
ProductDataSource Sort Order
David Johnson
Re: ProductDataSource Sort Order
Have a look at category details control in ConLib and make use of that code for loading products within a category.