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() ?>






12 comments:

  1. Thanks for sharing.. I am having trouble while doing this..

    Vitamin C Gel Face Wash

    ReplyDelete
  2. Its a very nice blog and pretty well maintained. Thanks for sharing these kind of posts which is really helpful for a Magento Developer.Keep updating your post.
    buy RED CORAL stone online India

    ReplyDelete
  3. This post is very nice and pretty well maintained. Thanks for sharing this post, keep updating.
    Suppliers Of Color Profile Sheets In Delhi : VIMP

    ReplyDelete
  4. Thanks for this post, very impressive and informative. Keep updating your post.
    Chequered Plate Suppliers In Delhi

    ReplyDelete
  5. I was looking for these kind of posts, thanks for it. This is very nice and well maintained. Keep updating your post.
    ecommerce portals designing company in india

    ReplyDelete
  6. Thanks for this kind of posts, it is really impressive.
    Feryxia

    ReplyDelete