B-219 Sec-55 Noida, India
+918010221733

Get original image url/path in magento

$productId = 'SOME_PRODUCT_ID';

$product = Mage::getModel('catalog/product')->load($productId);
$productMediaConfig = Mage::getModel('catalog/product_media_config');
$baseImageUrl = $productMediaConfig->getMediaUrl($product->getImage());
$smallImageUrl = $productMediaConfig->getMediaUrl($product->getSmallImage());
$thumbnailUrl = $productMediaConfig->getMediaUrl($product->getThumbnail());
(Visited 46 times, 1 visits today)

Leave a reply