Web Analytics

Fill the form & Get Installation Support

Any Question or Concerns?
Let's discuss





    Get layered navigation attributes list Magento 2

    Related articles

    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

     

    Contact us for scientific strategies to increase your site conversions





      Connect With Us