Thursday 18 September 2014

how to get category thumbnail image in magento

<?php  $catId = $_category->getId(); ?>
<?php $thumb = Mage::getModel('catalog/category')->load($catId)->getThumbnail();?>
<img src="<?php echo Mage::getBaseUrl('media').'catalog/category/'.$thumb;?>" >

1 comment:

  1. This free magento 2 extension adds a file upload thumbnail field to the category edit form and saves to image to the category.
    https://webpanda-solutions.com/free-extensions/category-thumbnail.html

    ReplyDelete