Showing posts with label getAttributeCode. Show all posts
Showing posts with label getAttributeCode. Show all posts

Tuesday, 12 April 2016

How to get attribute code in Magento filter.phtml file?

If you want to get attribute code in Magento "filter.phtml" file.



Then use below code in foreach loop: 



<?php echo $_item->getFilter()->getAttributeModel()->getAttributeCode() ?>