To get all images of product including exclude images in magento , you can look at this code and find out what is the code we must use to get all images.
This code is located in Mage_Catalog_Model_Product line 1010.
public function getMediaGalleryImages() { if(!$this->hasData('media_gallery_images') && is_array($this->getMediaGallery('images'))) { $images = new Varien_Data_Collection(); foreach ($this->getMediaGallery('images') as $image) { if ($image['disabled']) { continue; } $image['url'] = $this->getMediaConfig()->getMediaUrl($image['file']); $image['id'] = isset($image['value_id']) ? $image['value_id'] : null; $image['path'] = $this->getMediaConfig()->getMediaPath($image['file']); $images->addItem(new Varien_Object($image)); } $this->setData('media_gallery_images', $images); } return $this->getData('media_gallery_images'); }
You’re right. the code is : $this->getMediaGallery(‘images’) . Good luck .
POST HASN'T TAG.
Kiran Patil
April 10
Thanks, now i can able to show excluded images in product details page.