1. Home
  2. What's New
  3. Automatic Related Products for Magento 2
Automatic Related Products for Magento 2

Automatic Related Products for Magento 2 external-link

mirasvit/module-related
6 features 24 improvements 51 fixes New to it? See what it does
Which version are you on? See what changed since
Stores > Configuration > Mirasvit Extensions > Developer
1.2.28 2025 1.2.14 2024

Overview

32 releases in the last year

Nov Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov
Each square is a week. Pick one to jump to its releases. Less More

November 2026

1.6.7 Nov 13
Fixed
  • Fixed Hyvä recommendation blocks with Use slider set to No replacing your theme's customized product card (for example, quantity controls or product labels) with the extension's stock card. The stock card also replaced the theme's card in every other product list rendered further down the same page, such as the category listing or other widgets. Grid blocks now show products with your theme's own card, the same way slider blocks already did, and the rest of the page keeps it too.
1.6.6 Nov 10
Fixed
  • Fixed headless and PWA storefronts showing one customer the recommendations meant for another. The mstRelatedBlocks and mstRelatedBlock GraphQl queries build blocks such as Recently Viewed and customer-based rules from the signed-in customer's own history, but Magento's page cache could store such an answer and serve it to every other customer of the same customer group. These queries are no longer cached, so each customer always gets their own recommendations.
  • Fixed admin users without access to Related Products still being able to open the Product Blocks and Product Selection Rules grids and edit forms — including block settings, rule conditions and per-block statistics — by requesting them directly. They now load only for admin roles that have the Marketing > Related Products permission.
  • Fixed saving or deleting a Product Block from the admin or the REST API being able to change or delete a layout update that belongs to something else. A block now always works with its own stored layout update, whatever the request sends.
1.6.5 Nov 6
Improved
  • ⚠️ Block statistics can no longer be faked from the storefront — the storefront tracking address (related/analytics/track) now accepts only impressions and clicks, sent by POST. Anyone could call it from a browser and add orders and revenue to any block, inflating its Orders and Revenue in the Product Blocks grid and the performance report. Orders and revenue are now credited only when an order is actually placed. The extension's own tracking script already works this way, so nothing changes on Luma or Hyvä; a custom tracker that calls this address by GET, or sends orders or revenue to it, has to switch to POST and send impressions and clicks only.
Fixed
  • Fixed the mstRelatedBlocks and mstRelatedBlock GraphQl queries returning disabled Product Blocks and blocks assigned to other store views. Headless and PWA storefronts now get only active blocks assigned to the current store view (or to all store views), exactly what the regular storefront shows. The only_active argument is still accepted, so existing queries keep working, but it can no longer be used to see disabled blocks.
  • Fixed a Product Block's Position accepting any text. Quotes or other special characters in a custom position could add unintended layout instructions to every storefront page. A block is now saved only when each /-separated part of its position contains letters, digits, _, . and -; otherwise saving stops with an error explaining what is allowed. This applies to the admin form and the REST API alike.

October 2026

1.6.4 Oct 27
Fixed
  • Fixed only one recommendation block getting credit when a shopper bought products from several blocks in the same visit. Until now the whole order went to the block clicked last, and products recommended by other clicked blocks earned them nothing. Each purchased product is now credited to the clicked block that showed it, so every block that sold something gets its order and its share of the revenue. When two clicked blocks showed the same product, the block clicked later gets it. This affects the Orders and Revenue in the Product Blocks grid and in the performance report for orders placed after the upgrade.
  • Fixed a recommendation block being counted an order when the shopper clicked it but bought none of the products it recommended. Revenue for such an order was already 0, but its Orders count still went up and made the block look like it sold more often than it did. A block now gets an order only when at least one product it showed was bought.
1.6.3 Oct 26
Improved
  • Works with version 2 of the shared Mirasvit Core package (mirasvit/module-core) as well as 1.3 and newer. Composer no longer blocks you from installing or updating Automatic Related Products next to other Mirasvit extensions that already need Core 2.
