Skip to content

fix: render visual tiles on search result pages with category match#98

Open
ahuininga-orisha wants to merge 1 commit into
developfrom
fix/229938-visual-on-search
Open

fix: render visual tiles on search result pages with category match#98
ahuininga-orisha wants to merge 1 commit into
developfrom
fix/229938-visual-on-search

Conversation

@ahuininga-orisha

@ahuininga-orisha ahuininga-orisha commented May 27, 2026

Copy link
Copy Markdown
Collaborator

When Tweakwise returns a Visual tile in search results (e.g. when a search query triggers a category match), the Visual was not shown. This adds the Hyva template override for the Visual block on the search result page, consistent with how hyva_catalog_category_view.xml handles it for category pages.

  • src/view/frontend/layout/hyva_catalogsearch_result_index.xml — added <referenceBlock> to override tweakwise.catalog.product.list.visual template to Tweakwise_TweakwiseHyva::product/list/visual.phtml. The Hyva AJAX search layout (hyva_tweakwise_ajax_search.xml) inherits this automatically via <update handle="hyva_catalogsearch_result_index"/>.
  • Main module PR: fix: render visual tiles on search result pages with category match Magento2Tweakwise#390

How to test

Scenario 1 — Visual renders on Hyva search page with category match

  1. On a Hyva storefront, perform a search query that triggers a category match (e.g. bags).
  2. Expected: The Visual tile renders correctly using the Hyva visual template at the correct grid position.

Scenario 2 — Category page Visuals still render on Hyva

  1. Navigate to a category page with a Visual configured in its builder.
  2. Expected: Visual tile renders correctly — unchanged behaviour.

Scenario 3 — AJAX filtering on Hyva search preserves Visual

  1. On the Hyva search result page from scenario 1, apply a facet filter via AJAX.
  2. Expected: The Visual tile remains at the correct position after filtering.

@ahuininga-orisha ahuininga-orisha changed the title fix: add visual template override for search result page fix: render visual tiles on search result pages with category match May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant