Broken thumbnails in search if image doesn't exist

  • Posts: 192
  • Thank you received: 15
  • Hikashop Business
1 year 2 months ago #354991

-- HikaShop version -- : 4.7.5
-- Joomla version -- : 4.3.3
-- PHP version -- : 7.4.29
-- Browser(s) name and version -- : Opera 88.0.4412.40

Hi,
we use the suggested method of including an image path in our csv uploads/updates to ensure that the correct images will be displayed when they are uploaded (possibly at a later date). This means that an unprofessional looking image/thumbnails is shown in search results (e.g. eb ajax and smart search) where the image is unavailable.
Is there anything you can do or suggest to prevent this from happening (e.g. force it to show the generic image)? The eb ajax search guys said that they'll look into this for us as well.

Thanks,
Ian and Stu

p.s. Let us know if there's a manual workaround as well that we could do.

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
1 year 2 months ago #355001

Hi,

In HikaShop, we do have some code which checks that the image is available, and if not, it will use the default image configured in the HikaShop configuration.
For eb ajax, I suppose they could add a similar check on their end.
For smart search, it would require modifying one or two views of com_finder but I'm not sure which ones. It would require a developer to work on this. The research to find what to do where is probably a lot longer than actually writing the code.

Please Log in or Create an account to join the conversation.

  • Posts: 192
  • Thank you received: 15
  • Hikashop Business
1 year 2 months ago #355033

Thanks for the info.
If there were a way to get a csv list of products without images, we could do an import to change them to point to a single generic image. Any help with this interim approach would be appreciated.

Ian & Stu

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
1 year 2 months ago #355037

Hi,

The export button of the products listing will provide a CSV with a column "images", however, this is the data in the database, and doesn't take into account whether the image is actually there or not.
I'm afraid coding an export to do this would require more time and cost more than directly modifying the smart search view override.

Please Log in or Create an account to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum