Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Small_image_width ignored ?


symbolism

Recommended Posts

Have a slight problem with images on one of my sites

 

basically

 

If the same image appears twice on the page, such as in the product info and in the reviews box the small_image_width statement seems to being ignored and the image is displayed full width

 

the problem can be seen here

 

http://www.glosticks.co.uk/150mm-15mm-glow-sticks-p-44.html

 

have tried harcoding the image width in products reviews, but with nojoy

 

any help would be appreciated

 

thanks in advance

 

 

Chris

Link to comment
Share on other sites

I had that problem too on a few of my websites...

especially on a website that gets its images from elsewhere so the getimagesize() function does no longer work.

 

if so you will need to modify the $src for this function to work.

in includes/functions/html_output.php

change:

	  if ($image_size = @getimagesize($src)) {

to:

$source = "CORRECTION TO YOUR ABSOLUTE IMAGE PATH HERE" . $src;
  if ($image_size = @getimagesize($source)) {

 

the reason I needed this modification is that I used a .htaccess file to redirect a http request to a different location for the images (I copied a webshop, so it apears identical yet with a different template, name and e-mail and so forth, yet with all the same products and images)

Link to comment
Share on other sites

but in your case I think you have not changed all image functions correctly..

since on the revieuws page you do have them correctly, so my solution is not your problem

 

on your revieuws page you got as source... imagemagic.php?img=images/GS15150b.jpg&w=150&h=86&page=

so that is a contribution I have not used

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...