In standard Magento a shopper can pick only one value per filter: after choosing “Red”, the color filter disappears, and there is no way to see red and blue shirts together. This module adds display types per product attribute, so a filter can take several values at once, show its values as tiles, or start open in the Luma theme instead of showing only its name.
Features
- “Multi Select”: the filter shows check boxes, shoppers can select several values, and products with any of them are shown (red or blue). Different filters still narrow each other down.
- The filter stays visible while values are selected, and its counts show how many products match each value together with the other filters, not only within the current selection.
- Each selected value is listed in “Now Shopping by” and can be removed on its own; selected values stay in the list of the filter even when another filter leaves no products with them.
- “Single Tile” and “Multi Tile”: the values are shown as tiles side by side, selected tiles are outlined. The tiles look like the size swatches of configurable products.
- “Expanded in Layered Navigation”: the filter shows its values when the page opens. Filters with selected values open by themselves, and several filters can be open at once.
- The selected values are part of the URL (for example
?material=35,37), so filtered pages can be bookmarked and shared. - Works on category pages and search result pages.
Configuration
Go to Stores > Attributes > Product, open an attribute and its tab “Storefront Properties”. Below “Position” there are two new fields:
- “Display Type in Layered Navigation”: “Single Select” (Magento’s list, the default), “Multi Select”, “Single Tile” or “Multi Tile”. It applies to attributes with the input type “Dropdown” or “Multiple Select”; swatch attributes keep Magento’s swatches.
- “Expanded in Layered Navigation”: whether the filter starts open.
Good to know
For a filter with selected values, the store makes one additional search to count its values. “Expanded in Layered Navigation” changes the accordion of the Luma theme and themes based on it; themes that show all filters open, like Blank, are not changed. There is no Hyvä companion module yet.
Installation
Install the module with Composer in your Magento root directory:
composer require infrangible/m2-catalog-filter-advancedThen enable it and update the store as described in the installation guide. Composer installs the required modules listed on this page automatically.