Last active
October 12, 2015 06:28
-
-
Save mukundthanki/3985135 to your computer and use it in GitHub Desktop.
Magento: Using Helper Classes in Magento
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
<?php | |
// Get resized Image on list page.( Mage_Catalog_Block_Product_List ) | |
echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(149); | |
// Get attribute | |
$_helper = $this->helper('catalog/output'); | |
echo $_helper->productAttribute($_product, $_product->getName() , 'name'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment