Новости
This content is not available in your language yet.
1.3.2 — 2026-11-26
heading.anchorLabelFixed
heading.anchorLabel- A rule that lists SKUs now finds them anywhere in the catalogue. The candidate scan reads at most 500 products and validates them afterwards, and a “SKU is / is one of” condition only selected the attribute. Listed products matched only if they fell among the first 500 by id. On a 2 700-product catalogue, the two products a cross-sell rule existed for (around position 2 000) were never shown. The SKU list is now pushed into the scan’s SQL, and every candidate is still validated.
- A nested “ALL” combine under “ANY” no longer narrows the scan. It used to re-grant itself the right, which removed the candidates of its sibling branch. This also affected Attribute matches viewed product.
Not changed
heading.anchorLabel- Category conditions still validate after the scan. Narrowing them by
catalog_category_productwould drop products that the anchor-aware category index matches.
Upgrade notes
heading.anchorLabel- No database change. Run
cache:flush, because computed rows are cached for 24 h.
1.3.1 — 2026-11-26
heading.anchorLabelFixed
heading.anchorLabel- A section is no longer cut short of its rules’ Max Products. The automatic cap was fixed at 8 for Related / Up-sell and 4 for Cross-sell, regardless of the rules. A cross-sell rule with seven SKUs and Max Products 8 showed only the first four in the cart, so the products it existed for never appeared. The cap is now the largest Max Products among the rules active today for that section, and never below the previous default. Each rule still contributes at most its own Max Products.
Added
heading.anchorLabelModel\SectionLimit::forLinkType(): the section cap, shared byItemsInjector,CartCrosssellResolverand the Hyva bridge. It reads the rules once per request.
Upgrade notes
heading.anchorLabel- No database change. Run
cache:flush, because cached rows were computed with the old cap. - Hyva shops: update
webcode/module-auto-related-products-hyvato the release that requires^1.3.1, so the product page sections follow the same cap.
1.3.0 — 2026-11-25
heading.anchorLabelAdded
heading.anchorLabel- Sort By per rule: Relevance (default), Bestsellers first, Most expensive first, Cheapest first. The order is pushed into the SQL of the capped candidate scan, so a category larger than the cap is ranked as a whole.
- Closest first per rule: candidates in more of the viewed product’s most specific categories come first; Sort By orders each group.
- Relative category operator in the SAME most specific category: compares only against the viewed product’s deepest categories, for shops that also file products under every parent.
- Bestseller period setting: Stores → Configuration → Catalog → Automatic Related Products → Bestsellers → Period (months), store scope, default 3, 1–24. Units of configurable children count for the parent too.
- Related / Up-sell blocks carry the
webcode_arpcache tag: saving a rule or changing the bestseller period also clears the affected full page cache (and Varnish).
Changed
heading.anchorLabelUpgrade notes
heading.anchorLabelsetup:upgrade, thencache:flush.- Bestsellers needs Magento’s bestseller aggregation cron (
aggregate_sales_report_bestsellers_data).
1.2.1 — 2026-08-14
heading.anchorLabel1.2.1
heading.anchorLabelПоправки на admin формата за правила, докладвани при реално строене на правило.
- 404 при добавяне на условие. Widget-ът за условия добавя условие през POST (
Ajax.Request), аNewConditionHtmlбеше самоHttpGetActionInterface—HttpMethodValidatorвръщаше 404 за POST. Най-видимо при „Attribute matches viewed product“. Латентно от 1.0 (готовите правила идват през data patch, тъй че AJAX контролерът не се упражняваше). Сега приема и POST, и GET, огледално на ядрения CatalogRule. - Стърчащо „…“ след безстойностно условие. RelativeCategory и MatchedAttribute сравняват спрямо гледания продукт и нямат стойност, но ядреният
asHtml()пак рендираше value чип като кликаемо „…“. НовValuelessTargetConditiontrait го маха за двете; RelativePrice си пази процента.
Без промяна по публичния API. Съвместимо с 1.2.0.
1.2.0 — 2026-08-13
heading.anchorLabel1.2.0
heading.anchorLabelГотовите правила вече препоръчват релевантни продукти, а мачването по атрибут работи. Три независими дефекта, всеки възпроизведен срещу дев каталога:
- Категорийните условия брояха root категорията. Всеки продукт седи в root-а на магазина, тъй че „същата категория“ на практика значеше „целият каталог“ (в дев базата: 1181 продукта директно в root). Сега се броят само смислените категории —
level > 1и вътре в root-а на текущия магазин. - Нищо не подреждаше мачовете — показваха се едни и същи най-стари продукти навсякъде. Вече се подрежда по общи категории → най-близка цена → id. Детерминистично, защото резултатът се кешира.
- Мачването по атрибут беше неизползваемо: списъкът предлагаше само атрибути с флаг за cart price rules (без данни по продуктите), multiselect се сравняваше като низ (рекламираният „same Gender“ не мачваше никога), а
==не стесняваше SQL заявката.
Странични подобрения от същата работа:
- Препоръчаните продукти се проверяват за статус и наличност на всеки рендер (кешът е за 24ч) — изчерпан продукт вече не виси в секциите.
- Cross-sell в количката зарежда каталожния продукт вместо quote артикула, тъй че условията по атрибут работят и там.
- Само CI/хигиена: модулът се закачи към споделения pipeline, Hyva bridge-ът е деклариран като dependent.
Без промяна по публичния API. Съвместимо с 1.1.x — надгражда се директно.
1.1.1 — 2026-07-28
heading.anchorLabelRelease 1.1.1