Quick filter (YMM)

Give customers a row of dropdowns, such as year, make and model, that take them straight to the products that fit. It’s built for car parts, and it works for any store where people shop by compatibility.

Updated 8 min read

Quick filter with Make, Model and Generation dropdowns and a Search button over a car image

Choose the right block

The Quick filter comes in two versions. Both look the same to your customers. The difference is where the dropdown options come from.

Quick collection filterQuick menu filter
Options come fromYour collection filters, filled in automaticallyA Shopify menu that you build
DropdownsUp to 6Up to 3
Customers land onA filtered collection pageAny link: collections, products, pages or another site
Keeps itself up to dateYes, as products changeNo, you edit the menu
Setup timeMinutesHours for a large catalog

Where you can add it

Add the Quick filter (YMM) section to any template, or add a Quick filter block to these sections: Rich text, Image with text, Video banner, Video with text and Collection banner.

Set up the Quick collection filter

1. Prepare your product data

The dropdowns are built from the filters customers already see on your collection pages, so those filters need to exist first.

  1. Store each attribute in a product metafield, for example custom.make, custom.model and custom.year. If a part fits several vehicles, use a list metafield so a product can hold more than one value.
  2. In the free Shopify Search & Discovery app, go to Filters and add a filter for each metafield.
  3. Open the collection on your storefront and check that the filters appear, with the names you expect.

2. Add the block

  1. In your Shopify admin, go to Online Store > Themes and click Customize.
  2. Click Add section and choose Quick filter (YMM). It comes with a heading, some text and a Quick collection filter block.
  3. Select the block. In Use filters from this collection, pick the collection customers should search. You can leave it empty, as explained below.
  4. Under Filter 1, type the Filter name exactly as it appears on the collection page, for example Make. Then set the Dropdown label that customers see, for example Select make.
  5. Repeat for each filter, in the order customers should choose them.
  6. Click Save.
Block settings with filter names Make and Model, next to the matching Make and Model filters on a collection page
Each Filter name matches a filter on the collection page. The dropdown label is what customers see.

If Use filters from this collection is empty, the block uses the current collection when it’s on a collection page. Everywhere else, it uses your All products collection.

How the dropdowns behave

  • Only the first dropdown is active at the start. Each choice fills the next dropdown with values that still have products, so customers never reach a dead end.
  • Changing an earlier choice clears the dropdowns after it.
  • The search button works as soon as the first choice is made, so a customer can search by make alone.
  • Price filters can’t be used as dropdowns. Any other filter can.

Customers land on the collection with their choices applied as filters:

Where customers land
/collections/all?filter.p.m.custom.make=Ford&filter.p.m.custom.model=Focus

The menu version builds its dropdowns from a Shopify menu. Each level of the menu becomes one dropdown, and Shopify menus go three levels deep, so you get up to three dropdowns.

1. Plan the menu

For a large catalog, plan the structure in a spreadsheet before you build anything. It’s much easier to fix a typo in a spreadsheet than in a menu with hundreds of items.

Menu structure
Shop by vehicle          (the menu)
├── Ford                 → /collections/ford
│   ├── Focus            → the Ford collection, filtered by model
│   │   ├── 2018         → filtered by model and year
│   │   └── 2019         → filtered by model and year
│   └── Fiesta           → filtered by model
└── Toyota               → /collections/toyota

Each item can point anywhere. A common pattern is to link each level to the same collection with one more filter applied:

  • Level 1: the make’s collection, such as /collections/ford.
  • Level 2: that collection filtered by model.
  • Level 3: that collection filtered by model and year.

You don’t need to write filter links by hand. On your storefront, open the collection, apply the filters for that menu item, then copy the address from the browser bar.

Copied from the browser
/collections/ford?filter.p.m.custom.model=Focus&filter.v.price.gte=&filter.v.price.lte=

3. Build the menu

  1. In your Shopify admin, go to Content > Menus and click Add menu.
  2. Name it something clear, such as Shop by vehicle.
  3. Add the first-level items, then drag items under them to nest the second and third levels.
  4. Paste the link for each item and click Save menu.
A Shopify menu with nested makes, models and generations, beside the spreadsheet used to plan it
The Alpha demo’s menu, built from a spreadsheet plan.

4. Add the block

  1. In the theme editor, add the Quick filter (YMM) section, or open one you already have.
  2. Click Add block and choose Quick menu filter. You can remove the Quick collection filter block that came with the section.
  3. In Filter menu, choose your new menu.
  4. Set Dropdown 1 label to Dropdown 3 label, for example Make, Model and Year.
  5. Click Save.

Add a Quick filter to the pages customers land on, and turn on Use the filter as sub-navigation. The dropdowns then show what the customer already chose, so they can change one thing, such as the year, without starting again.

The 'Use the filter as sub-navigation' setting in the Quick filter block
  • Quick collection filter: the choices come from the filters in the page address. If the first dropdown only has one possible option, such as Ford on the Ford collection, it’s chosen automatically.
  • Quick menu filter: the block looks for the menu item whose link matches the current page, then selects it and the items above it.

Settings reference

Block settings

SettingWhat it does
Use filters from this collectionCollection filter only. Where the options and results come from.
Filter menuMenu filter only. The menu that powers the dropdowns.
Text sizeThe size of the dropdown and button text.
Use the filter as sub-navigationShows the customer’s current choices on the page they land on. See sub-navigation.
Show dropdown search boxAdds a search box to dropdowns with more options than this number. The default is 15. Set it to 0 to never show one.
Automatically open the next dropdownOpens the next dropdown as soon as a choice is made.
Show product countCollection filter only. Shows how many products match each option, such as Focus (19).
Dropdown widthCollection filter only. The width of each dropdown on medium and large screens, as a percentage of the form.
Button label and iconThe search button’s text and icon. You can upload your own icon. SVG works best.
Only show label when the form is narrowShows just the icon when the dropdowns sit in a row, and the full label when they stack.
Always show button under the dropdownsCollection filter only. Puts the button on its own line.

Section settings

SettingWhat it does
Maximum form widthThe widest the dropdowns and button can get, from 350 to 1350px. The default is 1000px.
Image and split imageAn optional background, or two images side by side. Use a big, wide image, or two big square ones.
Minimum image heightKeep the image’s own shape, choose a fixed ratio, or set custom heights for desktop and mobile.
Show a container around textPuts the content in a panel, which helps it stand out over busy images.
Transparent dropdownsLets the image show through the dropdowns. Turn it off if the text is hard to read.

Troubleshooting

“Unable to find a collection filter”

The theme editor shows this when a Filter name doesn’t match a filter on the chosen collection. Capital letters don’t matter, but spelling and spaces do. Open the collection on your storefront and copy the name exactly. Also check that the filter is turned on in Search & Discovery, and that the collection has products with values for it. Customers never see this message.

A dropdown stays gray

A dropdown unlocks once the one before it has a choice. If it stays gray after that, no products match that combination, or it’s a leftover placeholder dropdown. See removing dropdowns you don’t need.

The wrong options are preselected

For the menu filter, look for two menu items with the same link. For the collection filter, check that the block uses the same collection as the page it’s on.

It’s probably over Shopify’s 255-character limit. Remove empty price parameters first, then shorten long values.