Skip to content
Contact
  1. Home
  2. News
  3. Product filter for xt:Commerce: how your customers find the right product faster

Product filter for xt:Commerce: how your customers find the right product faster

Product filter for xt:Commerce: how your customers find the right product faster

The product filter came about because we and our clients were not happy with the existing filter solutions for xt:Commerce. So we built our own.

That is why two new plugins have recently been added to our shop: the product filter for xt:Commerce and, as an extension to it, “Properties/Features/Technical Data for Products”. Here is what the two can do.

For the impatient:

xt:Commerce product filter as a drawer

xt:Commerce product filter as a drawer

xt:Commerce filter sidebar integration

xt:Commerce filter sidebar integration

What the product filter does

The filter sits on category, search and manufacturer pages, and also on listings such as new arrivals or bestsellers. Your customers filter by price, manufacturer, availability, special offers, new arrivals and reviews, and for products with variants also by colour or size. On top of that come any product fields you like, for example the weight.

The listing is updated via AJAX, so the page does not reload. Next to each option is the number of products that remain, and this number takes the filters already set into account. For variants the filter checks the actual combination: anyone who selects red and size M only gets products that exist in exactly that form.

xt:Commerce filter on a smartphone

xt:Commerce filter on a smartphone

Filter display

You define how a filter looks for each filter individually: checkboxes, radio buttons, buttons, colour or image swatches, dropdown (also with multiple selection), slider, from/to fields or a simple toggle. Sliders are available for the price and for all numeric values, such as weight or wattage.

You show the filter as a whole in the sidebar, as a box above the listing, as a drawer or as a popup. Visually it adapts automatically to your template. Ready-made styles are included for xt_responsive and ew_evelations. Your own colours and your own CSS are possible and are preserved during plugin updates.

On a smartphone

On small screens the sidebar or box becomes a drawer. A “Filter” button opens it from the side, the result count updates during the selection, and only the click on “Show n products” applies the filters.

Setup in the backend

The filters are created under “Shop” → “4TFM Produktfilter”. After installation, example filters for price, manufacturer, colour, size, availability and special offers are already in place. For each filter you set in which categories and stores (clients) it appears, how the options are sorted and whether it starts collapsed.

Attribute settings 2

Attribute settings

The complete configuration can be exported as JSON and imported again in another shop. That saves work above all with test systems.

And SEO?

Filtered pages get noindex by default and a canonical pointing to the category, so no duplicate content arises. The selection is still in the URL. The back button, bookmarks, paging and sorting work with active filters, and a filtered view can be linked to.

Properties, features and technical data

xt:Commerce knows price, manufacturer and variants out of the box. Whether a product is made of stainless steel, has 1,200 watts or fits a particular device, on the other hand, is usually only stated in the description text, and nobody can filter by that.

That is what the second plugin (tfm_attributes) is for. You create features with fixed values, for example “Material” or “Compatible with”, and assign them to your products. On the product page they appear as technical data, and in the product filter they are available as a data source. If the values are numbers, the slider works here too.

The assignment is done directly on the product, per feature in a matrix, or per value for many products at once. Variants inherit the features of their main product. All values are multilingual and multi-store capable, and the xt:Commerce product table remains unchanged.

The filter also runs without this plugin. But anyone who wants to let their customers filter by more than price, manufacturer and variants needs both.

How the filter runs at GH Gerüsthandel

We are absolutely delighted with the product filter plugin. It impresses with its extensive range of features and an excellent display on mobile devices. The collapsible filter and the ability to filter products without reloading the page are particularly practical. It is also very intuitive to use: values are easy to set, and the CMS offers numerous flexible configuration options. All in all a well-thought-out solution that fully meets our expectations!

Melanie Bader, Managing Director, ghgeruesthandel.de

Who it is worthwhile for

The filter makes sense as soon as categories become so large that paging through them is no fun any more. That applies to technical product ranges and B2B shops in which dimensions or compatibility are decisive, just as much as to fashion with many colours and sizes. In multishops the filters can be controlled separately per store (client) and category.

Both plugins run on xt:Commerce 6.5 to 6.8 with PHP 8 and a current ionCube Loader. The filter is integrated into the template once via a hook. If you do not want to do that yourself, we take care of the installation free of charge.

Try it out in the test shop

Screenshots say little about how a filter behaves with many products. In our xt:Commerce test shop the product filter, features and variants therefore run on 50,000 products with correspondingly extensive data. Simply click your way through.

Anyone who prefers to test the plugins in their own shop gets a demo licence from us.