Quote Originally Posted by BlessIsaacola View Post
I upgraded to 1.5 and everything was fine except for a minor issue I am currently experiencing.

SCENARIO 1: If Gallery Mode and Include Main Image in Gallery are both set to true zen light works fine except that the main image is included as an additional image. This means if you have one image (main product image) when you enlarge, you actually get 2 copies of the same image being displayed as 1 of 1 and 1 of 2. This I think should be expected based on the configuration setting.

SCENARIO 2: If Gallery Mode is set to true and Include Main Image in Gallery is set to false zen light doesn't work right. When you click on large image the main image is enlarged but none of the additional images are displayed and the next and previous buttons are gone. This to me appears to be a bug.

SCENARIO 3: If Gallery Mode and Include Main Image in Gallery are both set to false zen light does work either. It displays the main image on clicking large image but none of the additional images are displayed.

I don't mind the configuration setting in 1 except that it's not user friendly displaying duplicate image. It's also not user friendly to display the same image twice when only one image is present.

It looks like this code may have something to do with it:
PHP Code:
<?php
if (ZEN_LIGHTBOX_STATUS == 'true') {
  if (
ZEN_LIGHTBOX_GALLERY_MODE == 'true' && ZEN_LIGHTBOX_GALLERY_MAIN_IMAGE == 'true') {
    
$rel 'lightbox-g';
  } else {
    
$rel 'lightbox';
  }
?>
Any help is appreciated.
Hello, I have witnessed the same issue and am rather baffled as when I tested lightbox (v1.5) on my local copy of ZenCart (v1.3.8a) (running on a windaz machine), the feature worked quite well (no duplication of the main image, with or without the gallery mode).

The other issue I faced was with the install script (I have now seen various posts with similar issues so I am not going to repeat that here). It looks to me like a configuration issue than any flawed logic in the PHP code.

Well, it's an annoyance to see the same image twice but lightbox is still far better than the horrible default pop up window.