Repository navigation
v1.0.44
Bug fixes: Mobile slider, PLP swatch revert, search/PageBuilder support
Bug 1 — Mobile slider shows blank images for filtered colors:
When filtering by color on the PDP with Rollpix Product Gallery in slider mode, hidden images appeared as blank white slides on mobile swipe. The adapter hid items with CSS but the slider's internal state wasn't synced.
Fix: After filtering, click the first visible thumbnail to sync slider state. Added a touchend guard that detects when a swipe lands on a hidden slide and redirects to the nearest visible one.
Bug 2a — PLP swatch image briefly changes then reverts:
On category pages, clicking a color swatch updated the product image, but Magento's native swatch-renderer immediately overwrote it with the default image.
Fix: All three PLP scripts (swatch-image.js, hoverslider-compat.js, imageflip-compat.js) now defer their image updates with setTimeout(100ms) to run AFTER the native handler.
Bug 2b — PLP swatch doesn't work on search results, Page Builder widgets, or homepage:
The plp_gallery_data.phtml template only loaded on category pages (catalog_category_view) and only checked two hardcoded block names.
Fix:
- Added layout handles:
catalogsearch_result_index.xml(search),cms_page_view.xml(CMS pages),cms_index_index.xml(homepage) - Template now falls back to searching all layout blocks for
ListProductorCatalogWidget\ProductsListinstances, covering Page Builder product widgets