1.6.2 Oct 22
Improved
  • ⚠️ If you overrode a block template in your theme, mark each product in it — a personalized Recently Viewed block removes the product of the page it is on by the data-mst-related-item="<product id>" attribute that Mirasvit_Related::block/default.phtml, block/bulletproof.phtml, hyva/slider.phtml and hyva/no-slider.phtml now set on every product item. In an override that lacks it, a logged-in customer can see the product they are looking at in its own Recently Viewed block.
Fixed
  • Fixed Recently Viewed blocks on full-page-cached product and category pages showing every logged-in customer the same store-wide list. Each logged-in customer now sees the products they viewed themselves, on Luma and Hyvä: the page loads as cached and the block swaps in the customer's own list a moment later. In the swapped-in list, prices show, Add to Cart and Add to Wishlist return the shopper to the page they were on, the product of the current page is left out, and the products a customer has ordered are no longer dropped from it or put at its top as on the My Account page. Clicks on the swapped-in products are counted for the block's statistics as before. Guests, and customers with no browsing history yet, keep the store-wide list; pages that are not cached, such as the cart, keep showing the customer's own list as since 1.5.5.
  • Fixed Recently Viewed and Viewed Together blocks staying empty on Hyvä stores running Magento 2.4.9 or newer. From that version Magento records a product view only through a Luma script that Hyvä does not run, so no views were collected; the extension now records them on Hyvä product pages itself. As in Magento, views are recorded only while Enable Reports and Enable "Product View" Report are on (Stores > Configuration > General > Reports > General Options), and a view is still recorded when the shopper leaves the page right away. Earlier Magento versions record views on their own and are not affected.
  • Fixed a product condition with is not one of and several values letting through products that have the second or any later listed value. Only the first value was excluded; now a product matching any of the listed values is excluded.
1.6.1 Oct 20
Fixed
  • Fixed a recommendation block getting too little revenue credit when a shopper clicked it on more than one page in the same visit. Only the products the block showed at the last click were counted. For example, a block on product pages shows different products on each page. If the shopper clicked it on page A, then on page B, and bought products from both, the block was credited only for the page B products. The block is now credited for every product it showed the shopper during that visit. The order is still credited to the block the shopper clicked last, as before. This affects the Revenue in the Product Blocks grid and in the performance report for orders placed after the upgrade.
  • Fixed display conditions on the Product Block form on Adobe Commerce. Its page-type condition sections (product, category, cart and customer account pages) could be given the same internal id there, so a condition added in one section could land in another or not be added at all. Each condition section now has its own id and adds conditions only to itself.
  • Fixed admin users whose role allows Marketing > Related Products but not Magento's Catalog Price Rules or Cart Price Rules being unable to add display conditions to a Product Block. Adding a condition row now needs only the Related Products permission, and each section offers the conditions of its own page type.
1.6.0 Oct 19
New
Hyvä support now ships with the extension
The companion package mirasvit/module-related-hyva is gone: the product blocks, the slider and the grid an inject block renders in Hyvä's own related, up-sell and cross-sell slots are now part of Automatic Related Products itself. There is no second package to find and keep in step, and on a Luma store the Hyvä part simply stays dormant. Composer removes the companion package by itself when you upgrade.
New
GraphQl support now ships with the extension
mirasvit/module-related-graph-ql is gone; the mstRelatedBlocks and mstRelatedBlock queries and the mstRelatedTrack mutation used by headless and PWA storefronts are part of Automatic Related Products itself, shipped as a second Magento module, Mirasvit_RelatedGraphQl, inside the same package.
Improved
  • ⚠️ Hyva_MirasvitRelated is gone, not renamed — You only need to act if you referenced it yourself: in a custom di.xml, a layout file, or a deployment script that enables modules by name.
  • ⚠️ If you overrode a Hyvä template in your theme, repoint it — Hyva_MirasvitRelated::block/default.phtml, bulletproof.phtml and widget.phtml are now Mirasvit_Related::block/…, and the two slider containers moved: Hyva_MirasvitRelated::block/slider.phtml is Mirasvit_Related::hyva/slider.phtml, block/no-slider.phtml is Mirasvit_Related::hyva/no-slider.phtml. An override at an old path is simply not read, with no error to say so. The two containers are not block templates in their own right, so they do not appear in a Product Block's Template dropdown.
  • ⚠️ GraphQl now answers on every store — the mstRelated* queries and mutation are available as soon as the extension is installed, no extra package needed.
  • After upgrading a Hyvä store, run bin/magento hyva:config:generate and rebuild your theme's Tailwind CSS.
  • ⚠️ Hyvä theme module 1.3.14 or newer is required for the Hyvä storefront (hyva-themes/magento2-theme-module); composer refuses to update the extension on an older one. The Luma storefront has no such requirement.
  • ⚠️ If the companion was installed by unpacking an archive into app/code/Hyva/MirasvitRelated, delete that folder before setup:upgrade: composer cannot remove it, and left in place it would keep serving the old templates and record every impression and click twice.
  • One analytics tracker for both themes. If your Hyvä store still ran a companion older than 1.2.0, clicks on recommendation blocks now carry the products the block had shown, so the Revenue column fills in again. A click on Add to Cart inside a block now counts as a click on both themes (it did on Hyvä only), so an order placed straight from a block is credited to it on Luma as well.
