Filter pages
A filter page is a category plus a set of characteristic values, at an address
of its own — /catalog/laptops/apple instead of
/catalog/laptops?feature[2][]=9.
Why they exist
A query string is not a page. The shop strips every parameter that is not part of what a page IS before it prints a canonical address, so a filtered listing is never an entry in a search index — it tells search engines it is really the category. That is correct, and it means “Apple laptops” is a thing people search for and the shop has no page for.
A filter page is that page. Once it exists, the filtered listing points its canonical at it, so the shop has one indexable address for that set of products instead of an unbounded number of unindexable ones.
Two ways to get one
By hand — Catalogue → Filter pages → New filter page. Pick the category, tick the values, give it a name. Use this for combinations of two characteristics (“Apple laptops with 16GB”), which are always few.
By a rule — Catalogue → Filter pages → Rules. A rule says “a page per value of this characteristic, in these categories (and everything under them)”, and the button makes them in the background.
A rule uses one characteristic on purpose: a rule that multiplied two of them would publish the square of the catalogue.
What a rule does and does not own
It owns the address and the name — what the page is called in the category list and in the breadcrumb.
It does not own the title, the description or the H1. Those come from the SEO
templates (torgash.seo), the same ones that write them for products,
categories and brands. Write a template for the “Filter pages” subject and use
{filter}, {category}, {total_products}, {min_price} in it — on a filter
page the price and count tokens answer about that page’s own, narrower set.
Each page also carries its own SEO card, so any one of them can be written by hand and will beat the template.
Running a rule twice
Nothing happens twice. A run adds what is missing and refreshes what it already made; it never removes a page.
That is deliberate. Once a page has been crawled it is a published address, and withdrawing it because a supplier was late gives a 404 on a page search engines already hold. So a page whose product count falls below the rule’s minimum leaves the sitemap and keeps answering, and rises back into the sitemap when it refills.
A page with nothing in it right now is marked “do not index” while it is empty — worked out as the page is rendered, not from last night’s count — and still opens.
Removing one
Delete it on its own screen. Its address then redirects (301) to its category, which is genuinely the page it was a subset of.
Deleting a rule does not delete the pages it made: they are published addresses, and from that moment they are ordinary hand-written pages.
Where they are linked from
Published filter pages of a category are listed on the category page, where a list of subcategories would be. An address nothing links to is an address nothing crawls.
City pages
The same screen makes the other kind of published address: a category in a
town — “Laptops in Kyiv” at /catalog/laptops/kyiv.
It is the same row with a Town on it, and the difference from a filter page is the one that matters: a filter page holds fewer products than its category, a city page holds the same ones under different words. So nothing canonicalises onto a city page — there is no query string that means “in Kyiv”, so no listing is duplicating it — and its values may be left empty. Fill both and you get “Apple laptops in Kyiv”.
The Town field needs the place registry (torgash.locations) installed; without
it the field is not shown.
The words
Write a template for the City pages subject in torgash.seo and use
{location:N}, where N is the case:
| N | Russian | Ukrainian |
|---|---|---|
| 1 | Киев | Київ |
| 2 | Киева | Києва |
| 3 | Киеву | Києву |
| 4 | Киев | Київ |
| 5 | Киевом | Києвом |
| 6 | в Киеве | у Києві |
| 7 | — | Києве |
So {category} в {location:6} reads “Ноутбуки в Киеве”. The forms are worked
out from the town’s name by the rules of each language, which is why nobody has
to type six words for each of a hundred thousand towns — and where a rule gets
one wrong, open the town (Locations → the town) and type the correct form into
the box. The greyed-out word in each box is what the shop would say by itself.
{location_region} is the town’s region, for a title that needs it.
A page per town
A rule can do it: choose “a page per town” instead of “per value of a characteristic”, pick the towns the shop actually sells into, and the run makes one page per town in each category the rule names.
Pick the towns deliberately. A pack holds a hundred thousand of them, which is why “every town” is not offered as a default — and a rule carries one axis, so towns × makes of laptop cannot be published from one screen.
The address is written from the base language (kyiv, never kiev one night
and киев the next), because an address may never move.
What arriving on one does
It answers the delivery question: a visitor who came to the Kyiv page has said where they are, so the cart’s delivery estimate uses that town — unless the customer has already named one themselves, which is never overwritten.
Characteristics
A product’s characteristics are kept in two places. They look alike on the product page, but they are not two copies of the same table, and they do different jobs.
The shop’s characteristics
Catalogue → Features. Each one has a name, a code and usually a list of values (“Colour”: black, white, blue). On a product they are the Global characteristics card on the Attributes tab.
These are the ones the shop works with:
- the filter panel and filter pages;
- variations — the products of one group are told apart by them;
- the brand and the brand’s page;
- labels that print
[feature:CODE]; - the short description composed from characteristics.
Where a characteristic is drawn is set on the characteristic itself, under “Shown in”: the filter panel, the product page’s specifications, the short list under the buy button. Untick all three and it is still there: it keeps working in addresses, filter pages and variations.
The product’s own rows
The Individual attributes card on the same tab. These are words for one product’s page — “Warranty: 2 years”, “In the box: cable, case”. They are printed under the shop’s characteristics, found by the search and shown in the comparison under “Other”. Nothing filters by them, they do not make variations, labels and the short description do not see them.
A few things read both, the shop’s first: {feature:…} in templates and
texts, delivery conditions, and the weight setting. They look for a shop
characteristic with that code (or name), and only when there is none do they
take an own row whose name is written exactly the same.
A feed (Yandex Market’s <param> lines, item.params in an export
template) lists the shop’s characteristics and then the own rows. An own row
called like a characteristic the product already has a value of is left
out: a marketplace takes two lines with one name for a mistake.
Which one is the real one
If a fact matters for more than the page — a customer filters by it, products differ by it, a label shows it — it belongs among the shop’s characteristics. An own row with the same name is only words on the page.
Changing a colour in the own rows changes what the page says and nothing else: the filter still finds the product under its old colour, because the filter reads the shop’s characteristic.
When the page shows the same thing twice
If a product has a value of a shop characteristic shown in the specifications and an own row with the same name, the page prints both lines:
RAM 16 GB
RAM 16 GB DDR4, two slots
The product form warns about it above the own rows, and Security → Invariants lists every such product (“No product page prints a characteristic twice”). Nothing is changed for you — there are two good ways out:
- The own row is just a longer wording. The filter needs “16 GB”, the page wants the details. Open the characteristic and untick “Specifications” under “Shown in”: it keeps filtering, and the page prints only your own row.
- The own row is a leftover. Delete it; the value is in the shop’s characteristic.
Merging values
“тёмно‑синий” and “темно-синий”, “Gold” and “gold” — one value written two ways, and each holds only its own products: a customer who ticks one in the filter misses the rest, and each has a filter page of its own. Open the characteristic and press Merge values under its list. Choose the value to keep, tick the ones to merge into it, and merge. Values written alike are offered at the top of the window in one click, and the page warns about them.
What happens:
- their products get the main value — and so do the filter pages, labels, markup rules, collections, promotions and 1C links that named them;
- a filter page that becomes a copy of another is deleted, and its address redirects (301) to the other one; empty texts of the page that stays are filled from it;
- for a brand, the main value takes the page’s address, logo and texts it does not have yet; the other brand addresses redirect to it;
- the merged values are deleted, but their spellings stay with the main value (“Also written” under it): an import and an old filtered address still find it by them.
Two products of one variation group cannot become the same: if the values being merged are what tells them apart, nothing is merged and the products are named. Change the value on one of them (or remove the extra product) first.
A spelling under a value is removed with its ×; after saving, the next import makes it a value of its own again.
The import, the values list and Security → Invariants (“No characteristic has one value written two ways”) treat letter case, ё and е, dashes (the non-breaking hyphen too), spaces and curly quotes as one spelling: a supplier’s file finds the value the shop already has, and a new value written like an existing one is refused. Different words (“gold” and “golden”) are yours to merge.
Import, 1C and the API
Each source writes to one place, never to both:
| Source | Where it goes |
|---|---|
| A column named after a characteristic (“Colour”) | the shop’s characteristic |
| “Colour: S[Black]; Memory: S[128 GB]” | the shop’s characteristics (created if missing) |
| Brand, “VAR Feature 2 [Colour]” | the shop’s characteristics |
| A JSON list of sections and rows in “Characteristics” | the product’s own rows, as written |
| 1C (CommerceML) | the shop’s characteristics you have linked |
A JSON row called like one of the shop’s characteristics stays an own row — the import does not guess, and never invents filter values from free text. If you want it to filter, put it in a column of its own.
The API shows both: characteristics (the shop’s, with codes) and features
(the product’s own rows).
Subcategories
A category’s page shows the categories under it above its products. It is how a visitor narrows a large branch: “Smartphones” → “Apple” → “iPhone 17 Pro”. The grid below holds every product of the branch anyway, so hiding them takes nothing away from the page.
How they look
Appearance → Themes → Configure → Category page:
- Subcategories above the products: tiles with a picture, buttons (compact, in two rows, the rest behind “Show N more”), or not shown.
- Tiles laid out: one row that scrolls (with arrows and a thin indicator, as on the home page), two rows that scroll, or a grid.
- Picture frame: a circle, a square with rounded corners, or a card as wide as the tile.
- Frame size: the side of the circle or the square (for a card, its height). Padding inside the frame: the air between the frame and the photo; the smaller it is, the larger the photo, and at 0 the photo fills the frame. Products shot on white look best with some padding, photos taken edge to edge with none. Space between tiles.
- A photo from its products, How many products.
The preview opens on a category that has subcategories.
One category differently
Catalog → Categories → the category → Subcategories:
- On this category’s page: as the theme says, tiles, buttons or not shown. For example, buttons for “Apple” with its 26 models and tiles everywhere else.
- Shown among its parent’s subcategories: untick it to leave the category out of its parent’s tiles. The menus and the list beside the catalogue still show it.
The pictures
A tile shows, in this order:
- the category’s tile picture (the category’s form, “Icon” card);
- if it has none and A photo from its products is on, the photo of the most popular product in that category (subcategories included) that can be ordered right now and has a photo; when sales change the leader, the picture changes with it;
- the category’s own icon picture or its icon from lucide.dev;
- the first letter of its name.
A picture you upload always wins over a borrowed one.