← All modules

Magento 2 module

Catalog Product Filter Url

Carries the selected layered navigation filters into product links, so a shopper who filtered by color or size lands on the product page with that variant preselected.

A shopper filters a category by “Color: Blue” and “Size: M”, clicks a configurable product and then has to select blue and M again on the product page. This module removes that extra step: product links on filtered category pages and search result pages carry the selected filter values, and the product page can use them to preselect the matching options.

Features

  • Product links in filtered category listings and search results get the active attribute filters appended.
  • Works with all product attributes that are used in layered navigation.
  • Multiple selected values and multiple filters are passed along.
  • In the standard Magento frontend (Luma), configurable product pages read these values and preselect the matching color, size or other options, so the shopper sees the chosen variant right away.
  • The values are added as the part of the address after ”#”, so the product page address itself stays the same and search engines see no additional URLs.

Configuration

There is nothing to configure. The module works right after installation on category pages and search result pages.

Good to know

For stores using the Hyvä theme, install the companion module “Catalog Product Filter Url Hyvä Theme”, which adds the option preselection on Hyvä product pages.

Installation

Install the module with Composer in your Magento root directory:

composer require infrangible/m2-catalog-product-filter-url

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

Using the Hyvä theme? Also install the companion module Catalog Product Filter Url Hyvä Theme:

composer require infrangible/m2-catalog-product-filter-url-hyva