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

#   multiple images in product pages

##

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

Less More

- Posts: 34
- Thank you received: 2
-
-

15 years 8 months ago [\#12251](#12251) by [hkingman](/forum/user/606-hkingman "View hkingman's Profile")  *[multiple images in product pages](/forum/4-how-to/12251-multiple-images-in-product-pages#12251 "Okay, I'm stumped. Sorry to ask for help so much!  In Display | Product | Show I want to edit this code:  Currently, that line is producing this huge mass of code that I don't need:  What I want is just something simple:  But, I can't figure out where to find the methods or whatever for the image-&gt;display function. Sorry if this is a dumb question.  And, thanks!  -Henry")* was created by *[hkingman](/forum/user/606-hkingman "View hkingman's Profile")*

Okay, I'm stumped.
Sorry to ask for help so much!

In Display &#124; Product &#124; Show I want to edit this code:
Code:

echo $this-&gt;image-&gt;display($image-&gt;file_path,'hikashop_main_image',$image-&gt;file_name,'class="hikashop_child_image"','rel="SqueezeBox"');

Currently, that line is producing this huge mass of code that I don't need:
Code:

&lt;a class="hikashop_image_small_link" rel="{handler: 'iframe', size: {x: , y: }}" href="/media/com_hikashop/upload/174.jpg" onclick="SqueezeBox.fromElement(this,{parse: 'rel'});return false;" target="_blank" onmouseover="return hikashopChangeImage('hikashop_main_image','/media/com_hikashop/upload/thumbnail/174.jpg','202','220',this);" rel="zoombox" id="hikashop_image_small_link_first" &gt;&lt;img src="/media/com_hikashop/upload/thumbnail/174.jpg" alt="2006_0102Shoshone#84.JPG" class="hikashop_child_image" /&gt;&lt;/a&gt;

What I want is just something simple:
Code:

&lt;a class="hikashop_image_small_link" href="/media/com_hikashop/upload/174.jpg" rel="zoombox"&gt;&lt;img src="/media/com_hikashop/upload/thumbnail/174.jpg" alt="2006_0102Shoshone#84.JPG" /&gt;&lt;/a&gt;

But, I can't figure out where to find the methods or whatever for the image-&gt;display function. Sorry if this is a dumb question.

And, thanks!

-Henry

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMjUxLW11bHRpcGxlLWltYWdlcy1pbi1wcm9kdWN0LXBhZ2VzP3RtcGw9bWFya2Rvd24=) 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 8 months ago [\#12252](#12252) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: multiple images in product pages](/forum/4-how-to/12251-multiple-images-in-product-pages#12252 "Okay, I'm stumped. Sorry to ask for help so much!  In Display | Product | Show I want to edit this code:  Currently, that line is producing this huge mass of code that I don't need:  What I want is just something simple:  But, I can't figure out where to find the methods or whatever for the image-&gt;display function. Sorry if this is a dumb question.  And, thanks!  -Henry")*

You can do like this: Code:

echo '&lt;a class="hikashop_image_small_link" href="'.$this-&gt;image-&gt;uploadFolder_url.$image-&gt;file_path.'" rel="zoombox"&gt;&lt;img src="'.$this-&gt;image-&gt;uploadFolder_url.'thumbnail/'.$image-&gt;file_path.'" alt="'.$image-&gt;file_name.'" /&gt;&lt;/a&gt;';

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

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

Less More

- Posts: 34
- Thank you received: 2
-
-

15 years 7 months ago [\#12261](#12261) by [hkingman](/forum/user/606-hkingman "View hkingman's Profile")  Replied by *[hkingman](/forum/user/606-hkingman "View hkingman's Profile")* on topic *[Re: multiple images in product pages](/forum/4-how-to/12251-multiple-images-in-product-pages#12261 "Okay, I'm stumped. Sorry to ask for help so much!  In Display | Product | Show I want to edit this code:  Currently, that line is producing this huge mass of code that I don't need:  What I want is just something simple:  But, I can't figure out where to find the methods or whatever for the image-&gt;display function. Sorry if this is a dumb question.  And, thanks!  -Henry")*

Yes, that works perfectly! Thank you, Nicolas. I am still mystified by how, but just glad it's working.

Also, thank you for suggesting Ninja Shadowbox (in another thread), which has a nice gallery mode. After installing and activating that module, and commenting out the main image in display &#124; product &#124; show, this code seems to work nicely for a simple pop-up image gallery:
Code:

echo '&lt;a class="hikashop_image_small_link" href="'.$this-&gt;image-&gt;uploadFolder_url.$image-&gt;file_path.'" rel="shadowbox[GROUP1]"&gt;&lt;img src="'.$this-&gt;image-&gt;uploadFolder_url.'thumbnail/'.$image-&gt;file_path.'" alt="'.$image-&gt;file_name.'" /&gt;&lt;/a&gt;';

I wonder, does NinjaShadowbox like normal shadowbox require a $20 license for commercial use? Did they re-write shadowbox, or just Joomlify it? I suspect the latter. So, I'll buy a license here: [ www.shadowbox-js.com/#license](http://www.shadowbox-js.com/#license)

As usual, thank you for such fast support. I have definitely gotten my money's worth! Hopefully the next site with Hikashop I do, I will bother you less often.

-Henry

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

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