I want to get the image by its label, inside a bundle product's each options selection item. Each selection item is a simple product.
echo Mage::getModel('catalog/product')->load($product_id) ->getMediaGalleryImages()->getItemByColumnValue('label', $preview_label_standing) ->getUrl();
The file I am calling the above code is from the path
$product_id contains simple product id and
$preview_label_standing contains the label i have given for my image from the backend.
P.s. And I want to add one more thing the same code is working in my localhost, but not in server :(
Many thanks in advance.