Thursday, June 4, 2015

Magento - how to get product all image in magento

Magento - how to get product all image in magento

<?php
$product = Mage::getModel('catalog/product')->load($_product->getId());
             foreach ($product->getMediaGalleryImages() as $image) {
                        echo var_export($image->getUrl());
                       
   } ?>

No comments :

Post a Comment