A product with no Visible individually parameter can't appear in bestseller report

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
9 years ago
Hi,
A product with no "Visible individually" parameter can't appear in bestseller report (front side). It throw "Page not found" error.
9 years ago
Hi Alex,

I've just tested it. And it works just fine. For example, if I purchase one of these products from our sample data (this one), thne I can it on bestsellers report (disabled on our demo site). Once a produt link is clicked you're redirected to the product details page. "ProductDetails" method of "ProductController" has the following code:
//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");
                }
            }


So everything is fine. It just cannot return 404 error. Try debugging this method. There should be some other reason in your case
9 years ago
Hi Andrei,
You're right.

Created a new demo and all works properly.

Thank you
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.