load($id); // Use your Product Id instead of $id $countt = count($Products_one->getMediaGalleryImages()); if($countt>0){ foreach ($Products_one->getMediaGalleryImages() as $_image) { // For the Original Image echo "url)." alt='' />"; //For gallery Image $resizeimage = $obj->helper('catalog/image')->init($_product, 'thumbnail', $_image->getFile())->backgroundColor(242,242,243)->resize(400,300); echo ""; } }
Hope it Helps... Thanks....
No comments:
Post a Comment