Sunday, July 8, 2012

How to display product with specific height and width in magento?


$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

Please mention your comments.......