Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / product preview page settings

product preview page settings

Locked

Views: 1,549

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
14 Mar 2009, 5:50 AM
#1
jenpen avatar

jenpen

Zen Follower

Join Date:
Sep 2007
Location:
Far South Coast, NSW, Australia
Posts:
427
Plugin Contributions:
0

product preview page settings

This is pretty niggly, but when I set up a product and click 'preview' to check the description etc, the product image is distorted. Where can I change the image size on that page? Jen

14 Mar 2009, 5:59 AM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,182
Plugin Contributions:
0

Re: product preview page settings

jenpen:

This is pretty niggly, but when I set up a product and click 'preview' to check the description etc, the product image is distorted. Where can I change the image size on that page? Jen

Jen,
admin panel/ configuration/ images

14 Mar 2009, 6:12 AM
#3
jenpen avatar

jenpen

Zen Follower

Join Date:
Sep 2007
Location:
Far South Coast, NSW, Australia
Posts:
427
Plugin Contributions:
0

Re: product preview page settings

Thanks Haredo, but then which setting exactly? I tried the "heading image height and width - admin" but that wasn't it. Jen

14 Mar 2009, 6:16 AM
#4
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,182
Plugin Contributions:
0

Re: product preview page settings

jenpen:

Thanks Haredo, but then which setting exactly? I tried the "heading image height and width - admin" but that wasn't it. Jen

Jen,
I am sorry, it will always look this way.
Good question, I have not read nor ask the Zen Developers why this looks like it is...

14 Mar 2009, 6:21 AM
#5
jenpen avatar

jenpen

Zen Follower

Join Date:
Sep 2007
Location:
Far South Coast, NSW, Australia
Posts:
427
Plugin Contributions:
0

Re: product preview page settings

Well it's only me that sees it, but it would be great to change it. All our images are square. Thanks anyway.

14 Mar 2009, 6:23 AM
#6
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,182
Plugin Contributions:
0

Re: product preview page settings

Jen,
you are most welcome, I know a pesty little miscue we like to sweep under the rug...

23 Jul 2009, 7:56 PM
#7
lovere avatar

lovere

Zen Follower

Join Date:
Jul 2004
Location:
Nevada City, CA
Posts:
95
Plugin Contributions:
0

Re: product preview page settings

I found the problem and have two imperfect solutions. I opted for the second.

The width and height use the same settings as for your main product image, set in Admin->Configuration->Images.

However, the code ignores the "Use Proportional Images on Products and Categories" setting.

So, you can do one of two things:

  1. blank out either "Small image height" or "Small image width" in admin
  2. Edit a core file

The first option has the disadvantage of not letting you control the width and height of the images on the product landing pages.

The second option means you will have to merge files when upgrading. Here are instructions:

edit admin/includes/modules/product/preview_info.php, line 142.

Change:

echo zen_image(DIR_WS_CATALOG_IMAGES . $products_image_name, $pInfo->products_name, SMALL_IMAGE_WIDTH,  SMALL_IMAGE_HEIGHT, 'align="right" hspace="5" vspace="5"') . $pInfo->products_description;

To this:

 echo zen_image(DIR_WS_CATALOG_IMAGES . $products_image_name, $pInfo->products_name, SMALL_IMAGE_WIDTH,  '', 'align="right" hspace="5" vspace="5"') . $pInfo->products_description;

This puts a blank value in the height requirement for zen_image, causing the image to not look stretched. It uses the width set in admin.

If anyone else, who has a better understanding of how zen_image() works, please feel free to pipe in on this.

25 Jul 2009, 6:27 AM
#8
jenpen avatar

jenpen

Zen Follower

Join Date:
Sep 2007
Location:
Far South Coast, NSW, Australia
Posts:
427
Plugin Contributions:
0

Re: product preview page settings

Hey, thanks for this. I'm about to go on holiday for a week but will certainly check this out when I get back. Cheers.