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

#   Product image enlarge on Mouseover?

##

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

Less More

- Posts: 25
- Thank you received: 0
-
-

15 years 11 months ago [\#2586](#2586) by [neila](/forum/user/200-neila "View neila's Profile")  *[Product image enlarge on Mouseover?](/forum/4-how-to/2586-product-image-enlarge-on-mouseover#2586 "Hello is there a way to get the images of products (on the page with its descriptions) to enlarge on mouseover?")* was created by *[neila](/forum/user/200-neila "View neila's Profile")*

Hello is there a way to get the images of products (on the page with its descriptions) to enlarge on mouseover?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI1ODYtcHJvZHVjdC1pbWFnZS1lbmxhcmdlLW9uLW1vdXNlb3Zlcj90bXBsPW1hcmtkb3du) 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: 86584
- Thank you received: 14325
-
-

15 years 11 months ago [\#2587](#2587) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Product image enlarge on Mouseover?](/forum/4-how-to/2586-product-image-enlarge-on-mouseover#2587 "Hello is there a way to get the images of products (on the page with its descriptions) to enlarge on mouseover?")*

You mean that you want to display the big version of the image on mouse over instead of when the user click on it ?

You can do that by editing the file administrator/component/com_hikashop/helpers/image.php near line 130. You can replace the code Code:

$html = '&lt;a rel="{handler: \'iframe\', size: {x: '.$this-&gt;width.', y: '.$this-&gt;height.'}}" target="_blank" href="'.$this-&gt;uploadFolder_url.$path.'" onclick="SqueezeBox.fromElement(this);return false;" '.$optionslink.'&gt;'.$html.'&lt;/a&gt;';

by the code Code:

$html = '&lt;a rel="{handler: \'iframe\', size: {x: '.$this-&gt;width.', y: '.$this-&gt;height.'}}" target="_blank" href="'.$this-&gt;uploadFolder_url.$path.'" onhover="SqueezeBox.fromElement(this);return false;" '.$optionslink.'&gt;'.$html.'&lt;/a&gt;';

Please note that this modification will be overwritten if you update HikaShop.

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

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

Less More

- Posts: 25
- Thank you received: 0
-
-

15 years 11 months ago [\#2590](#2590) by [neila](/forum/user/200-neila "View neila's Profile")  Replied by *[neila](/forum/user/200-neila "View neila's Profile")* on topic *[Re: Product image enlarge on Mouseover?](/forum/4-how-to/2586-product-image-enlarge-on-mouseover#2590 "Hello is there a way to get the images of products (on the page with its descriptions) to enlarge on mouseover?")*

Hello this is the code i used but it doesnt work nothing happens when i hover ...when i click now it opens the image in a new window. Thanks for a quick reply.

$html = '&lt;a rel="{handler: \'iframe\', size: {x: '.$this-&gt;width.', y: '.$this-&gt;height.'}}" target="_blank" href="'.$this-&gt;uploadFolder_url.$path.'" onhover="SqueezeBox.fromElement(this);return false;" '.$optionslink.'&gt;'.$html.'&lt;/a&gt;';

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

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

Less More

- Posts: 25
- Thank you received: 0
-
-

15 years 11 months ago [\#2592](#2592) by [neila](/forum/user/200-neila "View neila's Profile")  Replied by *[neila](/forum/user/200-neila "View neila's Profile")* on topic *[Re: Product image enlarge on Mouseover?](/forum/4-how-to/2586-product-image-enlarge-on-mouseover#2592 "Hello is there a way to get the images of products (on the page with its descriptions) to enlarge on mouseover?")*

Hello..I found the answer instead of "onhover" it should be "onmouseover" and it works. Thank you!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI1ODYtcHJvZHVjdC1pbWFnZS1lbmxhcmdlLW9uLW1vdXNlb3Zlcj90bXBsPW1hcmtkb3du) 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.078 seconds

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