I have to display small images of products loaded by collection. Problem is (I think it is), that products (coming from collection) by default doesn't containt any images within. I have tried addAttributeToSelect()
, but it seems to be more complex. Another possible solution is quering for image, inside loop for every product separately, but it seems to be impacting performance. I haven't found any predefined method to add media gallery to product collection. Has someone played with that?
EDIT: product->load('media_gallery')
does work but I am not sure about it.. Is it impacting performance and is it clean way to achieve it?