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

#   Modal Box Image Handler

##

- **[tias2001](/forum/user/1408-tias2001 "View tias2001's Profile")**
- [![tias2001's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1408.png)](/forum/user/1408-tias2001 "View tias2001's Profile") Topic Author
- [ Offline](/forum/user/1408-tias2001)

Less More

- Posts: 11
- Thank you received: 0
-
-

15 years 5 months ago [\#18007](#18007) by [tias2001](/forum/user/1408-tias2001 "View tias2001's Profile")  *[Modal Box Image Handler](/forum/4-how-to/18007-modal-box-image-handler#18007 "Hello,  I have Hikashop Essential installed and require some guidance as to where to modify the image modal popup code.  Instead of the image modal being sent the variables  rel=&quot;{handler: 'iframe', size: {x: 420, y: 400}}&quot;  I would like to send it:  rel=&quot;{handler: 'image'}&quot;  The reason for this is that when the modal handler is set to image it resizes the modal window to fit the screen size and appropriately resizes the image to fit..  The website to be modified is located here:    hairificwigs.com.au/index.php/online-shop/hats  Thanks for your help  Kind Regards Matt")* was created by *[tias2001](/forum/user/1408-tias2001 "View tias2001's Profile")*

Hello,

I have Hikashop Essential installed and require some guidance as to where to modify the image modal popup code.

Instead of the image modal being sent the variables

rel="{handler: 'iframe', size: {x: 420, y: 400}}"

I would like to send it:

rel="{handler: 'image'}"

The reason for this is that when the modal handler is set to image it resizes the modal window to fit the screen size and appropriately resizes the image to fit..

The website to be modified is located here:

[ hairificwigs.com.au/index.php/online-shop/hats](http://hairificwigs.com.au/index.php/online-shop/hats)

Thanks for your help

Kind Regards
Matt

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE4MDA3LW1vZGFsLWJveC1pbWFnZS1oYW5kbGVyP3RtcGw9bWFya2Rvd24=) 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 5 months ago [\#18016](#18016) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Modal Box Image Handler](/forum/4-how-to/18007-modal-box-image-handler#18016 "Hello,  I have Hikashop Essential installed and require some guidance as to where to modify the image modal popup code.  Instead of the image modal being sent the variables  rel=&quot;{handler: 'iframe', size: {x: 420, y: 400}}&quot;  I would like to send it:  rel=&quot;{handler: 'image'}&quot;  The reason for this is that when the modal handler is set to image it resizes the modal window to fit the screen size and appropriately resizes the image to fit..  The website to be modified is located here:    hairificwigs.com.au/index.php/online-shop/hats  Thanks for your help  Kind Regards Matt")*

That's a really good idea. We'll do the change on our end for next release as it's much nicer like that.
You can do it in the file administrator/components/com_hikashop/helpers/image.php

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

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