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

#   Shadowbox Media Viewer a duplicate images!

##

- **[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: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

13 years 1 week ago [\#132326](#132326) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Shadowbox Media Viewer a duplicate images!](/forum/26-product-category-display/863444-shadowbox-media-viewer-a-duplicate-images?start=20#132326 "-- url of the page with the problem -- :   www.hikashop.com/support/documentation/1...ox-media-player.html  -- HikaShop version -- : Last -- Joomla version -- : 2.5  The plugin Shadowbox Media Viewer a duplicate images. For example on page I have 2 images of some product, but when I click on thumbnail in the bottom of Shadowbox window displays 1 of 3 :blink: , but on page uploaded only 2 images. The Shadowbox Media Viewer a duplicated first image and display second image normal.")*

Hi,

So, once again, you still have a plugin which made the override.
Well, it is ugly but I guess it will be the only solution, you will have to edit the view in order to bypass the plugin which create the override...
In the view "product &#124; show_block_img" you will find this code: Code:

&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;

In this block, just replace Code:

if($this-&gt;image-&gt;override) {

By: Code:

if(false) {

And it won't use anymore the override of the plugin but the original content of the view.

Regards,

---

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

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

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

Less More

- Posts: 126
- Thank you received: 0
-
-

13 years 1 week ago [\#132398](#132398) by [neviqimka](/forum/user/22899-neviqimka "View neviqimka's Profile")  Replied by *[neviqimka](/forum/user/22899-neviqimka "View neviqimka's Profile")* on topic *[Shadowbox Media Viewer a duplicate images!](/forum/26-product-category-display/863444-shadowbox-media-viewer-a-duplicate-images?start=20#132398 "-- url of the page with the problem -- :   www.hikashop.com/support/documentation/1...ox-media-player.html  -- HikaShop version -- : Last -- Joomla version -- : 2.5  The plugin Shadowbox Media Viewer a duplicate images. For example on page I have 2 images of some product, but when I click on thumbnail in the bottom of Shadowbox window displays 1 of 3 :blink: , but on page uploaded only 2 images. The Shadowbox Media Viewer a duplicated first image and display second image normal.")*

Yes, it's working now, but I must replace code on 2 places:
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(false) { 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); }

and Code:

if (!empty ($this-&gt;element-&gt;images) &amp;&amp; count($this-&gt;element-&gt;images) &gt; 1) { $firstThunb = true; foreach ($this-&gt;element-&gt;images as $image) { if(false) { 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); }

Please tell me where there was a problem, with HikaShop, with Shadowbox Media Viewer or with Gavickpro template? I realy dont understand...

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjM0NDQtc2hhZG93Ym94LW1lZGlhLXZpZXdlci1hLWR1cGxpY2F0ZS1pbWFnZXM/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) 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: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

13 years 1 week ago [\#132450](#132450) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Shadowbox Media Viewer a duplicate images!](/forum/26-product-category-display/863444-shadowbox-media-viewer-a-duplicate-images?start=20#132450 "-- url of the page with the problem -- :   www.hikashop.com/support/documentation/1...ox-media-player.html  -- HikaShop version -- : Last -- Joomla version -- : 2.5  The plugin Shadowbox Media Viewer a duplicate images. For example on page I have 2 images of some product, but when I click on thumbnail in the bottom of Shadowbox window displays 1 of 3 :blink: , but on page uploaded only 2 images. The Shadowbox Media Viewer a duplicated first image and display second image normal.")*

Hi,

> So, once again, you still have a plugin which made the override.

The problem does not have changed since the last time. You have a HikaShop plugin which create the override for the images.
You still have the plugin for HikaShop-Shadowbox, unless I asked you several time to remove/unpublish it.

Regards,

---

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

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

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

Less More

- Posts: 126
- Thank you received: 0
-
-

13 years 1 week ago [\#132487](#132487) by [neviqimka](/forum/user/22899-neviqimka "View neviqimka's Profile")  Replied by *[neviqimka](/forum/user/22899-neviqimka "View neviqimka's Profile")* on topic *[Shadowbox Media Viewer a duplicate images!](/forum/26-product-category-display/863444-shadowbox-media-viewer-a-duplicate-images?start=20#132487 "-- url of the page with the problem -- :   www.hikashop.com/support/documentation/1...ox-media-player.html  -- HikaShop version -- : Last -- Joomla version -- : 2.5  The plugin Shadowbox Media Viewer a duplicate images. For example on page I have 2 images of some product, but when I click on thumbnail in the bottom of Shadowbox window displays 1 of 3 :blink: , but on page uploaded only 2 images. The Shadowbox Media Viewer a duplicated first image and display second image normal.")*

> You still have the plugin for HikaShop-Shadowbox, unless I asked you several time to remove/unpublish it.

Ok, but where is this plugin witch I want to disable? I have only plg_shadowbox_40 (Shadowbox Media Viewer) and some HikaShop plugins, but I don't see nothing like on HikaShop-Shadowbox.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjM0NDQtc2hhZG93Ym94LW1lZGlhLXZpZXdlci1hLWR1cGxpY2F0ZS1pbWFnZXM/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) 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: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

13 years 1 week ago [\#132519](#132519) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Shadowbox Media Viewer a duplicate images!](/forum/26-product-category-display/863444-shadowbox-media-viewer-a-duplicate-images?start=20#132519 "-- url of the page with the problem -- :   www.hikashop.com/support/documentation/1...ox-media-player.html  -- HikaShop version -- : Last -- Joomla version -- : 2.5  The plugin Shadowbox Media Viewer a duplicate images. For example on page I have 2 images of some product, but when I click on thumbnail in the bottom of Shadowbox window displays 1 of 3 :blink: , but on page uploaded only 2 images. The Shadowbox Media Viewer a duplicated first image and display second image normal.")*

Hi,

You have installed template overrides :
[ www.hikashop.com/support/documentation/6...tation.html#override](http://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#override)

Using the file coming from there:
[ www.hikashop.com/support/documentation/1...ox-media-player.html](http://www.hikashop.com/support/documentation/104-integration-with-shadowbox-media-player.html)

And you have to remove these override files.

Clear enough ?

---

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

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

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

Less More

- Posts: 126
- Thank you received: 0
-
-

13 years 1 week ago [\#132548](#132548) by [neviqimka](/forum/user/22899-neviqimka "View neviqimka's Profile")  Replied by *[neviqimka](/forum/user/22899-neviqimka "View neviqimka's Profile")* on topic *[Shadowbox Media Viewer a duplicate images!](/forum/26-product-category-display/863444-shadowbox-media-viewer-a-duplicate-images?start=20#132548 "-- url of the page with the problem -- :   www.hikashop.com/support/documentation/1...ox-media-player.html  -- HikaShop version -- : Last -- Joomla version -- : 2.5  The plugin Shadowbox Media Viewer a duplicate images. For example on page I have 2 images of some product, but when I click on thumbnail in the bottom of Shadowbox window displays 1 of 3 :blink: , but on page uploaded only 2 images. The Shadowbox Media Viewer a duplicated first image and display second image normal.")*

If I have characteristics on product page I need override HikaShop file, if I don't use characteristics I don't need intalled override. Do I understand correctly?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjM0NDQtc2hhZG93Ym94LW1lZGlhLXZpZXdlci1hLWR1cGxpY2F0ZS1pbWFnZXM/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) 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: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

13 years 1 week ago [\#132592](#132592) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Shadowbox Media Viewer a duplicate images!](/forum/26-product-category-display/863444-shadowbox-media-viewer-a-duplicate-images?start=20#132592 "-- url of the page with the problem -- :   www.hikashop.com/support/documentation/1...ox-media-player.html  -- HikaShop version -- : Last -- Joomla version -- : 2.5  The plugin Shadowbox Media Viewer a duplicate images. For example on page I have 2 images of some product, but when I click on thumbnail in the bottom of Shadowbox window displays 1 of 3 :blink: , but on page uploaded only 2 images. The Shadowbox Media Viewer a duplicated first image and display second image normal.")*

No you don't understand correctly.

---

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

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

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

Less More

- Posts: 126
- Thank you received: 0
-
-

13 years 1 week ago [\#132619](#132619) by [neviqimka](/forum/user/22899-neviqimka "View neviqimka's Profile")  Replied by *[neviqimka](/forum/user/22899-neviqimka "View neviqimka's Profile")* on topic *[Shadowbox Media Viewer a duplicate images!](/forum/26-product-category-display/863444-shadowbox-media-viewer-a-duplicate-images?start=20#132619 "-- url of the page with the problem -- :   www.hikashop.com/support/documentation/1...ox-media-player.html  -- HikaShop version -- : Last -- Joomla version -- : 2.5  The plugin Shadowbox Media Viewer a duplicate images. For example on page I have 2 images of some product, but when I click on thumbnail in the bottom of Shadowbox window displays 1 of 3 :blink: , but on page uploaded only 2 images. The Shadowbox Media Viewer a duplicated first image and display second image normal.")*

> Jerome wrote: No you don't understand correctly.

![:)](/media/kunena/emoticons/3.png ":)")

Thank you in general, the problem was solved

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

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