# OpenCart Product Filter: Options, Setup and Common Mistakes

> How the standard OpenCart 3.0 and 4.1 filter works, how to set it up, and why it often doesn't show. We also cover when you need a third-party filter module and how to avoid SEO duplicate pages.

Джерело: https://opencartcode.com/en/wiki/catalog/opencart-filter
Оновлено: 2026-11-24

The OpenCart built-in filter is a simple module. You create filter groups, assign values to products and categories, and then display the module in the column of the category page. For a small catalog, this is enough. If you need a price filter, hiding values with no products, filtering by attributes, or "color AND size" logic, you will need a third-party module. Below we cover both options, a step-by-step setup, and the mistakes that trip up most stores.

## What types of filtering does OpenCart have, and how do they differ?

OpenCart has several entities that look similar to "product characteristics." Because of this, store owners often confuse them, and the choice determines whether a customer can filter by them.

- **Filters** (Catalog → Filters). This is a separate directory created specifically for filtering. Values are grouped, for example "Color: red, blue, black."
- **Attributes** (Catalog → Attributes). These are characteristics on the "[Attribute](https://opencartcode.com/en/wiki/glossary/e-commerce-glossary#attribute)" tab of the product form: material, power, country of manufacture. By default, you cannot filter by them.
- **Options** (Catalog → Options). These are things the customer chooses before buying: size, color, configuration. An option can have its own price and stock level. The standard OpenCart does not have a filter by options either.
- **Manufacturers**. Each brand has its own page, but you cannot filter by brand on a category page.

| What the customer needs | Standard OpenCart | Third-party filter module |
| --- | --- | --- |
| Filter by color or purpose | Yes, via Filters | Yes |
| Price range (slider) | No | Yes |
| Filter by attributes and options | No | Yes, in most modules |
| Brand in the category filter | No | Yes |
| Product count next to each value | Yes, if product counting is enabled on the Option tab of the store settings. Values with zero products are not hidden | Usually yes |
| Applying without page reload (AJAX) | No, the page reloads | Usually yes |

