restrict thumbnail display yet more in pop-up

  • Posts: 84
  • Thank you received: 0
11 years 5 months ago #149079

-- HikaShop version -- : 2.3.0 business
-- Joomla version -- : 3.2.3

Hi,

Is there a way to restrict the amount of thumbnails visible on the front end of the product page whilst allowing more images to be displayed in the image pop-up shadow box?

Many thanks in advance

Claire

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

  • Posts: 13201
  • Thank you received: 2322
11 years 5 months ago #149083

Hi,

I think that if you edit the view "show_block_img", in the thumbnail part, add a class for the thumbnails, for example "hika_display_thumbs" on the displayed thumbnails and "hika_hide_thumbs" for the one to hide.

You have to add the class in the $attr variable.

This require PHP knowledges.

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

  • Posts: 84
  • Thank you received: 0
11 years 5 months ago #149217

Hi,

I have very basic php knowledge. I have the file you're talking about.
Where exactly would I place this css and how exactly?
I have found 3 $attr in the php file.

Thanks for any further help !

Attachments:

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

  • Posts: 84290
  • Thank you received: 13691
  • MODERATOR
11 years 5 months ago #149238

Hi,

It's actually the line:

$attr = 'onmouseover="return window.localPage.changeImage(this, \'hikashop_main_image'.$variant_name.'\', \''.$img->url.'\', '.$img->width.', '.$img->height.', \''.@$image->file_description.'\', \''.@$image->file_name.'\');"';
that you should change to something like that:
static $i=0; $++; if($i>4){ $attr = 'style="display:none;" onmouseover="return window.localPage.changeImage(this, \'hikashop_main_image'.$variant_name.'\', \''.$img->url.'\', '.$img->width.', '.$img->height.', \''.@$image->file_description.'\', \''.@$image->file_name.'\');"'; }else{ $attr = 'onmouseover="return window.localPage.changeImage(this, \'hikashop_main_image'.$variant_name.'\', \''.$img->url.'\', '.$img->width.', '.$img->height.', \''.@$image->file_description.'\', \''.@$image->file_name.'\');"'; }

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

  • Posts: 84
  • Thank you received: 0
11 years 5 months ago #149535

Hi Nicolas,

thanks for your help.

I think that's a bit complicated for me. It's not working instead sending me to an error page.

I don't need it badly enough to warrant you wasting time on this one for me!

Thanks again

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

Time to create page: 0.082 seconds
Powered by Kunena Forum