Simplify Image Output on Views

  • Posts: 639
  • Thank you received: 16
  • Hikashop Business
11 years 6 months ago #133879

For a certain product view I used this code suggested by the HikaShop team:

echo $this->image->display($image->file_path, 'hikashop_main_image', '', '','', 140,  $height);
But I get clickable images with its popup which I don't need for this views, the code for each image renders like this:
<a title="" class="hikashop_image_small_link" rel="{handler: 'image'}" href="/media/com_hikashop/upload/vendor1/2243_03.jpg" onclick="SqueezeBox.fromElement(this,{parse: 'rel'});return false;" target="_blank" onmouseover="return hikashopChangeImage('hikashop_main_image','/media/com_hikashop/upload/thumbnail_400x140/vendor1/2243_03.jpg','140','105',this,'');"><img src="/media/com_hikashop/upload/thumbnail_400x140/vendor1/2243_03.jpg" alt="" style="border: 1px solid;"></a>

HOW CAN I JUST SIMPLY DISPLAY THE THUMBS, with no clickable options?

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

  • Posts: 83995
  • Thank you received: 13605
  • MODERATOR
11 years 6 months ago #133904

Simply like that:
echo $this->image->display($image->file_path, false, '', '','', 140, $height);

PS: PLEASE DO NOT USE CAPITAL LETTERS.

The following user(s) said Thank You: PeterChain

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

  • Posts: 639
  • Thank you received: 16
  • Hikashop Business
11 years 6 months ago #133905

Sorry for the capital letters!!

It worked perfectly! Thank you.

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

Time to create page: 0.060 seconds
Powered by Kunena Forum