Fixed
  • Fixed orders going uncredited in the Orders and Revenue columns when the shopper clicked a block on one day and ordered after the nightly statistics update. The update deleted the clicks an order is credited to; it now keeps them for 30 days. Statistics recorded while the update is running are no longer deleted before they are counted. ⚠️ bin/magento setup:upgrade adds column is_aggregated to table mst_related_analytics.
  • Fixed the mstRelatedTrack GraphQl mutation answering "Internal server error" on every call since GraphQl companion 1.2.0: its product_ids argument declared a list default, which Magento's schema reader cannot build. The argument is simply optional now.
  • Fixed a mstRelatedBlocks / mstRelatedBlock GraphQl query failing when it did not ask for the blocks' products, and a CUSTOMER query failing for a signed-in customer with a type error.
  • The position argument of mstRelatedBlocks is now validated: an unknown position answers an error instead of an empty list. An empty value still means every position.
1.5.5 Oct 5
Fixed
  • Fixed recommendation blocks built on recently viewed products showing every shopper the same store-wide list. The recently-viewed data merged the browsing of all customers into one pool, so a logged-in customer was recommended products based on what other people had looked at. The data is now kept per customer, and on pages that are not served from the full-page cache (for example, the cart), a logged-in customer now gets recommendations based on their own browsing. On cached product and category pages, and for guests, the block still uses the store-wide data so it never comes up empty. Personalizing those cached pages is planned for a later release. Rebuild the Related Products Index after upgrading for this to take effect.
  • Fixed product views of registered customers not being reliably limited by the Recently viewed in the last days setting (Stores > Configuration > Mirasvit > Related Products > Indexing) when recently-viewed data was rebuilt. The period was applied only to guests' views at that step. It now applies to registered customers' views the same way.

September 2026

1.5.4 Sep 29
Fixed
  • Fixed recommendation blocks built on recently viewed products showing nothing once a store had collected a lot of browsing history. When the recently-viewed data was rebuilt, the extension took an arbitrary 1,000 product views from the store's history and only then dropped those older than the Recently viewed in the last days setting (Stores > Configuration > Mirasvit > Related Products > Indexing). On a store with a long history, those 1,000 were often all old views, so every one was discarded and the recently-viewed data came out empty. The extension now keeps only views inside that period and takes the newest 1,000 of them, so these blocks are filled from shoppers' current browsing again.
1.5.3 Sep 28
Fixed
  • Fixed recommendation-block revenue being rounded to the nearest 10 cents. Every revenue figure the extension recorded was stored with only one decimal place, so an item worth 21.98 was saved as 22.00. Because a block is now credited only with the items it showed, this error landed on every attributed order and, with .99 pricing, mostly pushed the Revenue in the Product Blocks grid and in the performance report upwards. Revenue is now stored to the cent. Figures recorded before the upgrade keep their already-rounded values. ⚠️ bin/magento setup:upgrade changes column value of table mst_related_analytics and column revenue of table mst_related_analytics_aggregated from decimal(12,1) to decimal(12,4); no data is migrated.
1.5.2 Sep 25
Improved
  • Hardened the condition builder on the admin Rule form: only a real rule condition type is loaded when a condition row is added. An unknown or malformed condition type now just adds an empty row instead of raising an error.
