Magento get full product image url


Magento get full product image url – You can get full image url image using the Mage::helper(‘catalog/image’). You can get thumbnail, full image or you can resize this image as per your need. Here is an example of magento full product image url.


Magento get full product image url Example with Syntax

Steps to get full image url in from magento product collection.

Here we are going to get product image urls from collection

$collection = Mage::getModel('catalog/product')
                        ->getCollection()
                        ->addAttributeToSort('created_at', 'DESC')
                        ->load();
foreach ($collection as $product){
         $fullPath = Mage::helper('catalog/image')->init($product, 'image')->resize(135,135);
         
}


Advertisements

Add Comment

📖 Read More