Hi!
I am getting an error for my custom related product provider:
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.ThrowHelper.ThrowArgumentOutOfRangeException() at System.Collections.Generic.List`1.get_Item(Int32 index) at Dynamicweb.eCommerce.Products.GroupCollection.get_Item(Int32 Index) at Dynamicweb.eCommerce.Frontend.Renderer.RenderProduct(Product Product, Boolean ExtendedProperties, Template Template, Int32 loopCounter, Boolean renderRelated, String productURL) at Dynamicweb.eCommerce.Frontend.Renderer.RenderProducts(ProductCollection Products, Template ParentTemplate, String LoopName, Int32 LoopCounter, Boolean renderRelatedProducts, Boolean renderRelatedLists) at Dynamicweb.eCommerce.Frontend.Renderer.RenderRelatedProductLists(Template template, RelatedProductListProviderEventArgs relatedParams) at Dynamicweb.eCommerce.Frontend.Renderer.RenderProduct(Product Product, Boolean ExtendedProperties, Template Template, Int32 loopCounter, Boolean renderRelated, String productURL) at Dynamicweb.eCommerce.Frontend.Renderer.RenderProduct(Product Product, Boolean ExtendedProperties) at Dynamicweb.eCommerce.Frontend.Frontend.RenderProduct(Product prod) at Dynamicweb.eCommerce.Frontend.Frontend.EcomRender() at Dynamicweb.eCommerce.Frontend.Frontend.GetContent() at Dynamicweb.Frontend.Content.getModule(DataRow& ParagraphRow)
Which seems to be caused by the that fact no group is associated with the product. Should this be the standard behaviour? And should I always check if a product is placed in a group?
Best regards, Anders