Created
July 7, 2015 12:30
-
-
Save sandermangel/d112f49a014f24eebcdb to your computer and use it in GitHub Desktop.
Get resized product image without loading product
This file contains 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