We are trying to order products (by the settings in the paragraph) when getting them through a ProductListCollectionProvider, with no luck. Any ideas? (Dynamicweb 7.2)
The problem is that when we include the useOrderBy parameter, the collection is empty. We really need an urgent answer. Can anyone help us?
public class PublishedProductsProvider : Dynamicweb.Extensibility.Provider.ProductListCollectionProvider { public override ProductCollection FetchCollection(Renderer renderer, string groups) { foreach (Product product in Product.getProducts(groups, true)) { //perform some tasks } } }
Nuno