Hi,
I am trying to load products in a view like this
Dynamicweb.Ecommerce.Frontend.Renderer render = new Dynamicweb.Ecommerce.Frontend.Renderer();
string sql = "SELECT * FROM EcomProducts WHERE CompatibleProducts LIKE '%@" + product.Id + "@%'";
render.RenderProducts(Dynamicweb.Ecommerce.Products.Product.GetProductsBySql(sql), template, "Accessories");
I am running DW 9.4.12 (updated to this version) RenderProducts method is available which accept ProductCollection Argument but ProductCollection is depricated as well as GetProductsBySql() method. I can use ProductService to get all products and then filter products based on specific field but this is giving us a performance issue.
Is there any better way to handle this?
Best Regards