Created
July 7, 2015 12:30
Get resized product image without loading product
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$image = Mage::getResourceModel('catalog/product')->getAttributeRawValue([product_id], 'thumbnail', [store_id]); | |
$product = new Mage_Catalog_Model_Product; | |
$imageUrl = (string)Mage::helper('catalog/image')->init($product, 'thumbnail', $image)->resize(100, 100); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment