Tuesday, September 6, 2011

Get Magento Product image path

Here is the easy way to get products image path.
$productId = 1;
$product = Mage::getModel('catalog/product')->load($productId);
$path = Mage::helper('catalog/image')->init($product, 'image')->resize(75, 75);

No comments:

Post a Comment