Zen Cart Logo
Forums / General Questions / Change Additional image size to same as Main

Change Additional image size to same as Main

Views: 4,656

Results 1 to 8 of 8
25 Oct 2008, 12:26 AM
#1
toussi avatar

toussi

New Zenner

Join Date:
Aug 2008
Posts:
45
Plugin Contributions:
0

Change Additional image size to same as Main

I searched, couldn't find the answer, what setting in what file must be changed so the additional images are the same size as the main image size, instead of the "small image" size?

25 Oct 2008, 12:35 AM
#2
toussi avatar

toussi

New Zenner

Join Date:
Aug 2008
Posts:
45
Plugin Contributions:
0

Re: Change Additional image size to same as Main

Nevermind I figured it out its in additional images in common, change it to MEDIUM instead of SMALL

17 Nov 2008, 9:58 PM
#3
whosetosay avatar

whosetosay

New Zenner

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

Re: Change Additional image size to same as Main

I am trying to change the size of the additional images. I can't find the "common" file that the previous person posted where she found the problem. Can someone please help? Many thanks!

18 Nov 2008, 4:05 AM
#4
bobdog avatar

bobdog

Totally Zenned

Join Date:
Mar 2006
Location:
Fresno, California
Posts:
590
Plugin Contributions:
0

Re: Change Additional image size to same as Main

admin > configuration > images

set height and width

18 Nov 2008, 11:26 AM
#5
whosetosay avatar

whosetosay

New Zenner

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

Re: Change Additional image size to same as Main

Thank you very much for the response and yes, I do see that but..... which one of the items listed there changes the size for the additional images in admin>images? All I see for additional images there is about the rows.

12 Sep 2009, 5:44 PM
#6
sleigh avatar

sleigh

New Zenner

Join Date:
Sep 2009
Posts:
1
Plugin Contributions:
0

Re: Change Additional image size to same as Main

did anyone ever figure this out?! none of the images that can be changed in configuration→images seem to refer to the additonal images that appear on the product info pages. thanks for any support!

14 Jan 2010, 11:14 PM
#7
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Re: Change Additional image size to same as Main

It can be a bit confusing, becuase it's not clearly named "Additional Image Size".

It's actually controlled by the first item in the list: "Small Image"

The reason is becuase the additional images are part of the "small image" category, and are styled along with all the other small images.

27 Jan 2011, 7:23 AM
#8
christamcc avatar

christamcc

New Zenner

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

Re: Change Additional image size to same as Main

I changed the additional images sizes by editing this file:

includes\modules\additional_images.php

On these lines (89, 90 or maybe 88, 89):
$thumb_slashes = zen_image($base_image, addslashes($products_name), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
$thumb_regular = zen_image($base_image, $products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);

You can change it to:
$thumb_slashes = zen_image($base_image, addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT);
$thumb_regular = zen_image($base_image, $products_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT);

OR a specific width and height:
$thumb_slashes = zen_image($base_image, addslashes($products_name), 225, 300);
$thumb_regular = zen_image($base_image, $products_name, 225, 300);

If you have a template set up then make a template folder to save your changed file into: includes\modules\you_template\additional_images.php

Hope that helps!