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

#   lightbox view multiple photos

##

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

Less More

- Posts: 49
- Thank you received: 0
-
-

13 years 1 month ago [\#123969](#123969) by [Jimmy](/forum/user/24801-jimmy "View Jimmy's Profile")  *[lightbox view multiple photos](/forum/4-how-to/862095-lightbox-view-multiple-photos#123969 "i have multiple pictures for each product. Now when clicking on a picture it opens in a lightbox but there's no possibility to click through to the next picture belonging to that product. you have to...")* was created by *[Jimmy](/forum/user/24801-jimmy "View Jimmy's Profile")*

i have multiple pictures for each product. Now when clicking on a picture it opens in a lightbox but there's no possibility to click through to the next picture belonging to that product. you have to close the picture which you are viewing and have to click the other pictures one by one. Is it possible to add some kind of option which allows users to click to the next picture without first closing the picture that you are viewing.

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 1 month ago [\#123981](#123981) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[lightbox view multiple photos](/forum/4-how-to/862095-lightbox-view-multiple-photos#123981 "i have multiple pictures for each product. Now when clicking on a picture it opens in a lightbox but there's no possibility to click through to the next picture belonging to that product. you have to...")*

Hi,

We have an integration with Shadowbox for that.
You can find it in the documentation page, section "integrations".

We will improve this integration in the next release which will become integrated directly in HikaShop. Shadowbox will still be required and won't be added by HikaShop, but it will be easier to use it, without overrides.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 49
- Thank you received: 0
-
-

13 years 1 month ago [\#123984](#123984) by [Jimmy](/forum/user/24801-jimmy "View Jimmy's Profile")  Replied by *[Jimmy](/forum/user/24801-jimmy "View Jimmy's Profile")* on topic *[lightbox view multiple photos](/forum/4-how-to/862095-lightbox-view-multiple-photos#123984 "i have multiple pictures for each product. Now when clicking on a picture it opens in a lightbox but there's no possibility to click through to the next picture belonging to that product. you have to...")*

it ain't joomla 3.x compatible....

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 1 month ago [\#123985](#123985) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[lightbox view multiple photos](/forum/4-how-to/862095-lightbox-view-multiple-photos#123985 "i have multiple pictures for each product. Now when clicking on a picture it opens in a lightbox but there's no possibility to click through to the next picture belonging to that product. you have to...")*

Hi,

You still have the possibility to integrate shadowbox directly in your template, like we did for our website (which use J3).

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 8
- Thank you received: 0
-
-

13 years 1 month ago -  13 years 1 month ago [\#126978](#126978) by [djendesign](/forum/user/13667-djendesign "View djendesign's Profile")  Replied by *[djendesign](/forum/user/13667-djendesign "View djendesign's Profile")* on topic *[lightbox view multiple photos](/forum/4-how-to/862095-lightbox-view-multiple-photos#126978 "i have multiple pictures for each product. Now when clicking on a picture it opens in a lightbox but there's no possibility to click through to the next picture belonging to that product. you have to...")*

Hi Jerome,

Could you maybe explain how I can integrate Shadowbox directly into a template? I'm working on a J3 site as well and would like to use Shadowbox to navigate through product images directly, without first having to close one image to open another. Have been stumbling with the fact that the plugin doesn't support J3 but haven't found any other solution yet.

Thanks!

Last edit: 13 years 1 month ago by [djendesign](/forum/user/13667-djendesign "View djendesign's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 1 month ago [\#127056](#127056) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[lightbox view multiple photos](/forum/4-how-to/862095-lightbox-view-multiple-photos#127056 "i have multiple pictures for each product. Now when clicking on a picture it opens in a lightbox but there's no possibility to click through to the next picture belonging to that product. you have to...")*

Hi,

The best to integrate shadowbox is to put it directly into your template.
Downloading the javascript/css files and store it in a specific folder (in your template or in the joomla media folder).
After that you will have to edit your template to include the shadowbox javascript/css files and put a little script for the initialization: Code:

&lt;script type="text/javascript"&gt; Shadowbox.init(); &lt;/script&gt;

You can see our website, we have Joomla 3 and we also have shadowbox.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 8
- Thank you received: 0
-
-

13 years 1 month ago [\#127267](#127267) by [djendesign](/forum/user/13667-djendesign "View djendesign's Profile")  Replied by *[djendesign](/forum/user/13667-djendesign "View djendesign's Profile")* on topic *[lightbox view multiple photos](/forum/4-how-to/862095-lightbox-view-multiple-photos#127267 "i have multiple pictures for each product. Now when clicking on a picture it opens in a lightbox but there's no possibility to click through to the next picture belonging to that product. you have to...")*

Thanks for the reply! Unfortunately can't seem to make it work. Uploading the hikashop_image.php file and inserting the javascript into my template both seem to work. It's the plugin that I don't know what to do with. You want me to unzip the folder and upload it to root/template/MYTEMPLATE? Don't I need to install/enable it somehow?

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 1 month ago [\#127307](#127307) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[lightbox view multiple photos](/forum/4-how-to/862095-lightbox-view-multiple-photos#127307 "i have multiple pictures for each product. Now when clicking on a picture it opens in a lightbox but there's no possibility to click through to the next picture belonging to that product. you have to...")*

Hi,

Sorry but I didn't tell you to install the Shadowbox HikaShop override. You don't have to and I recommend you to remove this useless file.
HikaShop 2.2.2 have a native integration with Shadowbox but first, you have to install/integration manually Shadowbox in your template.

So please follow my previous instruction to integrate shadowbox in your template. Once done, I will explain you how to activate the shadowbox popup in the HikaShop popup system.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[Henrik](/forum/user/28178-henrik "View Henrik's Profile")**
- [![Henrik's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28178.jpg)](/forum/user/28178-henrik "View Henrik's Profile")
- [ Offline](/forum/user/28178-henrik)
- New in Hikashop

Less More

- Posts: 43
- Thank you received: 0
-
-
- [](http://www.fch-custom.dk)
-

13 years 3 weeks ago [\#129436](#129436) by [Henrik](/forum/user/28178-henrik "View Henrik's Profile")  Replied by *[Henrik](/forum/user/28178-henrik "View Henrik's Profile")* on topic *[lightbox view multiple photos](/forum/4-how-to/862095-lightbox-view-multiple-photos#129436 "i have multiple pictures for each product. Now when clicking on a picture it opens in a lightbox but there's no possibility to click through to the next picture belonging to that product. you have to...")*

hey
Is it only when you are completely inside each product to lightbox work, or can you also get it to work from the product overview page, so you can scroll between products?

---

Thanks

Henrik Ris

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 3 weeks ago [\#129495](#129495) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[lightbox view multiple photos](/forum/4-how-to/862095-lightbox-view-multiple-photos#129495 "i have multiple pictures for each product. Now when clicking on a picture it opens in a lightbox but there's no possibility to click through to the next picture belonging to that product. you have to...")*

Hi,

The product overview page ?

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[Henrik](/forum/user/28178-henrik "View Henrik's Profile")**
- [![Henrik's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28178.jpg)](/forum/user/28178-henrik "View Henrik's Profile")
- [ Offline](/forum/user/28178-henrik)
- New in Hikashop

Less More

- Posts: 43
- Thank you received: 0
-
-
- [](http://www.fch-custom.dk)
-

13 years 3 weeks ago -  13 years 3 weeks ago [\#129514](#129514) by [Henrik](/forum/user/28178-henrik "View Henrik's Profile")  Replied by *[Henrik](/forum/user/28178-henrik "View Henrik's Profile")* on topic *[lightbox view multiple photos](/forum/4-how-to/862095-lightbox-view-multiple-photos#129514 "i have multiple pictures for each product. Now when clicking on a picture it opens in a lightbox but there's no possibility to click through to the next picture belonging to that product. you have to...")*

What I mean is when the customer are on the page where all products in a category is displayed. can it be made so that the images open in a lightbox and the customers can navigate between products in a category, inside the lightbox, just like a image gallery whit lightbox.

Regards

---

Thanks

Henrik Ris

- [ ![h4a903a4&#95;2013-10-25.jpg](/forum/attachment/13174) ](/forum/attachment/13174 "...2013-10-25.jpg") [ ](/forum/attachment/13174?download=1 "...2013-10-25.jpg")

Last edit: 13 years 3 weeks ago by [Henrik](/forum/user/28178-henrik "View Henrik's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 3 weeks ago [\#129588](#129588) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[lightbox view multiple photos](/forum/4-how-to/862095-lightbox-view-multiple-photos#129588 "i have multiple pictures for each product. Now when clicking on a picture it opens in a lightbox but there's no possibility to click through to the next picture belonging to that product. you have to...")*

Hi,

The image have a link to the product page, it's not a lightbox.
If you want to put a lightbox here, you will have to override/customize the view of the product listing.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[Henrik](/forum/user/28178-henrik "View Henrik's Profile")**
- [![Henrik's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28178.jpg)](/forum/user/28178-henrik "View Henrik's Profile")
- [ Offline](/forum/user/28178-henrik)
- New in Hikashop

Less More

- Posts: 43
- Thank you received: 0
-
-
- [](http://www.fch-custom.dk)
-

13 years 2 weeks ago [\#129791](#129791) by [Henrik](/forum/user/28178-henrik "View Henrik's Profile")  Replied by *[Henrik](/forum/user/28178-henrik "View Henrik's Profile")* on topic *[lightbox view multiple photos](/forum/4-how-to/862095-lightbox-view-multiple-photos#129791 "i have multiple pictures for each product. Now when clicking on a picture it opens in a lightbox but there's no possibility to click through to the next picture belonging to that product. you have to...")*

Ok thanks
Can you guide me how I can make a ​​lightbox on my product page, it must open in lightbox instead of going into the product itself.
like the one on your page

[ www.hikashop.com/extensions/upgrade-my-version.html](http://www.hikashop.com/extensions/upgrade-my-version.html)

my version is joomla 3.0
and it's a lightbox on this page I mean.

[ maalfoto.dk/index.php/motionslob/product/listing](http://maalfoto.dk/index.php/motionslob/product/listing)

---

Thanks

Henrik Ris

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 2 weeks ago [\#129846](#129846) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[lightbox view multiple photos](/forum/4-how-to/862095-lightbox-view-multiple-photos#129846 "i have multiple pictures for each product. Now when clicking on a picture it opens in a lightbox but there's no possibility to click through to the next picture belonging to that product. you have to...")*

Hi,

You have to create an override for the "product &#124; listing_...." (the type of listing you are using) and use some code that you will find in the view "product &#124; show_block_img" to display the lightbox link. Code:

echo $this-&gt;popup-&gt;image($html, $img-&gt;origin_url, null, $attr);

You might need to create the "popup" object, in the product listing, it might not be initialized. Code:

$this-&gt;popup = hikashop_get('helper.popup');

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[Henrik](/forum/user/28178-henrik "View Henrik's Profile")**
- [![Henrik's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28178.jpg)](/forum/user/28178-henrik "View Henrik's Profile")
- [ Offline](/forum/user/28178-henrik)
- New in Hikashop

Less More

- Posts: 43
- Thank you received: 0
-
-
- [](http://www.fch-custom.dk)
-

13 years 4 days ago [\#131910](#131910) by [Henrik](/forum/user/28178-henrik "View Henrik's Profile")  Replied by *[Henrik](/forum/user/28178-henrik "View Henrik's Profile")* on topic *[lightbox view multiple photos](/forum/4-how-to/862095-lightbox-view-multiple-photos#131910 "i have multiple pictures for each product. Now when clicking on a picture it opens in a lightbox but there's no possibility to click through to the next picture belonging to that product. you have to...")*

Hi again.
I have played around with the code but I can't get it right, can you help me along?

show_block_img.php
Line 53-75 Code:

&lt;div class="hikashop_product_main_image_thumb" id="hikashop_image_main_thumb_div&lt;?php echo $variant_name;?&gt;" &lt;?php echo $style;?&gt; &gt; &lt;div style="&lt;?php if(!empty($divHeight)){ echo 'height:'.($divHeight+20).'px;'; } ?&gt;text-align:center;clear:both;" class="hikashop_product_main_image"&gt; &lt;div style="position:relative;text-align:center;clear:both;&lt;?php if(!empty($divWidth)){ echo 'width:'.$divWidth.'px;'; } ?&gt;margin: auto;" class="hikashop_product_main_image_subdiv"&gt; &lt;?php if($this-&gt;image-&gt;override) { 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); } else { if(empty($this-&gt;popup)) $this-&gt;popup = hikashop_get('helper.popup'); $image_options = array('default' =&gt; true); $img = $this-&gt;image-&gt;getThumbnail(@$image-&gt;file_path, array('width' =&gt; $width, 'height' =&gt; $height), $image_options); if($img-&gt;success) { $attr = ''; if (!empty ($this-&gt;element-&gt;images) &amp;&amp; count($this-&gt;element-&gt;images) &gt; 1) { $attr = 'onclick="return window.localPage.openImage(\'hikashop_main_image\');"'; } $html = '&lt;img id="hikashop_main_image'.$variant_name.'" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle" title="" src="'.$img-&gt;url.'"/&gt;'; echo $this-&gt;popup-&gt;image($html, $img-&gt;origin_url, null, $attr); } } if(!empty($this-&gt;element-&gt;badges)) $this-&gt;classbadge-&gt;placeBadges($this-&gt;image, $this-&gt;element-&gt;badges, '0', '0'); ?&gt;

How much shuld I take over in listing_table.php ?

listing_table.php
Line 95-96 Code:

&lt;?php if($this-&gt;params-&gt;get('link_to_product_page',1)){ ?&gt; &lt;a href="&lt;?php echo $link;?&gt;" title="&lt;?php echo $this-&gt;escape($this-&gt;row-&gt;product_name); ?&gt;"&gt;

Ragards,

---

Thanks

Henrik Ris

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 4 days ago [\#131932](#131932) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[lightbox view multiple photos](/forum/4-how-to/862095-lightbox-view-multiple-photos#131932 "i have multiple pictures for each product. Now when clicking on a picture it opens in a lightbox but there's no possibility to click through to the next picture belonging to that product. you have to...")*

Hi,

Well, it is a little bit more complicated than modifying one line in the listing_table view.
The popup is generated by Code:

echo $this-&gt;popup-&gt;image($html, $img-&gt;origin_url, null, $attr);

The first parameter is the content which is in the "&lt;a ..&gt;" link (so the thumbnail image in the product page).
The second parameter is the link to the original image ($link in the listing_table view).
The third parameter is not used for our case.
The last parameter is the attributes, like the class or the onclick.

In the product page, we set the onclick event which use the javascript function defined later in the view. The function will create the gallery effect (removing duplicate images) but if you don't want to have a gallery, you can set this parameter empty ; it should work good.

As you will understand, it requires some php/development knowledge.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg2MjA5NS1saWdodGJveC12aWV3LW11bHRpcGxlLXBob3Rvcz90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

12 years 10 months ago [\#139631](#139631) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[lightbox view multiple photos](/forum/4-how-to/862095-lightbox-view-multiple-photos#139631 "i have multiple pictures for each product. Now when clicking on a picture it opens in a lightbox but there's no possibility to click through to the next picture belonging to that product. you have to...")*

Hi,

We've looked a bit at the shadowbox plugin and made a version compatible with Joomla 3 that you can get here:
[ www.hikashop.com/shadowbox.zip](http://www.hikashop.com/shadowbox.zip)
We've also contacted the developers and offered them the modified package. They should release a Joomla 3 compatible plugin soon.

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

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