Shadowbox counter wrong

  • Posts: 27
  • Thank you received: 4
9 years 8 months ago #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_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"



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"



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

Attachments:
Last edit: 9 years 8 months ago by fengel.

Please Log in or Create an account to join the conversation.

  • Posts: 83306
  • Thank you received: 13471
  • MODERATOR
9 years 8 months ago #205443

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->setLayout('show_block_img');
echo $this->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

Please Log in or Create an account to join the conversation.

Time to create page: 0.058 seconds
Powered by Kunena Forum