How can i display all product images in product detail page? I need to display all products images at the same time (no carousel) and mantain magnifier zoom functionalities qnd Swatch image change options

1 Answer 1


Use the below function on product object

   $images =  $product->getMediaGalleryImages();

you will receive a collection of images in $images

  • Yes it works thanks but there is not a simple way to mantain magnifier zoom functionalities?
    – Altravista
    Jul 30, 2018 at 14:02
  • Now please tick my ans
    – Avesh Naik
    Jul 30, 2018 at 14:03
  • but i need to mantain magnifier zoom functionalities, i have updete my question. if no one get a better unswer i will tick your thanks a lot
    – Altravista
    Jul 30, 2018 at 14:10
  • Well i am not a frontend guy who is in more on design. You should check this one devdocs.magento.com/guides/v2.2/javascript-dev-guide/widgets/… This will help you to use it.
    – Avesh Naik
    Jul 30, 2018 at 14:15
  • but is it possible there is no a simple way to display all images instead of carousel without rewrite all code? it's seems to be strange.
    – Altravista
    Jul 30, 2018 at 14:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.