- Posts: 6
- Thank you received: 0
Display second product image in mod_hikashop
9 years 2 months ago #278852
by reubsnz
Display second product image in mod_hikashop was created by reubsnz
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.
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.
9 years 2 months ago #278858
by nicolas
Replied by nicolas on topic Display second product image in mod_hikashop
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
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.057 seconds