Fixed
  • Fixed a product block ignoring its own Sort By setting when Mirasvit Sorting is installed. Sorting's own ranking scores were put ahead of the block's order, so products usually came out in Sorting's order instead of the one set on the block (for example, by price). Now the block's attribute sort (and Random) always decides the order. A block sorted by one of Mirasvit Sorting's criteria is still ordered by that criterion.
  • Fixed an error at checkout caused by recommendation-block analytics. If recording which block led to the sale failed (for example, because of an unreadable stored click record), the shopper saw an error even though the order had already been placed. Now the order always goes through: the failure is written to the Magento log, and the block simply gets no credit for that order.
  • Fixed an error page when opening, saving, duplicating or deleting a Product Block or Rule that no longer exists (for example, from an old bookmark or a link to a deleted record). The admin now sees "This block no longer exists." / "This rule no longer exists." and is returned to the grid.
  • Fixed an error when saving a Product Block with a custom layout position selected but no position entered.
1.5.1 Sep 22
Improved
  • The extension passes Magento Marketplace's automated code checks again, so it can be packaged and published there — a piece of internal code added in 1.4.1 was rejected by the packaging build and left 1.4.1 and 1.5.0 undistributable. Nothing about how blocks are chosen or displayed changes.
Fixed
  • Fixed a recommendation block being credited 0 revenue for a grouped product it had shown — the limitation noted in 1.5.0. A grouped product is never ordered as itself: the shopper buys its associated products, and those reach the order under their own IDs, so the sale the block had driven matched nothing on the order. A block that showed a grouped product is now credited with the associated products the shopper bought from it, so Orders and Revenue for that block in the Product Blocks grid and in the performance report reflect those sales. Bundles were already credited correctly and are unaffected.
1.5.0 Sep 21
New
Revenue credited only for the products a block actually showed
Until now a recommendation block was credited with the whole order — every item in the basket plus shipping — as long as the shopper had clicked that block anywhere in the session. One cheap item from the block alongside a full basket of unrelated products read as the block earning the lot, which made the Revenue column in the Product Blocks grid and in the performance report useless for deciding which blocks earn their screen space. A block is now credited with the value of just those ordered items it had put on screen: row total including tax, minus that line's discount. Shipping belongs to no item, so it is credited to no block, and a configurable product's line is counted once rather than twice. Clicks recorded before the upgrade did not store what the block had shown, so orders arising from them now credit 0 instead of the old whole-order figure — this is deliberate, as those are exactly the rows the old figure overstated. Known limitation: a block showing a grouped product credits 0, because the associated products are ordered under their own IDs and the grouped product itself never appears on the order. Bundles are credited correctly. ⚠️ A new nullable column shown_product_ids is added to table mst_related_analytics by bin/magento setup:upgrade; nothing existing is touched and no data is migrated.
Improved
  • Attribution works on every storefront that renders a recommendation block — Luma, Hyvä, and blocks placed through the widget — because the products shown are recorded once per block on the block wrapper both themes already emit, rather than on each product item (neither theme renders its own items in the general case, so a per-item marker would have left Hyvä and widget-placed blocks recording nothing and crediting $0). Your blocks also look exactly as they did before: one extra attribute on an element that was already there, with no new wrapper element that could shift the layout under flex or grid CSS.
  • Product pages no longer repeat a block's product lookup. Building the list of products for a block runs the selection-rule query, the native related/up-sell/cross-sell lookup, and a paged product load; that whole sequence used to run again every time anything else on the page asked the block for its products — twice per block, or three times on themes that use the getItemCollection() alias. It is now worked out once per block per page load.
1.4.1 Sep 18
Improved
  • Speeded up product pages that show several recommendation blocks for a configurable product. To decide whether a block should be displayed, the extension checks the product against the block's display conditions, and for a configurable product it also checks every one of its child products. That whole check was repeated from scratch for each block on the page, so a product with many variations and several blocks did the same work over and over. The verdict is now worked out once per product and set of display conditions and reused for the rest of the page — blocks with different display conditions are still evaluated separately, so which blocks appear does not change.
