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

#   Shadowbox counter wrong

##

- **[fengel](/forum/user/37465-fengel "View fengel's Profile")**
- [![fengel's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar37465.jpg)](/forum/user/37465-fengel "View fengel's Profile") Topic Author
- [ Offline](/forum/user/37465-fengel)

Less More

- Posts: 27
- Thank you received: 4
-
-

11 years 5 months ago -  11 years 5 months ago [\#205420](#205420) by [fengel](/forum/user/37465-fengel "View fengel's Profile")  *[Shadowbox counter wrong](/forum/30-integrations/877654-shadowbox-counter-wrong#205420 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.10 -- Browser(s) name and version -- : Firefox 38.0.5  SETUP Image popup mode: shadowbox (external) Using default show&#95;block&#95;img.php view Localhost  STEPS  1. I go to a product page that has 3 images on product level. The product has 3x3 characteristics = 9 variants  2. Without hovering over any of the thumbnails, I click on the main image to show Shadowbox. The caption says &quot;1 of 27&quot;  3. Click out of the shadowbox and hover over any of the thumbnails  4. Click on main image again and the caption now says &quot;1 of 3&quot;  The &quot;27&quot; seems to come from 3 images x 9 variants. How do I fix this? I am pretty sure the Shadowbox is picking up the hidden divs that contain the remaining 24 images")* was created by *[fengel](/forum/user/37465-fengel "View fengel's Profile")*

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.3.10
-- Browser(s) name and version -- : Firefox 38.0.5

**SETUP**
Image popup mode: shadowbox (external)
Using default *show\_block\_img.php* view
Localhost

**STEPS**

1. I go to a product page that has 3 images on product level. The product has 3x3 characteristics = 9 variants

2. Without hovering over any of the thumbnails, I click on the main image to show Shadowbox. The caption says "1 of 27"

[ ![Snap&#95;2015-06-19&#95;at&#95;11&#95;25&#95;11.jpg](/forum/attachment/24999) ](/forum/attachment/24999 "...t&#95;11&#95;25&#95;11.jpg")

3. Click out of the shadowbox and hover over any of the thumbnails

4. Click on main image again and the caption now says "1 of 3"

[ ![Snap&#95;2015-06-19&#95;at&#95;11&#95;25&#95;37.jpg](/forum/attachment/25000) ](/forum/attachment/25000 "...t&#95;11&#95;25&#95;37.jpg")

The "27" seems to come from 3 images x 9 variants. How do I fix this?
I am pretty sure the Shadowbox is picking up the hidden divs that contain the remaining 24 images

- [ ![Snap&#95;2015-06-19&#95;at&#95;11&#95;25&#95;11.jpg](/forum/attachment/24999) ](/forum/attachment/24999 "...t&#95;11&#95;25&#95;11.jpg") [ ](/forum/attachment/24999?download=1 "...t&#95;11&#95;25&#95;11.jpg")
- [ ![Snap&#95;2015-06-19&#95;at&#95;11&#95;25&#95;37.jpg](/forum/attachment/25000) ](/forum/attachment/25000 "...t&#95;11&#95;25&#95;37.jpg") [ ](/forum/attachment/25000?download=1 "...t&#95;11&#95;25&#95;37.jpg")

Last edit: 11 years 5 months ago by [fengel](/forum/user/37465-fengel "View fengel's Profile").

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

11 years 5 months ago [\#205443](#205443) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Shadowbox counter wrong](/forum/30-integrations/877654-shadowbox-counter-wrong#205443 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.10 -- Browser(s) name and version -- : Firefox 38.0.5  SETUP Image popup mode: shadowbox (external) Using default show&#95;block&#95;img.php view Localhost  STEPS  1. I go to a product page that has 3 images on product level. The product has 3x3 characteristics = 9 variants  2. Without hovering over any of the thumbnails, I click on the main image to show Shadowbox. The caption says &quot;1 of 27&quot;  3. Click out of the shadowbox and hover over any of the thumbnails  4. Click on main image again and the caption now says &quot;1 of 3&quot;  The &quot;27&quot; seems to come from 3 images x 9 variants. How do I fix this? I am pretty sure the Shadowbox is picking up the hidden divs that contain the remaining 24 images")*

Hi,

This is a known issue. We didn't find a correct solution to it to work in all cases.
As a fix, and supposing that all your variant images are the same, you can remove the code:
$this-&gt;setLayout('show_block_img');
echo $this-&gt;loadTemplate();
from the file "show" of the view "product" to remove the hidden images of variants so the images won't change when you change the variants selection.

Another solution is to not use shadowbox but the default image popup display.

The following user(s) said Thank You: [fengel](/forum/user/37465-fengel "View fengel's Profile")

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

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