Zen Cart Logo
Forums / All Other Contributions/Addons / How do I show the main image as a thumbnail with the additional images?

How do I show the main image as a thumbnail with the additional images?

Views: 1,850

Results 1 to 4 of 4
2 Sep 2008, 10:09 PM
#1
rikahsdesign avatar

rikahsdesign

New Zenner

Join Date:
Sep 2008
Location:
Orlando, FL
Posts:
3
Plugin Contributions:
0

How do I show the main image as a thumbnail with the additional images?

Does anyone know of an add on that will show the main product image as a thumbnail along with the additional images? I am already using the Swap Images via MouseOver or Click add on to make the main image swap with a mouse click but it would be helpful if the main image would show with the additional images without having to upload it twice.

If not it looks like modifying the includes\modules\additional_images.php file can do it but this is not necessarily easy for me. Your help is appreciated.

29 Nov 2008, 9:06 PM
#2
phoolishsan avatar

phoolishsan

New Zenner

Join Date:
Nov 2008
Posts:
1
Plugin Contributions:
0

Re: How do I show the main image as a thumbnail with the additional images?

Just solved this problem on my own. Thought that someone else could use the information.

$images_array[] = substr_replace($products_image_match,'',-1).$products_image_extension;

I added this snippet to line 58 before the sizeof and sort of the images_array of the includes/YOUR_TEMPLATE_NAME/additional_images.php

That should call the correct image and give you a thumbnail of your main image along with the additional images.

Hope it helps.

6 Dec 2008, 6:55 PM
#3
robbie_79 avatar

robbie_79

New Zenner

Join Date:
Oct 2008
Location:
Netherlands
Posts:
26
Plugin Contributions:
0

Re: How do I show the main image as a thumbnail with the additional images?

nice... was planning to do this, so u saved me some time with this ;)

24 Jan 2011, 2:45 AM
#4
cv733 avatar

cv733

New Zenner

Join Date:
Jan 2011
Posts:
6
Plugin Contributions:
0

Re: How do I show the main image as a thumbnail with the additional images?

Thanks for posting this information. I have been wanting to do the same for my zen store, but I’m not adept at knowing where to change files or the specific code to enter.

I have a gloss black template, so my files may be sorted a little differently than yours.
My additional images.php file has:

Line 31 to Line 33:
if (!defined('IMAGE_ADDITIONAL_DISPLAY_LINK_EVEN_WHEN_NO_LARGE')) define('IMAGE_ADDITIONAL_DISPLAY_LINK_EVEN_WHEN_NO_LARGE','Yes');

$images_array = array();

Line 119 to 123
: if (sizeof($images_array)) {

  sort($images_array);

}

Would either of these be correct for the placement of the code?    Would I just add the EXACT code you entered above, directly above Line 119?   As I am new to coding, help in what to enter and where would be a huge help.