1.4.0 Sep 16
New
Turn click statistics off per store view
A new Enable tracking setting under Stores > Configuration > Mirasvit > Related Products > Statistics lets you stop the extension from recording impressions and clicks. It is set per store view, so you can switch it off on one busy store and leave it on elsewhere, and it is Yes by default, so nothing changes until you turn it off. With it off your recommendation blocks no longer send a tracking request to the server as each page loads — one production store was making 4,059 of those requests a day, each loading the whole application — and the Product Blocks grid shows Statistics tracking is disabled in place of Impressions, Clicks and CTR. Orders and Revenue keep working, because they come from order data rather than from tracking, and statistics already collected are kept. Hyvä storefronts honour the setting as well. ⚠️ Configuration path mst_related/statistics/is_tracking_enabled.
Improved
  • The statistics figures shown in the Product Blocks admin grid — Impressions, Clicks, Orders and Revenue — can now be translated; they were previously hardcoded English.
Fixed
  • Fixed order revenue being credited to the wrong recommendation block. When a shopper clicked products in more than one block before placing an order, the whole order was attributed to the first block clicked instead of the most recent one, so the per-block Orders and Revenue figures in the Product Blocks grid and in the performance report pointed at the wrong block. Attribution now follows the last block the shopper clicked.
  • Fixed the extension's tracking requests slowing down storefront pages. Every recommendation block sent its own tracking request while the page was still loading, and each of those requests opened a visitor session it never used. On stores with a locking session backend (Redis, for example) those requests queued behind the page that spawned them and added anywhere from 0.4 to 1.3 seconds to how long the page took to finish — more on a page carrying several blocks. The tracking endpoint no longer touches the session.
  • ⚠️ Fixed Product Selection Rules failing with an error on stores upgraded from older versions. A rule whose conditions had been saved in the old, pre-JSON storage format could no longer be opened in the admin or applied on the storefront — the page failed with a 500 error. Running bin/magento setup:upgrade now converts those saved conditions (column conditions_serialized of table mst_related_rule) to the current format. A row is rewritten only after the converted value has been read back and compared as identical, and any row that cannot be converted safely is left exactly as it was and named in the error log together with the reason, so you can find that rule and re-save its conditions by hand. The conversion runs once and can be re-run without harm.
1.3.11 Sep 3
Fixed
  • ⚠️ Fixed the extension's debug output being visible to any visitor on your storefront. Adding ?debug=mst-related to a product or category page URL printed the extension's internal diagnostics — including the raw database queries behind each block — to anyone who used it, with no login required. Debug output is now shown only when the new Developer Mode setting is turned on, under Stores > Configuration > Mirasvit > Related Products > General (configuration path mst_related/general/dev_mode). It is off by default, so nothing is exposed after the upgrade; switch it on only while troubleshooting, and leave it off on production stores. Reported by Michiel Gerritsen (Control Alt Delete).
  • Fixed the Product has image condition in Product Selection Rules ignoring store views. The condition always looked at the image set for the default store, so on a store view where a product's image is overridden — including a view where it is deliberately left without one — the condition gave the wrong answer, and products could also appear more than once in the same block. The condition now reads the image of the store view being viewed and falls back to the default store's image only when that view has none.
  • Fixed the Product Blocks admin grid forgetting your display settings. Changes to the number of rows per page, which columns are shown, sorting, and applied filters were lost as soon as you left the page or reloaded it, and saved grid views were unavailable. The grid now remembers these preferences between visits, the same way the Product Selection Rules grid already did.

August 2026

1.3.10 Aug 20
Improved
  • ⚠️ On upgrade, the render order stored for your existing blocks is corrected automatically to match the fixed Priority behaviour described below, so you do not have to re-save every block. Blocks whose placement order was hand-tuned in the database are left untouched.
Fixed
  • Fixed related, up-sell, and cross-sell blocks placed at the inject positions rendering nothing at all on Adobe Commerce (Magento Enterprise) and B2B. On those editions the native product blocks are replaced by Adobe's own Related Products Rules blocks, which the extension did not recognise — so the block silently produced no markup and no error. Such blocks now display their products on all editions.
  • Fixed the Priority setting working in reverse at the predefined layout positions. A lower Priority number now correctly wins: the block with the lowest number renders first and is the one that applies Ignore subsequent blocks. Previously the highest number came first.
  • Fixed the Priority setting working in reverse at the inject positions, so the same block wins there as at the layout positions.
  • Fixed a block saved without a position filling the error log. Such a block injects nowhere, yet the extension still wrote an incomplete layout record for it, which made Magento log a warning on every storefront page load for that store and theme. No record is written now, and clearing a block's position removes the record it had left behind.

