ltay13 Posted June 26, 2013 Share Posted June 26, 2013 (edited) I have recently upgraded to V1.5 and have recreated our theme starting with the new default theme. I am noticing one problem, in the recently viewed block, SOMETIMES the (medium) image shown is the default (missing image) picture. It works about half the time and not the other half. I CAN see the medium sized images always when I actually click on the product and it is displaying them under the main image. Which leans me towards thinking the issue is on the module side seeing as the images clearly exist and work elsewhere. I've tried regenerating the thumbnails a bunch of times without any change. Any ideas? Edited June 26, 2013 by ltay13 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted June 26, 2013 Share Posted June 26, 2013 check the module .php file Well I could not resist and narrowed this down to one single line.Changing line 108 from this: LEFT JOIN '.DB_PREFIX.'image i ON (i.id_product = p.id_product)'. To this: LEFT JOIN '.DB_PREFIX.'image i ON (i.id_product = p.id_product AND i.cover = 1)'. Fixes the image issue. Link to comment Share on other sites More sharing options...
ltay13 Posted June 26, 2013 Author Share Posted June 26, 2013 Perfect, thanks! Is this a bug then? Should we raise it as an issue on the prestashop git so that it gets a patch? Link to comment Share on other sites More sharing options...
vekia Posted June 26, 2013 Share Posted June 26, 2013 i think that the new version will have got fix for this, anyway, you checked this code and it works for you? Link to comment Share on other sites More sharing options...
ltay13 Posted June 26, 2013 Author Share Posted June 26, 2013 Yes it works fine for me. Link to comment Share on other sites More sharing options...
Recommended Posts