Jump to content

[Solved] Images in Internet Explorer


Recommended Posts

Hi all,

I've been developing primarily in Firefox and just having checked on Internet Explorer for some reason the images aren't showing in Viewed Products?

<img />getImageLink($viewedProduct->link_rewrite, $viewedProduct->cover, 'small')}" height="{$smallSize.height}" width="{$smallSize.width}" alt="{$viewedProduct->legend|escape:htmlall:'UTF-8'}"

is the offending code - as when I alter every instance of 'small' to be 'medium' they will once again show in Internet Explorer! I can't remember if the 'small' size is one I made via the BO or not... has anyone else had this problem and/or know how to fix this!?

EDIT: Just to add to this, I also used the same technique (creating a home size) which applys to the Specials box... and again the image doesn't show in i.e. either!

And to clarify... I have regrenerated thumbnails.

Cheers,

Lee

32855_lmJKgDISz3IAnhSQfKqJ_t

Link to comment
Share on other sites

Solved!

The problem was the coding

height="{$homeSize.height}" width="{$homeSize.width}" 



for example was being returned in the html as height=" " and width = " " which was fine in Firefox, but Internet Explorer wasn't keen! Therefore removing this did the trick (as the images should be that size anyway!)

This might only be a work around but it did the trick

  • Like 1
Link to comment
Share on other sites

  • 4 months later...

I would love to know if there is another solution to this problem. I am having the same issue but I don't want to remove the width and height.

I created a new size that I want to use but I don't know where to assign the variable. $homeSize obviously refers to the home image size but it must be declared first. Does anyone know where I can add that declaration in order to be able to use the new image size?

Thanks in advance!

Link to comment
Share on other sites

I have been working on this for 2 days, I post for the first time ... and find the solution 5 minutes later :-) I should post more often!!!

In case anyone else has the same problem - I created a new image size called product. I then added the following code:

'productSize' => Image::getSize('product'),

in the php file of category.php and this resolved the problem. I can now use width="{$productSize.width}" height="{$productSize.height} in my product-list.tpl file and my images appear in IE (8 in any case have not tested earlier browsers).

Link to comment
Share on other sites

  • 1 month later...
  • 4 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...