If any terms are unfamiliar, the [e-commerce and OpenCart glossary](https://opencartcode.com/en/wiki/glossary/e-commerce-glossary) explains them briefly. A separate article on product variants will cover how to set up options correctly.

## How do you set up the standard OpenCart filter step by step?

The interface in 3.0 and 4.1 is different, but the logic is the same. The setup consists of four required steps, and skipping any of them results in an "empty" filter.

### Step 1. Create groups and values

In 3.0, open Catalog → Filters and click "Add". On one screen, enter the group name, for example "Sole type," and add values: "rubber," "EVA," "polyurethane." In 4.1, groups and values are split into separate menu items. First create the group in Catalog → Filters → Filter Groups. Then, in Catalog → Filters → Filters, add the values and select the group for each one. The sort order determines the sequence in which values appear in the filter block. If your store is multilingual, fill in the names for every language, otherwise empty rows will appear in the other language.

Catalog → Filters → Filters: filter values and the group of each value · OpenCart 4.1.0.4

### Step 2. Assign filters to products

Open the product form, go to the Links tab, and start typing a name in the "Filters" field. The field works with autocomplete and suggests options in the format "Group > Value." You can assign several values from one group to a product, for example two colors.

Links tab in the product form: the Filters field next to categories and manufacturer · OpenCart 4.1.0.4

### Step 3. Assign filters to the category

This is the step people forget most often. The module shows only the values added to the category itself. Open Catalog → Categories, go to the desired category, and on the Data tab fill in the "Filters" field the same way as for the product.

Category form: the Filters field determines which values the customer sees in this category · OpenCart 4.1.0.4

### Step 4. Enable the module and add it to the layout

1. In [Extensions](https://opencartcode.com/en/wiki/glossary/e-commerce-glossary#extensions) → Extensions, select the "Modules" type and install the "Filter" module.
2. Open its settings, set the status to "Enabled," and click "Save."
3. In Design → Layouts, open the "Category" layout and add the module to the left or right column.
4. Check that your theme displays the column on mobile devices. Many themes hide side columns on smartphones, and then the filter simply disappears.

Design → Layouts: the Filter module added to the column of the Category layout · OpenCart 4.1.0.4

## Why doesn't the filter show up or filter the way you expect?

Most reports of a "broken filter" come down to a few causes. Check them in this order:

- **Filters are not added to the category.** The values exist in the products, but not in the category, so the block does not appear.
- **The module is not added to the "Category" layout**, or it is placed in a position the theme does not output.
- **Products are only in subcategories.** The standard category page shows only products linked directly to it. If the parent category is empty, there is nothing to filter there.
- **"OR" logic between groups.** This is the least obvious limitation. Standard OpenCart combines selected values with "OR," even across different groups. The customer selects "red" and "size 42" and gets all red products plus all products in size 42. This can only be fixed by modifying the model or using another module.
- **Values without products.** The standard module does not check whether the category has products with a given value. The customer clicks and sees "No products."

A query to the database can help you find category products without any filter. The tables are stored in `oc_product_filter` and `oc_category_filter`. Your prefix `oc_` may be different, and make a backup before any changes to the database.

```sql
SELECT p.product_id, pd.name
FROM oc_product p
JOIN oc_product_description pd
  ON pd.product_id = p.product_id AND pd.language_id = 1
JOIN oc_product_to_category p2c
  ON p2c.product_id = p.product_id
LEFT JOIN oc_product_filter pf
  ON pf.product_id = p.product_id
WHERE p2c.category_id = 20
  AND p.status = 1
  AND pf.product_id IS NULL;
```

Developers who will be modifying the filtering logic should understand how the [OpenCart model builds queries through $this->db](https://opencartcode.com/en/wiki/dev-mvc/opencart-model). The product catalog model is where the filter conditions are formed.

## When do you need a third-party filter module, and what should you check in it?

The standard filter is sufficient if the store has a few hundred products and 2–4 simple characteristics, such as purpose or season. If customers choose by technical parameters (home appliances, auto parts, clothing with size charts), [conversion](https://opencartcode.com/en/wiki/glossary/e-commerce-glossary#conversion) from categories will be low without a full-featured module. The person simply won't get to the product they need. This weakness of the platform is mentioned separately in the review of [the strengths and weaknesses of OpenCart](https://opencartcode.com/en/wiki/start/opencart-pros-and-cons).

Before buying a module, go through this checklist:

- **Data sources.** The module should be able to filter by attributes, options, [manufacturer](https://opencartcode.com/en/wiki/glossary/e-commerce-glossary#manufacturer), price, and availability, not just by "Filters." That way you won't have to duplicate characteristics in two places.
- **Logic.** Within a group there should be "OR," and between groups "AND." This is the standard customers expect.
- **Counters and hiding of empty values**, so the customer doesn't land on an empty result.
- **Speed.** On a catalog with thousands of products, a module that recalculates everything "on the fly" with each click noticeably slows down. Ask about indexing or caching and test the demo on a large catalog.
- **Compatibility with the version** (3.0 or 4.1) and with your theme. Modules for 3.0 do not work on 4.1.
- **Mobile appearance.** The filter should open in a separate panel with a "Show N products" button, rather than sitting as a long list above the products.
- **URL management**, that is, whether you can block filter combinations from indexing. This is covered in the next section.

If you don't want to compare dozens of modules, we recommend [OCFilter](https://opencartcode.com/en/marketplace/product/ocfilter). It is a full-featured filter for OpenCart that filters not only by the standard "Filters," but also by attributes, options, manufacturer, and price. Before installing, still go through the checklist above and verify that the module build is compatible with your OpenCart version and theme.

> Do not install two filter modules at the same time "for testing." They can change the same product model through modifications or events, and as a result, category output breaks. Test on a copy of the site, and completely remove any module you are not using.

## How do you prepare characteristics so the filter is useful?

Even the best module won't help if the product data is filled in chaotically. The filter shows exactly what the managers entered. That is why you design the directory first and choose the module afterwards.

1. **Start with how the customer searches.** Look at search queries on the store, questions in the chat, and filters on marketplaces in your niche. For sneakers, size, gender, and purpose matter, while country of manufacture is of almost no interest.
2. **Limit the number of groups.** Aim for roughly 5–10 groups per category. Nobody scrolls through twenty groups.
3. **Standardize values.** "Black," "black," and "Black " with a trailing space are three different values. For numbers, fix the units of measurement: "1000 W," not "1 kW" in one product and "1000W" in another.
4. **Group into ranges where there are too many values.** Instead of 40 battery capacity options, it's better to use "up to 3000 mAh," "3000–5000," "over 5000."
5. **Write in Ukrainian.** The store interface for a Ukrainian customer should be in Ukrainian, and this applies to filter names too.

Entering characteristics manually for thousands of products takes a long time. If data comes from suppliers, it is convenient to pull it in during import. For example, the [UniXML](https://opencartcode.com/en/marketplace/product/unixml) module imports products from XML together with their characteristics. When the source has no characteristics at all, they can be generated in bulk from descriptions, as [IntelliDesc AI](https://opencartcode.com/en/marketplace/product/intellidesc-ai-pro-plus-avtogeneraciia-xarakteristik) does. After generation, the result must be spot-checked. These same characteristics later also work in the product card: how to present them so they sell is described in the article on [a product page that sells](https://opencartcode.com/en/wiki/catalog/online-store-product-card).

> Plan the filter structure before mass-filling the catalog. Reworking a directory with 5000 products already filled in costs many times more than designing it at the start. The order of work before launch is described in the article [how to launch an online store without rework](https://opencartcode.com/en/wiki/start/how-to-launch-an-online-store).

## How does the filter affect SEO, and how do you avoid creating duplicates?

Each filter combination is a new address. In standard OpenCart, it looks like `.../krosivky?filter=3,7,12`. If search engines start indexing such pages, thousands of nearly identical pages with the same titles will appear. They dilute the weight of the main category and waste crawl budget, that is, the limit of pages a robot crawls per visit.

The basic rules are as follows:

- **Canonical to the category.** A page with filter parameters should point its canonical to the clean category address. Check in the page source code what your theme actually outputs.
- **noindex for combinations.** The most reliable option is a `robots` meta tag with the value `noindex, follow` on pages with the `filter` parameter. Standard OpenCart has no separate setting for this, so you will need to edit the template or use a module that can do it.
- **[robots.txt](https://opencartcode.com/en/wiki/glossary/e-commerce-glossary#robotstxt) as an additional measure.** It saves crawl budget, but then the robot will not see the noindex on pages that are already indexed. So first remove them from the index, and only then block them.

```bash
# robots.txt — закрити сторінки з параметром стандартного фільтра
User-agent: *
Disallow: /*?filter=
Disallow: /*&filter=
```

There is also a flip side: some filter combinations attract real search demand. For example, "men's running sneakers" or "two-door No Frost refrigerator." For these, it is worth creating separate landing pages with a human-readable address, their own title, a description, and an open index. Some filter modules can generate such "SEO filter pages." Another option is to create a subcategory. Decide based on demand data, not in bulk: a hundred empty landing pages harms just as much as duplicates. Page addresses are configured in Design → SEO URL, and the basic SEO parameters are described in the article on [configuring OpenCart after installation](https://opencartcode.com/en/wiki/basics/opencart-settings).

## Summary

- The standard OpenCart filter works through the separate directory Catalog → Filters. It requires four steps: groups, assignment to products, assignment to the category, and the module in the "Category" layout.
- The standard filter does not use attributes, options, price, or brand. Selected values follow "OR" logic, even across different groups.
- For a catalog with technical parameters, thousands of products, or an important mobile audience, choose a third-party module. Check its "AND/OR" logic, counters, speed, and compatibility with your version.
- Data determines the quality of the filter: a well-thought-out group structure, standardized values, units of measurement, and Ukrainian names.
- Block filter combinations from indexing, and create separate landing pages for queries with real demand.

The next step is to check how the customer moves from category to product: search, product cards, variants. All materials on this topic are collected in the [Catalog, filter and search](https://opencartcode.com/en/wiki/catalog) section.

## FAQ

**Can you filter by price in standard OpenCart?**

No, there is no built-in price filter. The category page only offers sorting by price. A price range slider is provided by third-party filter modules.

**Do filters transfer when upgrading from OpenCart 3.0 to 4.1?**

The filter tables have the same structure, so the data can be transferred along with the database. A third-party filter module for 3.0 won't work in 4.1; the new version requires a separate build of it.

**How many filter groups can you create, and will it slow down the site?**

There is no hard limit. The standard module handles dozens of groups without noticeable load. Speed usually drops due to the number of products and complex combinations in third-party modules, rather than the number of groups.

**Can you show different filters in different categories?**

Yes, that's exactly why filters are assigned to each category separately. In the “Shoes” category you can keep size and season, while in “Bags” you can show volume and material.

**Does the standard filter work on the search results page and the manufacturer page?**

No, the standard module is designed for the category page. Some third-party modules support filtering on search and brand pages, so check this before you buy.
