Web Analytics

Fill the form & Get Installation Support

    Get all the attributes which are used in layered navigation in category & search page.

    You can get all the filterable attribute list from Magento\Catalog\Model\ResourceModel\Product\Attribute\CollectionFactory class.

    As a result, you will get that,

    all those attributes which have been used in Layered Navigation status are Filterable (with results) or Filterable (no results).

    So, you need to create __construct( ) function for define dependency of Class.

    Now call a function in template file by iterating over a loop to fetch each attribute code,

    You can get all the filterable attribute used for your store.

    The Result


    Fill the below form if you have any Magento programming need.

      Recent Articles

      Author Info

      Author Image

      Magento Certified Developer

      Hire J. Lakum

      Get a Free Quote

        Let our Magento expert connect to discuss your requirement.

          We offer Magento
          certified developers.

          Our Magento clientele
          is 500+.

          We sign NDA for the
          security of your projects.

          We’ve performed 100+
          Magento migration projects.

          Free quotation
          on your project.

          Three months warranty on
          code developed by us.