Jump to content

[SOLVED]Product images not appearing under List of Product by Manufacturers when viewed in IE


Recommended Posts

When I checked, the width and height values are wrong under the img tag (They show as 1) therefore they don't appear. The list under Category works fine. Any ideas why? Is it because I changed the word Manufacturing to Brand? (I did this under Admin | Translation | Front Office & Module). I have also tried to remove what I've changed to no avail.

The images appear OK when viewed with Chrome or Safari.

As of now I removed this piece of code

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

under product-list.tpl, I know it's cheating but it solved the problem so far. Would this creates another problem in the future?

TIA,
boy

32387_bBBJvOyr32WS99OKkG68_t

Link to comment
Share on other sites

It's a bug in PrestaShop v1.3.2 that has been fixed on SVN. You need to change lines 34-37 of supplier.php from:

$smarty->assign(array(
   'nb_products' => $nbProducts,
   'products' => $object->getProducts($id, intval($cookie->id_lang), intval($p), intval($n), $orderBy, $orderWay),
   $objectType => $object));



to:

$smarty->assign(array(
   'nb_products' => $nbProducts,
   'products' => $object->getProducts($id, intval($cookie->id_lang), intval($p), intval($n), $orderBy, $orderWay),
   'homeSize' => Image::getSize('home'), 
   $objectType => $object));



You need to do a similiar thing with new-products.php and prices-drop.php.

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