Skip to content

Access the settings

The settings can be found in the WooCommerce main menu:

Dashboard → WooCommerce → Glance Search

Behavior

Parameters that control how the search works.

  • Live search — Enables real-time search. If disabled, the form submits normally.
  • Minimum characters — Number of characters before starting the search. 
  • Maximum results — Number of products displayed in the results.
  • Search timeout — Wait time (in ms) after the last keystroke before launching the query.
  • Search within content — Includes the full product description in the search. May be slow on large catalogs. Default: disabled.
  • Search within the extract — Includes the short product description in the search. 
  • Search within variations  — Allows searching by variation attributes (color, size, etc.). 
  • Search button — Displays a button in the bar (icon or text, inside or outside). 
  • Search history — Displays recent searches when you click on the search field. 

Tip: For catalogs with more than 1000 products, keep the delay at 300 ms or more, and avoid « Search in content » unless you have a FULLTEXT index (see Developers ).

Appearance and design of the search bar.

Design models

  • Sharp — Straight corners, clean edges. 
  • Clean — Rounded corners, modern style. 
  • Pill  — Pill-shaped, completely rounded.
  • Custom  — 100% customizable.

Customization options

  • Placeholder — Placeholder text in the empty field. Default: « Search for a product (name or SKU)… »
  • Category filter — Adds a dropdown menu of categories to the bar. 
  • Bar height — In pixels. 
  • Background color  — Color at rest and in focus. 
  • Border — Thickness
  • Text colors — Color of entered text and placeholder. 
  • Button  — Background colors, hover effect, text, and button radius.
  • Focus ring — Ring visible when the bar is selected (accessibility).

Results

This is what is displayed in the list of results.

  • Display images — Product thumbnail in results. Default:
  • Display prices — Prices with promotions (bar price + promotional price). 
  • Show tags — Product tags matching the search. 
  • Display categories  — Matching categories with number of products. 
  • Display SKU — Product reference under the title. 
  • Show rating  — Star rating based on reviews. 
  • Category counter  — Number of products per category.

Product recommendations

Displays complementary products below the results. Prioritizes WooCommerce upsells or featured products.

  • Number of recommendations
  • Label — Customizable text. 

Mobile

Specific display options for phones.

  • Full-screen mode — On mobile, the search opens in full screen for improved usability.
  • Breakpoint — Screen width below which full-screen mode is activated. 
  • Disable on mobile — Completely disables Glance on mobile. Native WordPress search is then used.

Performance

Optimizing speed and safety.

  • Server cache — Enables caching (Redis/Memcached) for results. Significantly reduces database queries.
  • Cache duration — Cache lifetime in minutes. Free version: max 30 min.
  • Security headers — Adds additional HTTP protections. 
  • Data Retention  — Analytics retention period. Old data is automatically purged.

How does the cache work?

  1. Browser cache — Results are stored in the browser’s memory for 5 minutes (maximum 20 terms). No server request is made if the term is already cached.
  2. Server cache — Uses Redis or Memcached. The cache key includes the term, language, and active filters.
  3. Automatic invalidation — The cache is automatically cleared when a product is modified, created, deleted, or its stock changes.

Was this article helpful?