Closed Dragony closed 10 years ago
As of 3.0.6, use $model->ProductPhotos which is the new feature that will return everything consistently. getImages() has been deprecated. (getImages returned differently for one image vs multiple because the photo viewer at the time handled individual and mutliple differently. With the introduction of CloudZoom in 3.0.6 we created a new function to avoid breaking backwards compatibility.)
Thanks for your fast reply :)
It would be great if things like this would be documented in the code.
Hello!
When running Product::getImages() on a product with uploaded images the function returns an Array of images. Ex:
But when a product does not have any images, it returns the "no_product.png" image as a single result. Ex:
This behavior is inconsistent. When a product does not have any images it should return a list of 1 images like so:
Because in the end I don't care what kind of image i am given. I will use it like any other image on my website. That is what placeholder images are for.
Best Regards Mattias