Hi,
A product with no "Visible individually" parameter can't appear in bestseller report (front side). It throw "Page not found" error.
//visible individually?
if (!product.VisibleIndividually)
{
//is this one an associated products?
var parentGroupedProduct = _productService.GetProductById(product.ParentGroupedProductId);
if (parentGroupedProduct != null)
{
return RedirectToRoute("Product", new { SeName = parentGroupedProduct.GetSeName() });
}
else
{
return RedirectToRoute("HomePage");
}
}