I'm trying to get all the the different kind of product images from the Media-gallery (see code below). Product with the black-11
SKU is my black-product but it doesn't show that product image. What is wrong with the code. I noticed this with all the product so maybe it's a sorting problem or initiating
<?php
require '../app/Mage.php';
Mage::app("default");
$gallery_images = Mage::getModel('catalog/product')->load('black-11')->getMediaGalleryImages();
$items = array();
foreach($gallery_images as $g_image) {
echo "URL: " . $g_image['url'] . "<br/>";
}
?>