July 2026

1.3.9 Jul 22
Fixed
  • Fixed a fatal error on category and product listing pages for stores running Magento Enterprise (Commerce) / B2B when a Product Selection Rule used a condition based on a product attribute. The page could fail to load with a database error; such blocks now render correctly on all editions.
  • Fixed exclusion conditions in Product Selection Rules (for example "attribute is not Yes" or "does not contain X"). Products that had no value stored for the attribute were being wrongly excluded, which could make the whole block disappear. These products are now included as expected.
  • Fixed the condition value list for custom Yes/No attributes in Product Selection Rules — the Yes and No options now appear in the dropdown so you can build the condition.
1.3.8 Jul 2
Improved
  • Unified how the extension decides which related, up-sell, or cross-sell block to display in a given page position. The logic that picks the highest-priority active, applicable block is now shared across all storefront placements (including Hyvä themes), so blocks appear consistently. This also enables blocks configured with Use slider = No to render correctly on Hyvä themes.

June 2026

1.3.7 Jun 18
Fixed
  • Fixed an error that could prevent related-product blocks from rendering inside emails. When transactional emails were generated by the queue (cron) or from the command line, the related products could fail to load with a database error. Blocks now resolve to a valid storefront view in these contexts, so the products display correctly.
1.3.6 Jun 18
Fixed
  • Fixed an error that could break the Add to Cart button shown inside related product blocks, so shoppers can again add those products to the cart directly from the block.
1.3.5 Jun 11
Improved
  • Clicking anywhere on a row in the Product Blocks and Selection Rules grids now opens that record for editing, instead of only the Select action menu.
  • When you duplicate a product block or selection rule, the copy is now named with a (copy) suffix, so you can tell it apart from the original at a glance.
Fixed
  • Fixed the Reset button on the Product Block and Selection Rule edit pages — it now reloads the form and discards your unsaved changes as expected.
  • Fixed an error that appeared when adding a Product has image condition to a selection rule.
  • Fixed a failure when duplicating a product block or selection rule that had some optional settings left empty.
1.3.4 Jun 8
Fixed
  • Fixed an error when saving a related products block
1.3.3 Jun 3
New
Ignore subsequent blocks
A new per-block toggle. When a block successfully displays its products in a page position, you can have it automatically hide any lower-priority blocks competing for the same position.
Improved
  • The block grid now includes a Priority column with filtering, so you can see and sort your blocks by priority at a glance.
  • Adds a new is_ignore_subsequent column to the related block table.

May 2026

1.3.2 May 11
Fixed
  • Fixed an error in product selection rules when adding a condition based on the Category attribute, so category-based rules can now be saved and edited without issues.
1.3.1 May 6
Fixed
  • Fixed a type error that prevented opening and editing existing product selection rules in the admin.

April 2026

1.3.0 Apr 29
New
REST API for related products
Manage product blocks, selection rules, and analytics over REST. Endpoints under /V1/mst-related/ cover blocks, rules, and analytics (full CRUD), plus read-only access to aggregated analytics, so external systems and integrations can create, update, list, and remove related-product configurations without using the admin UI.
Fixed
  • Fixed access to the Stores → Configuration → Mirasvit Extensions → Related Products section for admin users who had the Related Products permission granted but were still blocked from opening the configuration page.
1.2.31 Apr 22
Improved
  • Localize module to 15 locales (ar_SA, cs_CZ, de_DE, es_ES, fr_FR, it_IT, ja_JP, nl_NL, pl_PL, pt_BR, pt_PT, sv_SE, tr_TR, uk_UA, zh_Hans_CN)

March 2026

1.2.30 Mar 11
Fixed
  • Magento 2.4.9 compatibility

January 2026

1.2.29 Jan 21
Fixed
  • Compatibility with Mirasvit_Email

December 2025

1.2.28 Dec 26
Improved
  • Add Price
Loading...