← All modules

Magento 2 module

Catalog Attribute Set Filter

Adds an "Attribute Set" filter to layered navigation, so shoppers can narrow category and search results by product type as defined by your attribute sets.

Many stores organise their product types with attribute sets, for example “Shirts”, “Shoes” and “Accessories”. Standard Magento layered navigation cannot filter by attribute set. This module adds an “Attribute Set” filter to the layered navigation on category pages and search results, so shoppers can limit a product list to one kind of product.

Features

  • New “Attribute Set” filter in layered navigation, listing the product attribute sets in alphabetical order.
  • Each option shows the number of matching products in the current product list.
  • Choosing an option filters the product list to products of that attribute set; the selected set appears in the list of applied filters and can be removed there.
  • The attribute set is added to the search index, so the filter also works with the search engine based catalog and search pages.

Configuration

Go to Stores > Configuration > Infrangible Solutions > Catalog Attribute Set Filter > General. The “Visible” setting (per website and store view) controls the filter:

  • “No”: the filter is not shown.
  • “Filterable (with results)”: only attribute sets that have matching products are listed (default).
  • “Filterable (no results)”: all attribute sets are listed, including those without matching products.

Good to know

Attribute set names are shown to shoppers as they are entered in the admin, so give your attribute sets customer-friendly names before enabling the filter. A catalog search reindex is needed after installation so the attribute set information is available in the search index.

Installation

Install the module with Composer in your Magento root directory:

composer require infrangible/m2-catalog-attribute-set-filter

Then enable it and update the store as described in the installation guide. Composer installs the required modules listed on this page automatically.