Emergency

In urgent situations or outages, you can send a text message to our emergency line

Emergency line (text message only)

+45 29 70 15 95

Send a text message with the following information:

  • Your name and webshop
  • A description of the problem

Note: This service is only for critical situations where your webshop is down or has serious problems. For regular support, please use our normal support channels.

Product filtering has arrived, and you build the filter yourself

Product filtering has arrived, for now in the Montana and MontanaB2B themes, and it can be added to your own theme. You build the filter yourself under Design → Filter and decide both which facets are included and what they are called for the customer.

Reading time: approx. 9 min
Product filtering has arrived, and you build the filter yourself

Product filtering has long been at the top of the wish list, almost always for the same reason: the customer lands on a category with 400 products and does not feel like scrolling through them all. Now it has arrived, for now in the Montana and MontanaB2B themes. There, you build the filter yourself under Design → Filter, and your customers can narrow a category or search result down to exactly what they are looking for. If you run a different theme, the menu item does not exist, but filtering can be added to your own theme. More on that below.

The Coffee category page with filters for brand, labels, price, subcategories, and stock status, and the selected filters shown as small buttons above the products
This is how the filter looks to the customer. The numbers show how many products each option returns.

The checkboxes were never the hard part

The reason it has taken this long is not that it is hard to show a row of checkboxes on the left. It is that no two stores need the same filter. A clothing store wants to filter by size and color. A bookstore wants to filter by author and publisher. A hardware store wants to filter by supplier and price and does not care about variants. If you build one fixed filter, it fits one type of store and annoys all the others.

So we did the opposite: there is no standard filter you have to live with. There is a filter builder where you choose which facets to include, the order they appear in, and what they should be called. A facet is a single filter, for example Brand, Price, or Size.

You name the facets yourself

Each facet gets a name that the customer sees, and that name has nothing to do with our fields. The fields in Shoporama are called brand and supplier, but many stores use them for something other than what the name suggests. If a bookstore has put the author in the brand field and the publisher in the supplier field, it simply calls the facets "Author" and "Publisher". The customer never gives a second thought to what the fields are called behind the scenes.

The same goes for the Profile attribute facet type. If two values are really the same, for example "S" and "Small" because two suppliers write them differently, you just give them the same name in the filter, and they are merged into one option.

When new values are added to an attribute you have already selected, they appear automatically, so a new color shows up in the filter without you doing anything. If, on the other hand, you create a brand-new product label or a brand-new profile attribute, you need to add it to the filter yourself.

The filter builder in the Shoporama admin with facets for brand, labels, price, and stock status
The filter builder under Design → Filter. Each facet expands on its own.

What you can filter by

  • Stock status, meaning only products in stock
  • Brand
  • Supplier
  • Subcategories, meaning the categories below the category the customer is viewing
  • Product labels, where you choose which ones are included
  • Profile attributes, for example size, color, or language
  • Price, either with ranges you enter yourself or with rounded ranges we calculate automatically from the prices in your store

You also decide where the filter is shown: on category pages, on search results, or both. If you limit it to selected categories, it only applies to those. If you select none, it applies to all category pages. And if you need a completely separate entry point, the filter can get its own page at /filter/<name>, where you put together the product selection yourself based on categories, product labels, brands, or only products in stock.

Counts on every option and no empty facets

Each option shows how many products are behind it, and the count is based on what the other facets are set to. If the customer selects a size, the counts on the colors are recalculated the next time the page is shown. If a facet has no values in the current result, it is not shown at all instead of appearing empty, and a single option with no products is hidden as well. So the customer is not led into the dead end of an option with zero products. If the customer combines several facets, however, the result can still end up empty.

The customer's selections are stored in the URL, so a filtered page can be bookmarked and shared with others. The selected filters appear above the results as small buttons with an X, so the customer can remove one selection at a time, and there is a button that clears everything. On mobile, a Filter button opens the filter in a full-screen panel. Pagination and sorting are kept when filtering, and the filtered pages are kept out of Google, while the plain category page is the one that gets indexed. That way your store does not fill the search results with hundreds of nearly identical filter combinations.

It works in Montana and MontanaB2B for now, and can be added to your own theme

For now, filtering works in two themes: Montana and MontanaB2B. Delaware, California, Washington, Alaska2, and customer and custom themes do not have it out of the box, but it can easily be added to your own theme.

The reason is that a filter is not just data. It is also a left column, a full-screen panel on mobile, and small buttons above the product list, which the theme needs to make room for. A theme therefore has to actively support filtering, and only when it does will the Design → Filter menu item appear in the admin at all. If your store has a customer or custom theme, your theme developer can enable it by setting supports_filters: true in the theme's theme_settings.json and adding the filter to the templates that show products. Read the details in our article about product filtering, or write to us at support@shoporama.dk.

Montana has also gained a theme setting called "Hide the category menu when there is a filter" under Design → Theme settings → Category pages. It is there because the category menu and the filter would otherwise compete for the same left column.

One thing the price facet cannot do

The price facet calculates based on the product's price, meaning the sale price when the product is marked down. Campaign prices are not included, however, because they are only calculated at the moment the page is shown. If you run a campaign that moves products from one price range to another, the campaign price is shown on the product, while the filter has counted by the price otherwise set on the product. It is a known limitation, and we would rather say so up front.

Get started

If you run Montana or MontanaB2B, go to Design → Filter and create your first filter. Start small with two or three facets on the categories with the most products. The customer's selections are stored in the URL, so you can follow the filtered pages in your web analytics and expand from there. We also have an older article about filtering in your online store, which describes the options that existed before the filter builder, and if you are a developer, you can take a look at AJAX filtering. Requests for more facet types are welcome at support@shoporama.dk.

Share this post