Vehicle Search on Shopify: From a Custom Script to an App to a Metafield Finder

  • Alek Tysklind
  • 4 min read
Diagram: vehicle search went from a custom script, to a theme filter capped at 100 values, to a search app with a monthly fee, to a metafield finder with no fee that matches the theme

When you sell accessories that only fit specific cars, shoppers do not search for a product. They search for their vehicle. For years that has been the central question for WeatherTech Switzerland and David: how do you let someone pick their car and see only what fits it? The answer has changed four times, and each one taught us something about what to ask of a store.

The problem

A catalogue of car accessories is really a catalogue of fits. The same mat, shade or liner exists for different makes, models and years, and a shopper who lands on the wrong one has wasted their time. The store needs a way to go from "I drive this car" to "here is what fits it", without a long search through the whole catalogue.

What we tried, in order

  1. A custom JavaScript solution. It solved the problem at first, but it was not maintainable and it was costly. Every change meant going back to code.
  2. A theme with built-in search and filters. This was easier to live with, but it ran into Shopify's limit of 100 values per filter on a page. With a long list of vehicle models, some of them simply were not shown.
  3. A vehicle-search app. The app works well. But it adds a monthly price, it brings its own CSS styles that do not quite match the theme, and it is one more step when adding products.
  4. A finder built on metafields. This is the new solution, built for the store's own theme. It is currently on a preview theme, ahead of going live.

How the new finder works

The shopper chooses a make, then a model, then a year. Each step only offers what exists for the previous choice, so the shopper cannot pick a car that does not exist. A search then takes them to the store's own results page, filtered to that vehicle.

Find your vehicle: make, model and year on the WeatherTech Switzerland preview theme
Make, model and year on desktop, in the same colours and type as the rest of the store.
The results page after searching Porsche Macan 2022 on the preview theme
After searching, the shopper lands on the normal results page, filtered to products that fit that vehicle.
The vehicle finder on a phone, with make, model and year selected
The same finder on a phone, with one field per row.

Why metafields

  • No monthly price. It is part of the theme, so there is no subscription to pay.
  • It matches the theme. It uses the store's own styles instead of a second set of CSS from an app.
  • No extra step for new products. The vehicle data lives in product metafields, the same make, model and year information the team already keeps with the products, so there is no separate tool to update.
  • It gets around the filter limit. The finder builds its own lists of makes, models and years, so long model lists are no longer cut off at 100 values.
  • It stays in Shopify. The store keeps working where the team already works, in the Shopify admin.

What to watch for

  • Clean data first. A finder is only as good as the metafields behind it, so spelling and values need to be consistent.
  • Keep the lists current. The lists of makes, models and years are built from the metafields, so there needs to be a simple refresh when new vehicles are added.
  • Compare the full cost. Look at the monthly price, but also at how an app looks, how it loads and how many steps it adds to your day.
  • Test on a phone. Many shoppers choose their car on a phone, so every dropdown has to work with a thumb.

What to take from this

If your shoppers search by what they own, such as a car, a phone or an appliance, ask yourself:

  • Can they go from their product to what fits it in three choices or fewer?
  • Does your filter hit Shopify's limit of 100 values and quietly hide some of the options?
  • What does your search app cost per month, and what does it add to your theme?
  • Where does your team keep the data that powers the search?

If your store needs a product finder like this, book a free discovery call and we will look at it with you.

Alek Tysklind

Shopify theme developer with over 10 years of experience helping businesses grow online.

Working on a Shopify store?

Tell me what you are building and where it is stuck. We will go through it together on a free discovery call.

Book a free discovery call

Selected projects

Keep reading