Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Additional Images does not show on product page

Additional Images does not show on product page

Locked

Views: 3,673

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
22 May 2009, 2:38 PM
#1
xxdrag0nxx avatar

xxdrag0nxx

New Zenner

Join Date:
May 2008
Posts:
98
Plugin Contributions:
0

Additional Images does not show on product page

Ok, I have searched and tried almost everything on this forum I can find....

Link to the product i am testing:
http://black-tactical.com/store/bags-packs-c-2/h-u-mhydration-utility-multiple-platform-p-8

I confirm it is not a naming / folder problem cos with image handler 2 it shows the additional images fine:

Its not a template problem cos when i try the default classic green template, the images still do not show :(

I view the source code for that page the:

<!--bof Additional Product Images --> <!--eof Additional Product Images -->

Its empty????

Help much appreciated.

22 May 2009, 4:40 PM
#2
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town &amp; London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Additional Images does not show on product page

I cant find the thread on this, but I had a similar issue...
As you are using Image Handler you may be able to "cure" it.
I fixed it by doing this:

There is a file called: includes/classes/bmz_image_handler.class.php

FTP this file to your local drive, make a backup, then open the file for editing.

Right at the bottom, you'll see this code:

        // we should parse old parameters here and possibly merge some inc case they're duplicate
        $parameters .= ($parameters != '') ? ' ' : '';
        return $parameters . 'style="position:relative" onmouseover="showtrail(' . "'$products_image_zoom','$alt',$width,$height,$zoomwidth,$zoomheight,this," . $this->zoom['startx'].','.$this->zoom['starty'].','.$this->zoom['width'].','.$this->zoom['height'].');" onmouseout="hidetrail();" ';
      } 
    }
	}
	
	
}

COMMENT IT OUT, like this... (put double slashes in front of the lines.. eg: //

        // we should parse old parameters here and possibly merge some inc case they're duplicate
//        $parameters .= ($parameters != '') ? ' ' : '';
//        return $parameters . 'style="position:relative" onmouseover="showtrail(' . "'$products_image_zoom','$alt',$width,$height,$zoomwidth,$zoomheight,this," . $this->zoom['startx'].','.$this->zoom['starty'].','.$this->zoom['width'].','.$this->zoom['height'].');" onmouseout="hidetrail();" ';
//      } 
//    }
//	}
//	
//	
//}

Then, directly below that, paste THIS code...

// we should parse old parameters here and possibly merge some inc case they're duplicate
        $parameters .= ($parameters != '') ? ' ' : '';
        if (!($_GET['main_page']==FILENAME_PRODUCT_INFO)) {
        return $parameters . 'style="position:relative" onmouseover="showtrail(' . "'$products_image_zoom','$alt',$width,$height,$zoomwidth,$zoomheight,this," . $this->zoom['startx'].','.$this->zoom['starty'].','.$this->zoom['width'].','.$this->zoom['height'].');" onmouseout="hidetrail();" ';
      } else {
        return $parameters . 'style="position:relative" onmouseover="showtrail(' . "\'$products_image_zoom\',\'$alt\',$width,$height,$zoomwidth,$zoomheight,this," . $this->zoom['startx'].','.$this->zoom['starty'].','.$this->zoom['width'].','.$this->zoom['height'].');" onmouseout="hidetrail();" ';
        }
      } 
    }
    }
    
    
}

Save the file, and FTP it back to its original location. Overwrite the file that's on the server (you have a backup on your hard drive).

See if this fixes your problem.

22 May 2009, 5:05 PM
#3
xxdrag0nxx avatar

xxdrag0nxx

New Zenner

Join Date:
May 2008
Posts:
98
Plugin Contributions:
0

Re: Additional Images does not show on product page

Hi thanks for the quick reply, just tried what you recommended.

It did nothing :(

22 May 2009, 5:16 PM
#4
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town &amp; London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Additional Images does not show on product page

What are your settings for:

Admin->Configuration->Images->Product Info - Number of Additional Images per Row ???

... and... are you storing your additional images in the main images folder?

(With IH2, you put ALL your images in the main folder (main image AND additional images) - dont use MED or LRG folders or the associated suffixes)

22 May 2009, 5:39 PM
#5
xxdrag0nxx avatar

xxdrag0nxx

New Zenner

Join Date:
May 2008
Posts:
98
Plugin Contributions:
0

Re: Additional Images does not show on product page

Admin->Configuration->Images->Product Info - Number of Additional Images per Row = Default 3

... and... are you storing your additional images in the main images folder?

Yup i tried that too did not work,

I tried changing format from jpg to gif - no use

I ensured all extensions are same case - no use

ensured whole pic file name in low case - no use

ensured pic is not too big - no use

23 May 2009, 5:21 AM
#6
xxdrag0nxx avatar

xxdrag0nxx

New Zenner

Join Date:
May 2008
Posts:
98
Plugin Contributions:
0

Re: Additional Images does not show on product page

anyone else experienced this before? :(

23 May 2009, 1:44 PM
#7
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town &amp; London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Additional Images does not show on product page

What happens if you move back to CLASSIC template?

23 May 2009, 2:08 PM
#8
xxdrag0nxx avatar

xxdrag0nxx

New Zenner

Join Date:
May 2008
Posts:
98
Plugin Contributions:
0

Re: Additional Images does not show on product page

One moment I show you

23 May 2009, 2:13 PM
#9
xxdrag0nxx avatar

xxdrag0nxx

New Zenner

Join Date:
May 2008
Posts:
98
Plugin Contributions:
0

Re: Additional Images does not show on product page

Here we go, I have never touched the default template before... thats why I dont believe its a template thing:

Was wonder if there is an on / off switch somewhere or some sort of module that may be causing it :(

23 May 2009, 2:25 PM
#10
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town &amp; London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Additional Images does not show on product page

If the problem is not with a template file, it has to then be another file... class, module... etc

What if you remove Image Handler completely? (you can put it back later).

I think the prob is IH2.

Are you sure you correctly applied the suggested fix posted earlier?

23 May 2009, 2:41 PM
#11
xxdrag0nxx avatar

xxdrag0nxx

New Zenner

Join Date:
May 2008
Posts:
98
Plugin Contributions:
0

Re: Additional Images does not show on product page

Its because of the problems so i installed IH2 in the hope it magically solve the problem :(

I am now going into the Additional Product Images code to see all the php files it relates to hopefully i 'see' something out of place :(

23 May 2009, 2:54 PM
#12
xxdrag0nxx avatar

xxdrag0nxx

New Zenner

Join Date:
May 2008
Posts:
98
Plugin Contributions:
0

Re: Additional Images does not show on product page

Just compared with a vanilla download:

/includes/modules/additional_images.php
/includes/templates/template_default/templates/tpl_modules_additional_images.php

are all unmodified still the same as default :(

23 May 2009, 3:00 PM
#13
xxdrag0nxx avatar

xxdrag0nxx

New Zenner

Join Date:
May 2008
Posts:
98
Plugin Contributions:
0

Re: Additional Images does not show on product page

Ok this is a cheapo fix... for the file:

/includes/templates/template_default/templates/tpl_modules_additional_images.php

I adjust the code 0 to 1

if ($flag_show_product_info_additional_images != 0 && $num_images > 0) {

to

if ($flag_show_product_info_additional_images != 1 && $num_images > 0) {

is this gonna cause any other unforseen problems later? :(