Jump to content
Jeff Simons Decena

[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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More