Display second product image in mod_hikashop

  • Posts: 6
  • Thank you received: 0
7 years 7 months ago #278852

I need to be able to display the second image on a product in the mod_hikashop.
Currently I can only make the first image of each product display.
Any feedback on a way to do this would be helpful.
I have tired module overrides and looking at the Display > Views and this does not seem to allow me to configure this for only the mod_hikashop.

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

  • Posts: 83780
  • Thank you received: 13570
  • MODERATOR
7 years 7 months ago #278858

Hi,

Yes, you need to do add custom code via the menu Display>Views.
Turn on the "Display view files" setting of the HikaShop configuration and you'll be able to easily see which view file you need to edit.
www.hikashop.com/support/documentation/1...-display.html#layout
It will probably be "listing_img_title".
There, you'll have to run a MySQL query to load the images from the hikashop_file table based on the file_ref_id equal to the product_id of the product and then display the images like it's done for the main image with a call to getThumbnail

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

Time to create page: 0.041 seconds
Powered by Kunena Forum