Jump to content

[SOLVED] no image display on IEs


Recommended Posts

At first I thought my website is the only one with this kind of bug. my images on new items are not displaying on IE but with FF it is ok. I kept on thinking and configuring my css codes to make it show until I try to check the demo page of prestashop. http://www.prestashop.com/demo/new-products.php If you look at it on FF it is ok but try to check it on any IE version even latest, it is not showing. So my conclusion is that it is a native bug to this version of Prestashop 1.3.2.3 - 0.230s. This is the latest I have downloaded on the download section. Can someone help me figure this thing out? Thanks!

31215_lmSMFpUaTsUqBzz1rRNS_t

Link to comment
Share on other sites

Strange bug but it happens. Problem is that image size (homeSize variable) is not forwarded to product-list.tpl so width and height are empty. But in IE for some reason it is not width="" but width="1" ( default values I guess) so image is there but it is 1x 1 px :-)

Following change should fix that.
In new-products.php change

$smarty->assign(array(
   'products' => Product::getNewProducts(intval($cookie->id_lang), intval($p) - 1, intval($n), false, $orderBy, $orderWay),
   'nbProducts' => intval($nbProducts)));



to

$smarty->assign(array(
   'products' => Product::getNewProducts(intval($cookie->id_lang), intval($p) - 1, intval($n), false, $orderBy, $orderWay),
   'homeSize' => Image::getSize('home'),
   'nbProducts' => intval($nbProducts)));



EDIT: This was already reported and solution is given here

Link to comment
Share on other sites

  • 3 weeks later...

Hi.

Thanks razaro - it works.
It has to be done also with best-sales.php, prices-drop.php...


There is the same issue with Manufacturer product-list.
Any idea how (where) to solve that?

***************
EDIT
has to be done in suppliers.php

***************


Regards,
Tomaz

Link to comment
Share on other sites

  • 2 years later...

I know it's an old topic, but it's just the only one I found.

I have same problems, when I clone default theme as "default02" (or any other name), on IE9 images dissapear :blink:

If I go back to original theme, images display correctly

How it can be possible?

Thanks in advanced

Link to comment
Share on other sites

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...