When viewing a list of products in a category in the back office, if an image is too wide, the table gets pushed over the edge of the admin area.
I can see that the image in question is ../img/tmp/product_mini_xx.jpg. However, I cannot see where I can set the dimensions for this image.
What version of PrestaShop are you using? I thought this issue was fixed in PrestaShop v1.3.
Check out Nethercott Constructions for PrestaShop guides and modules. Like us on Facebook for news updates.
You're right. I just tried uploading a very wide photo and the table doesn't display right. So much for it being fixed.
I fixed it by changing line 43 of images.inc.php from:
to:
The image will still be too wide, but the browser will resize it to be no more than 45px wide. It might be worth posting this issue on the bug tracker.
I fixed it by changing line 43 of images.inc.php from:
return '<img src="../img/tmp/'.$cacheImage.'" alt="" class="imgm" />';
to:
return '<img src="../img/tmp/'.$cacheImage.'" width="'.$size.'" alt="" class="imgm" />';
The image will still be too wide, but the browser will resize it to be no more than 45px wide. It might be worth posting this issue on the bug tracker.
Check out Nethercott Constructions for PrestaShop guides and modules. Like us on Facebook for news updates.
From 1282736326:
You're right. I just tried uploading a very wide photo and the table doesn't display right. So much for it being fixed.
I fixed it by changing line 43 of images.inc.php from:
to:
The image will still be too wide, but the browser will resize it to be no more than 45px wide. It might be worth posting this issue on the bug tracker.
I fixed it by changing line 43 of images.inc.php from:
return '<img src="../img/tmp/'.$cacheImage.'" alt="" class="imgm" />';
to:
return '<img src="../img/tmp/'.$cacheImage.'" width="'.$size.'" alt="" class="imgm" />';
The image will still be too wide, but the browser will resize it to be no more than 45px wide. It might be worth posting this issue on the bug tracker.
man thanks man you rock this fix my problem and my images are now small in admin area thanks alot i owe you one man you rock




Back to top








