Zen Cart Logo
Forums / General Questions / Manufacturer Info images not self adjusted

Manufacturer Info images not self adjusted

Locked

Views: 682

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
28 Jul 2009, 2:34 PM
#1
gamenano avatar

gamenano

Zen Follower

Join Date:
Apr 2009
Location:
London
Posts:
127
Plugin Contributions:
0

Manufacturer Info images not self adjusted

Hi,

I have a problem with the image displaying in the Manufacture Info sidebox. The image is not shrink to the size that fit. I would think will be logi to have a control the size of the image.

http://www.gameaccent.com/index.php?main_page=product_info&products_id=66

Thank you in advance for any help.

Thankl you!

28 Jul 2009, 2:40 PM
#2
aliepinieks avatar

aliepinieks

Zen Follower

Join Date:
Jun 2009
Location:
Brisbane, QLD AUS
Posts:
209
Plugin Contributions:
0

Re: Manufacturer Info images not self adjusted

i believe you can control the size of the images in the admin - configuration/images (although i'm not sure which one here as i control them manually but i do remember this taking effect as i tried it before).

28 Jul 2009, 2:43 PM
#3
gamenano avatar

gamenano

Zen Follower

Join Date:
Apr 2009
Location:
London
Posts:
127
Plugin Contributions:
0

Re: Manufacturer Info images not self adjusted

Thank you ALiepinieks,

I did had a good look at that. But nothing mention about manufacture image. Could you be more specific as which one I should adjust>

Many thanks

Genesis

28 Jul 2009, 2:54 PM
#4
aliepinieks avatar

aliepinieks

Zen Follower

Join Date:
Jun 2009
Location:
Brisbane, QLD AUS
Posts:
209
Plugin Contributions:
0

Re: Manufacturer Info images not self adjusted

yeah i just looked and although it doesn't mention it, i seem to remember it falls back to one of these if nothing else is defined.

another alternaive is to directly edit the template (or at least your version of it) as the function used allows you to pre-define the width/height.

try editing the following file: includes/templates/YOUR_TEMPLATE/sideboxes/manufacturer_info.php.

change the line...

zen_image(DIR_WS_IMAGES . $manufacturer_info_sidebox->fields['manufacturers_image'], $manufacturer_info_sidebox->fields['manufacturers_name'])

to

zen_image(DIR_WS_IMAGES . $manufacturer_info_sidebox->fields['manufacturers_image'], $manufacturer_info_sidebox->fields['manufacturers_name'], XXX, YYY)

... where XXX=width of each image, and YYY=height of each image

i don't use this sidebox so am not 100% sure if this will work as i haven't tested.

cheers
andy

28 Jul 2009, 3:44 PM
#5
gamenano avatar

gamenano

Zen Follower

Join Date:
Apr 2009
Location:
London
Posts:
127
Plugin Contributions:
0

Re: Manufacturer Info images not self adjusted

Thank you so much Andy!

Getting my Dreamwaver out now to do the code change.

Look forward to a nice and tidy sidebox.

:clap:

Cherrs mate

28 Jul 2009, 3:48 PM
#6
aliepinieks avatar

aliepinieks

Zen Follower

Join Date:
Jun 2009
Location:
Brisbane, QLD AUS
Posts:
209
Plugin Contributions:
0

Re: Manufacturer Info images not self adjusted

anytime : )