Best Sellers Image links showing default image (no image) on the homepage for Grouped products

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
We are using nopCommerce 4.0 and just recently upgraded from 2.65. The upgrade went amazingly smooth for the most part. Kudos to the team.

However, when we enable Best Sellers on the homepage, all the image links are broken (using default image). I apologize if this has already been mentioned. I did search a bit to see if there was a solution.

If I had to guess what the issue is, we use the Grouped product with associated child variants product structure. The picture (as well as SEO, Meta data, etc) exists on the parent (grouped) product. The slug/link the home page Best sellers is pointing to is one of the child variants (I think). However, the link is not broken, it redirects (i.e. somehow corrects itself) to the parent after you click on it. It's just the image that is missing.

I haven't tested yet, but I think a work around might be to add the pic to the child variant it's pointing to. The issue with this strategy is that we can do the 12 on the home page and just be aware that we need to fix it if the list changes. Or we do all ~2000 of our products and just live with the duplicate db records and images. I might also be able to just point the variant to the same image the parent is point to (using Product_Picture_Mapping table in SQL only) which would at least eliminate the duplicate file image.

Anyway, I'd like to see the best sellers list recognize the parent product as it seems it should. Thanks.
6 years ago
Hello,

Can you please share Url?

Thank you,
Atul
6 years ago
Hi, try this:

http://dev.famcorfabrics.com/

Let me know if it doesn't work. I have IP restrictions on and tried to temp disable it. Hard to tell if it's working. Unfortunately, I have the best sellers feature disabled on the production site for the time being.

Assuming you can see it, you can see the one is working now. I did what I mentioned in my last possible work around which is point the child variant ProductId to the parent product's PictureId in the Product_Picture_Mapping table only (and then restarted the app).
6 years ago
Hi,

Yes I am able to access this website. Will let you know soon.

Thank you,
Atul
6 years ago
I turned the IP restrictions back on. Otherwise we start seeing the bots... Let me know if you need access to it again.

Also, I noticed that when I do the work around I mentioned, it adds a little pic to the child variant on the actual product page which doesn't really work for us. Even when I set "display: none;" (i.e. CSS) on the pic, the variant doesn't expand to the full area correctly. (I realize there are other ways to achieve that, like modifying the cshtml in the theme, but I'm trying to stay away from mods like that.)

At this point, I think we just have to live without the best sellers on the home page.
5 years ago
sumnone wrote:
I turned the IP restrictions back on. Otherwise we start seeing the bots... Let me know if you need access to it again.

Also, I noticed that when I do the work around I mentioned, it adds a little pic to the child variant on the actual product page which doesn't really work for us. Even when I set "display: none;" (i.e. CSS) on the pic, the variant doesn't expand to the full area correctly. (I realize there are other ways to achieve that, like modifying the cshtml in the theme, but I'm trying to stay away from mods like that.)

At this point, I think we just have to live without the best sellers on the home page.


Hello,

Do you still need assistance with this? I am back so we can check this anytime you want.

Thank you,
Atul
5 years ago
No, I guess not. I'm not sure what you could do? I was originally thinking this is a bug. But, I could see how the nop team could disagree.

The "Best Sellers" is clearly looking at the child variants which we don't use pics with.

We like the current layout, but I wonder if we're not doing it right in the first place. However, I don't see anything in the demo products that somewhat mimics what we are selling and allow us to get our products into a single product format.
5 years ago
Hello,

No problem. We would like to help you if things are still not clear on how to do something in nopCommerce using custom code or default configurations.

BTW, you can always ask for help in community or to us.

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