[Skip to main content](#vessel-content)

#   deactivate image-zoom

##

- **[ljrr](/forum/user/16960-ljrr "View ljrr's Profile")**
- [![ljrr's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/16960-ljrr "View ljrr's Profile") Topic Author
- [ Offline](/forum/user/16960-ljrr)

Less More

- Posts: 28
- Thank you received: 0
-
-

13 years 5 months ago [\#103842](#103842) by [ljrr](/forum/user/16960-ljrr "View ljrr's Profile")  *[deactivate image-zoom](/forum/4-how-to/81838-deactivate-image-zoom#103842 "if i click on a image in my products it will appear again on this way:  how i can deaktivate it? thx")* was created by *[ljrr](/forum/user/16960-ljrr "View ljrr's Profile")*

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

[ ![sd.PNG](/forum/attachment/10136) ](/forum/attachment/10136 "sd.PNG")

how i can deaktivate it?
thx

- [ ![sd.PNG](/forum/attachment/10136) ](/forum/attachment/10136 "sd.PNG") [ ](/forum/attachment/10136?download=1 "sd.PNG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgxODM4LWRlYWN0aXZhdGUtaW1hZ2Utem9vbT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

13 years 5 months ago [\#103858](#103858) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[deactivate image-zoom](/forum/4-how-to/81838-deactivate-image-zoom#103858 "if i click on a image in my products it will appear again on this way:  how i can deaktivate it? thx")*

Hi,

Go in the menu Display-&gt;Views, edit the file "show_block_img" for your template and change the line: Code:

echo $this-&gt;image-&gt;display(@$image-&gt;file_path,true,@$image-&gt;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: Code:

echo $this-&gt;image-&gt;display(@$image-&gt;file_path,false,@$image-&gt;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](/forum/user/16960-ljrr "View ljrr's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgxODM4LWRlYWN0aXZhdGUtaW1hZ2Utem9vbT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ljrr](/forum/user/16960-ljrr "View ljrr's Profile")**
- [![ljrr's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/16960-ljrr "View ljrr's Profile") Topic Author
- [ Offline](/forum/user/16960-ljrr)

Less More

- Posts: 28
- Thank you received: 0
-
-

13 years 5 months ago [\#103861](#103861) by [ljrr](/forum/user/16960-ljrr "View ljrr's Profile")  Replied by *[ljrr](/forum/user/16960-ljrr "View ljrr's Profile")* on topic *[deactivate image-zoom](/forum/4-how-to/81838-deactivate-image-zoom#103861 "if i click on a image in my products it will appear again on this way:  how i can deaktivate it? thx")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgxODM4LWRlYWN0aXZhdGUtaW1hZ2Utem9vbT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 5 months ago -  13 years 5 months ago [\#103883](#103883) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[deactivate image-zoom](/forum/4-how-to/81838-deactivate-image-zoom#103883 "if i click on a image in my products it will appear again on this way:  how i can deaktivate it? thx")*

Hi,

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

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

To have: Code:

echo $this-&gt;image-&gt;display($image-&gt;file_path, false, $image-&gt;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: Code:

$html = '&lt;a title="'.$alt.'" class="hikashop_image_small_link" rel="{handler: \'image\'}" href="'.$this-&gt;uploadFolder_url.$path.'" onclick="SqueezeBox.fromElement(this,{parse: \'rel\'});return false;" target="_blank" onmouseover="return hikashopChangeImage(\''.$addpopup.'\',\''.$this-&gt;uploadFolder_url_thumb.'\',\''.$this-&gt;thumbnail_x.'\',\''.$this-&gt;thumbnail_y.'\',this,\''.$alt.'\');" '.$optionslink.'&gt;'.$html.'&lt;/a&gt;';

and remove: Code:

onmouseover="return hikashopChangeImage(\''.$addpopup.'\',\''.$this-&gt;uploadFolder_url_thumb.'\',\''.$this-&gt;thumbnail_x.'\',\''.$this-&gt;thumbnail_y.'\',this,\''.$alt.'\');"

Last edit: 13 years 5 months ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgxODM4LWRlYWN0aXZhdGUtaW1hZ2Utem9vbT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ljrr](/forum/user/16960-ljrr "View ljrr's Profile")**
- [![ljrr's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/16960-ljrr "View ljrr's Profile") Topic Author
- [ Offline](/forum/user/16960-ljrr)

Less More

- Posts: 28
- Thank you received: 0
-
-

13 years 5 months ago [\#103910](#103910) by [ljrr](/forum/user/16960-ljrr "View ljrr's Profile")  Replied by *[ljrr](/forum/user/16960-ljrr "View ljrr's Profile")* on topic *[deactivate image-zoom](/forum/4-how-to/81838-deactivate-image-zoom#103910 "if i click on a image in my products it will appear again on this way:  how i can deaktivate it? thx")*

i only want to remove the onclick popup.

i replaced Code:

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

to Code:

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

it dont work and dont look well xD, look

[ ![a&#95;2013-05-14.PNG](/forum/attachment/10141) ](/forum/attachment/10141 "a&#95;2013-05-14.PNG")

- [ ![a&#95;2013-05-14.PNG](/forum/attachment/10141) ](/forum/attachment/10141 "a&#95;2013-05-14.PNG") [ ](/forum/attachment/10141?download=1 "a&#95;2013-05-14.PNG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgxODM4LWRlYWN0aXZhdGUtaW1hZ2Utem9vbT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 5 months ago [\#104057](#104057) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[deactivate image-zoom](/forum/4-how-to/81838-deactivate-image-zoom#104057 "if i click on a image in my products it will appear again on this way:  how i can deaktivate it? thx")*

Hi,

What you can do is replace the code: Code:

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

By a custom html code displaying the image, something like: Code:

&lt;img src="&lt;?php echo $image-&gt;file_path.'/thumbnail_'.$width.'x'.$height.'/'.$image-&gt;file_name;" alt="$image-&gt;file_name"/&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgxODM4LWRlYWN0aXZhdGUtaW1hZ2Utem9vbT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.093 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
