The second image disappears after filtering a Magento 2 category. How do you trace Hover Image and AJAX?

2 min read

Two silver frames with lamp relief tiles, one with an empty slot. A violet mark and an apricot pull tab are visible.

The category shows a second photo on hover. After an AJAX filter, the same product shows only the main image. Pick a SKU present before and after filtering. Run both checks with a pointer in the same theme and store view.

Compare the first visit and a filter change

Use two visibly different photos for the test SKU and check the Hover Catalog role and its Thumbnail fallback. Record the main image URL and the URL shown on hover in the initial listing. Apply the filter and repeat. Open the filtered URL directly as well if your store provides one. Catalog Hover Image documentation

Check the image data and the replacement tile’s behavior

The Catalog Hover Image 1.0.6 script scans the list again on contentUpdated. In the tested version, a replacement tile for the same product ID can have an image URL available and still lack a hover handler. The widget tracks which IDs it has initialized. Compare the image markup, product ID, and update event after the list changes. Version 1.0.6 widget source · Adobe guidance on dynamic initialization

Test outcome and follow-up check
After filteringWhat to check
No hover image URLCheck the image roles and data for that product ID. For a newly loaded ID, inspect the image update request if one was made.
The new tile has different image markup or no IDCompare its HTML with the initial listing and check the widget selectors.
The hover URL is available and src stays the sameCheck that contentUpdated fires and that handlers attach to the replacement element.
src changes and the photo looks the sameCheck the loaded file and currentSrc, especially if the theme uses srcset.

Record the results for the integrator

Send the category URL, selected filter, SKU, store view, and theme and module versions. Include the two tile HTML fragments, the hover result, and the image request status if captured. After the fix, repeat the initial visit and apply the same filter.

Kowal Catalog Hover Image for Magento 2 · Set up the second product image

Previous Next

KOWAL.BLOG

Choose your language

Available versions open the corresponding page. More languages are being prepared.

English (UK) Français Deutsch Español Italiano Português Nederlands Svenska Dansk Norsk Suomi Lietuvių Latviešu Eesti Čeština Slovenčina Magyar Română Български Ελληνικά Slovenščina Hrvatski Polski English (US)