deactivate image-zoom

  • Posts: 28
  • Thank you received: 0
11 years 5 months ago #103842

if i click on a image in my products it will appear again on this way:




how i can deaktivate it?
thx

Attachments:

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

  • Posts: 82760
  • Thank you received: 13346
  • MODERATOR
11 years 5 months ago #103858

Hi,

Go in the menu Display->Views, edit the file "show_block_img" for your template and change the line:

echo $this->image->display(@$image->file_path,true,@$image->file_name,'id="hikashop_main_image'.$variant_name.'" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle"','id="hikashop_main_image_link"', $width,  $height);
to:
echo $this->image->display(@$image->file_path,false,@$image->file_name,'id="hikashop_main_image'.$variant_name.'" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle"','id="hikashop_main_image_link"', $width,  $height);
and that should do it.

The following user(s) said Thank You: ljrr

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

  • Posts: 28
  • Thank you received: 0
11 years 5 months ago #103861

thx, it work for the big picture - but not for the thumbs... with mouse:hover will replace the big picture. so i dont need the funktion there too.

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

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

Hi,

To remove the popup onClick on the thumbs you have to edit:

echo $this->image->display($image->file_path, 'hikashop_main_image'.$variant_name, $image->file_name, 'class="hikashop_child_image"','', $width,  $height);
To have:
echo $this->image->display($image->file_path, false, $image->file_name, 'class="hikashop_child_image"','', $width,  $height);

If you want to remove the onmouseover on the thumbnails, you will have to edit the file "administrator/components/com_hikashop/helpers/image.php" and in the function "display()" edit the line:
$html = '<a title="'.$alt.'" class="hikashop_image_small_link" rel="{handler: \'image\'}" href="'.$this->uploadFolder_url.$path.'" onclick="SqueezeBox.fromElement(this,{parse: \'rel\'});return false;" target="_blank" onmouseover="return hikashopChangeImage(\''.$addpopup.'\',\''.$this->uploadFolder_url_thumb.'\',\''.$this->thumbnail_x.'\',\''.$this->thumbnail_y.'\',this,\''.$alt.'\');" '.$optionslink.'>'.$html.'</a>';
and remove:
onmouseover="return hikashopChangeImage(\''.$addpopup.'\',\''.$this->uploadFolder_url_thumb.'\',\''.$this->thumbnail_x.'\',\''.$this->thumbnail_y.'\',this,\''.$alt.'\');"

Last edit: 11 years 5 months ago by Xavier.

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

  • Posts: 28
  • Thank you received: 0
11 years 5 months ago #103910

i only want to remove the onclick popup.

i replaced

echo $this->image->display($image->file_path, 'hikashop_main_image'.$variant_name, $image->file_name, 'class="hikashop_child_image"','', $width,  $height);

to
echo $this->image->display($image->file_path, false, $image->file_name, 'class="hikashop_child_image"','', $width,  $height);

it dont work and dont look well xD, look

Attachments:

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

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

Hi,

What you can do is replace the code:

echo $this->image->display($image->file_path, 'hikashop_main_image'.$variant_name, $image->file_name, 'class="hikashop_child_image"','', $width,  $height);
By a custom html code displaying the image, something like:
<img src="<?php echo $image->file_path.'/thumbnail_'.$width.'x'.$height.'/'.$image->file_name;" alt="$image->file_name"/>

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

Time to create page: 0.087 seconds
Powered by Kunena Forum