kowal.info

Search Optimizer Hyvä

Product page

Search Optimizer — kowal.co

Description

Display Search Optimizer suggestions in the Hyvä header while keeping the normal search form available for full results.

For whom

For merchants offering autocomplete on desktop and mobile and developers integrating a custom header.

Features

  • Read ranked suggestions from the base module’s endpoint.
  • Navigate suggestions with the arrow keys and open a result with Enter.
  • Discard stale responses when the shopper changes the query.

Installation

This component is included in Search Optimizer. Follow the module installation instructions. Enable the base module and its adapter, then apply the release:

bin/magento module:enable Kowal_SearchOptimizer Kowal_SearchOptimizerHyva
bin/magento setup:upgrade
bin/magento cache:clean

Configuration

  1. Select the Hyvä store view. Under Stores → Configuration → Kowal → Search Optimizer → Hyva Compatibility, enable Enable Hyva Autocomplete.
  2. Use the standard search input with ID search or search-input. For a custom header, add data-kowal-searchoptimizer-input to the input and retain a GET form with the field named q.

Requirements / notes

The base module sets the minimum query length, result limit and ranking. The adapter also recognizes supported search inputs inserted when the mobile header opens.

FAQ

How can shoppers open the full results page while suggestions are visible?

Press Enter while focus is in the search field. When focus is on a suggestion, Enter follows that result instead.

Verify the installation

bin/magento module:status Kowal_SearchOptimizerHyva

Type a known product name long enough to trigger suggestions. Use an arrow key and Enter to open a result. Repeat on mobile and check that Escape closes the suggestions when using a keyboard.