=== Sokol: Smart WooCommerce Search ===
Contributors: yummy-wp
Tags: search, ajax search, product search, search by sku, woocommerce search
Stable tag: 3.0.8
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Requires at least: 5.9
Tested up to: 7.0
Requires PHP: 7.0

Boost WooCommerce sales with instant Ajax product search — live suggestions, fullscreen popup, SKU search, and GA4 analytics, all in one plugin.

== Description ==

= Boost WooCommerce sales with instant Ajax product search — live suggestions, fullscreen popup, SKU search, and GA4 analytics. =

[Check Demo](https://demo.wpsmartsearch.com/) | [Documentation](https://www.wpsmartsearch.com/docs/) | [Upgrade to PRO](https://www.wpsmartsearch.com/features/?utm_source=wporg&utm_medium=link&utm_campaign=upgrade_to_pro)

WooCommerce's default search loses you sales. **Smart WooCommerce Search** replaces it with a fast, intelligent Ajax search that shows real-time product suggestions — with images, prices, and categories — before your customer even finishes typing.

Improve the default **WooCommerce search** or create a fully custom search widget in a few steps. The **Smart Search** plugin delivers real-time suggestions in a beautiful fullscreen popup with support for synonyms and recent searches — seamlessly integrated into any theme or page builder.

Smart falcon search pre-builds a dedicated search index for blazing-fast results on large catalogs. Sub-100ms search response even with 100,000+ products.

= Free Features: =

* [Data indexing](https://www.wpsmartsearch.com/docs/data-indexing/) - new feature!
* Full Screen Mode
* Recent Searches
* Search results with images and prices
* [Google Analytics integration (GA4)](https://www.wpsmartsearch.com/docs/analytics/) - new feature!
* Simple integration into default search widgets
* Advanced caching (Memcache, Redis) - new feature!
* [Search by product SKU or EAN](https://www.wpsmartsearch.com/docs/content-types/#2-toc-title)
* Search in product Categories
* Search in product Tags
* Selected product categories
* Allow/disallow searching in selected product categories
* Exclude "Out of stock" products from search results
* Multiple words search
* Elementor compatible
* DIVI compatible
* WPBakery Page Builder compatible
* Visual Composer compatible
* Search Exclude plugin compatible
* WPML compatibility - new feature!
* Polylang compatibility - new feature!

Discover all PRO features with a **14-day free trial** — no risk, cancel anytime.

= Upgrade to PRO and boost your sales: =

* Internal Analytics with top search queries, no-results phrases, and most-clicked products
* ["Did you mean" Keywords / Synonyms](https://www.wpsmartsearch.com/docs/synonyms/)
* Product Variations Popup - Shoppers can now select product options (size, color, and more) and add items to cart directly from the search popup
* Add to Cart button in search results
* Relevance configurator
* [Grid layout](https://www.wpsmartsearch.com/docs/layout-settings/#1-toc-title)
* [Search in Custom Post Types](https://www.wpsmartsearch.com/docs/content-types/#1-toc-title)
* [Search in Custom Taxonomies](https://www.wpsmartsearch.com/docs/content-types/#3-toc-title)
* [Search in Custom Fields](https://www.wpsmartsearch.com/docs/content-types/#2-toc-title)
* Search in Product Attributes
* Search in Product Brands
* Product labels (Featured, Sale, Out of Stock badges)
* [Stop words](https://www.wpsmartsearch.com/docs/stop-words/)
* ACF plugin compatibility
* Custom Post Type UI plugin compatibility
* Ultimate WooCommerce Brands plugin compatibility
* Automatic plugin updates
* More customization and styling settings
* SKU search/ EAN search

Have questions? [Contact us](https://www.wpsmartsearch.com/contact/).

== Installation ==

1. Unzip the downloaded .zip file.
2. Upload the **Smart Search** plugin folder to the `wp-content/plugins/` directory of your WordPress site.
3. Go to **Plugins** in your WordPress dashboard and activate **Sokol: Smart WooCommerce Search**.
4. Configure the falcon plugin at `/wp-admin/admin.php?page=smart-search`.
5. Place the search shortcode `<?php echo do_shortcode('[smart_search id="1"]'); ?>` into your theme template, or use the built-in widget.

== Frequently Asked Questions ==

= How do I add the Socol Smart Search widget to a theme template (PHP file)? =

Add this code: `<?php echo do_shortcode('[smart_search id="1"]'); ?>`

The example uses widget ID = 1. Make sure to change the ID to match the widget you configured in the plugin settings.

= Is it compatible with my WordPress theme? =

The falcon plugin integrates cleanly into virtually any theme. It may require minor CSS tweaks to match your exact design, but it works out of the box with all major themes and page builders (Elementor, DIVI, WPBakery, Visual Composer, Avada).

= How do I manage the plugin settings? =

Please refer to the [full documentation](https://www.wpsmartsearch.com/docs/general-settings/).

= Can I display WooCommerce product layout (e.g. 3 items per row) on the search results page? =

Yes. When searching through products — either via the default widget or a custom shortcode configured to search only products — the search results page renders the standard WooCommerce product grid layout.

= Does it work with WPML or Polylang for multilingual stores? =

Multilingual support (WPML and Polylang) is available.

= Is there a free trial for PRO? =

Yes — you can try all PRO features free for 14 days. Start your trial from the plugin settings page inside your WordPress dashboard.

== Screenshots ==

1. Latest Searches
2. Smart Search PRO - Grid layout
3. Smart Search PRO - Did you mean / Synonyms
4. Fullscreen Popup
5. Smart Search PRO - Product options

== Changelog ==

= 3.0.8 =
* Fixed: recent searches styling issue when search popup opened from website's menu
* Updated: translations

= 3.0.7 =
* Added: option "Display only Search Icon" - hides input field and shows only search button
* Added: ability to add "Sokol Smart Search" widget into menu

= 3.0.6 =
* Fixed: issue when user can't click on the founded results in the inline widget
* Checked: WordPress 7.0 compatibility

= 3.0.5 =
* Fixed: issue when a few inline widgets present and a backdrop covers widgets so user can't click on the founded results
* Updated: resent searches chips styles for mobile

= 3.0.4 =
* fix

= 3.0.0 =
* Added: new major feature - data indexing - that improves search performance
* Updated: WPML and Polylang compatibility
* Updated: caching logic

= 2.16.4 =
* Added: toggles to on/off category events for Google Analytics
* Added: possibility to remove default widgets
* Added: toggle 'Enhance Default' to enhance default theme's search bar
* Added: option 'SKU label'
* Updated: logic for stripping punctuation symbols

= 2.16.3 =
* Fixed: punctuation issue in search terms

= 2.16.2 =
* Improved: UI/UX for search popup
* Improved: code optimizations

= 2.16.1 =
* Updated: search results caching
* Compatibility: WooCommerce 10.7

= 2.16.0 =
* Added: option to enable events tracking (Google Analytics 4)
* Compatibility: WooCommerce 10.6

= 2.15.2 =
* Fixed: error related to title output

= 2.15.1 =
* Updated: spanish translations

= 2.15.0 =
* Added: Option to select predefined loader
* Added: Option to select custom image for loader
* Under the hood improvements

= 2.14.0 =
* Added: Option to display product rating
* Under the hood improvements

= 2.13.0 =
* Added: Option to display selected product categories in the fullscreen popup

= 2.12.3 =
* Updated: Freemius SDK

= 2.12.0 =
* Added: setting 'Full Screen Mode' to display results in a full screen popup
* Added: setting 'Recent Searches' to display user's latest searches
* Tweak: compatibility issue with DIVI builder
* Updated: admin settings styling

= 2.11.7 =
* Added: Setting 'Custom CSS selectors' to set CSS selectors to enhance existing search bar with Smart Search features
* Added: Setting 'Custom CSS Styles' to add inline CSS
* Tweak: fixed issue with multiple search bars on a page

= 2.11.6 =
* Added: WP filter 'sws_search_bar_css_selectors' to set CSS selectors to extend existing search bar with Smart Search features

= 2.11.5 =
* Fixed: 'Product Collection' block's query fix on the search results page
* Fixed: 'Query Loop' block's query fix on the search results page
* Fixed: compatibility issue with "HUSKY - Products Filter Professional for WooCommerce" plugin
* Tweak: woocommerce order filters issue on the search results page
* Tweak: updated custom search bar output to meet W3C requirements

= 2.11.4 =
* Fixed: search results page issue in a block-themes
* Tweak: woocommerce order filters issue on the search results page

= 2.11.3 =
* Fixed: problem with expired nonce due to cached page
* Fixed: inconsistent popup collapsing
* Fixed: Gutenberg search block tweak
* Added: translations

= 2.11.2 =
* Added: French translation file
* Added: Spanish translation file

= 2.11.0 =
* Added: option to set Popup Max Height for mobiles
* Added: option to select Image Size from defined media sizes
* Added: option to set a gap between search bar and popup
* Added: option to set Rounded Border for popup
* Added: option to set Search Bar Height
* Tweak: CSS styles updates

= 2.10.1 =
* Added: setting "Suppress Query Altering" for the search results page
* Added: filter 'sws_view_all_button_text'
* Added: filter 'sws_filter_search_terms'
* Tweak: small under the hood fixes

= 2.10.0 =
* Added: results order settings
* Added: blueprint.json file
* Tweak: REST request processing issue

= 2.9.0 =
* Added: "Popup Max Height" option
* Fixed: MYSQL query errors when search terms are incorrect
* Tweak: changes for the default search bar added through Gutenberg

= 2.8.0 =
* Fixed: issue with the "Highlight Search Terms on the Search Results Page" setting
* Tweak: Raised the minimum required PHP version to 7.0

= 2.7.0 =
* Added: option to disable default WooCommerce redirect to product page if there is only one search result
* Updates: small improvements

= 2.6.3 =
* Updates: bug fixes / code optimization / improvements

= 2.6.2 =
* Updates: php code optimization / improvements
* Updates: caching improvements

= 2.6.1 =
* Added: Declaration for WooCommerce High-Performance order storage compatibility

= 2.6.0 =
* Added: "Display Category" and "Category Color" options to output product/post category in the search results popup

= 2.5.2 =
* Fixed: deprecation warnings related to PHP 8
* Compatibility: WooCommerce 7.8

= 2.5.1 =
* Fixed: vulnerability issue related to missing capability checks on the duplicate() & remove() functions called via AJAX actions

= 2.5.0 =
* Added: target "_blank" option for "View All" button
* Compatibility: WooCommerce 7.5

= 2.4.0 =
* Added: hook for altering search results output 'ysm_suggestion_image_output'
* Compatibility: WooCommerce 7.0

= 2.3.1 =
* Fixed: issue when search results page doesn't display any products
* Updates: localization files and strings

= 2.3.0 =
* Fixed: Smart Search hooks priority issue when search results page doesn't displays needed products
* Fixed: issue when additional woocommerce filters do not applies to the products in search results
* Added: option to disable AJAX functionality (results popup)

= 2.2.7 =
* restored SKU search
* Compatibility: WooCommerce 5.9

= 2.2.6 =
* small fixes
* Compatibility: WooCommerce 5.8

= 2.2.5 =
* Fixed: issue with popup results click event
* Compatibility: WordPress 5.8
* Compatibility: WooCommerce 5.5

= 2.2.4 =
* Fixed: issue with non-latin encoding
* Compatibility: WooCommerce 5.2

= 2.2.3 =
* Fixed: errors while saving options on the multisite installation
* Tweaks: under the hood improvements

= 2.2.2 =
* Tweaks: optimizations for the query that runs on the search results page

= 2.2.1 =
* Fixed: tweaks for multiple words issue

= 2.2.0 =
* Added: option to extend default Avada's search bar
* Fixed: issue when multiple words separated with a space

= 2.1.1 =
* Fixed: fatal error when no custom widgets added

= 2.1.0 =
* Fixed: special character issue
* Updated: admin pages structure
* Compatibility: WooCommerce 5.0

= 2.0.3 =
* Tweaks: search results order
* Tweaks: input styles
* Compatibility: WooCommerce 4.8 and WordPress 5.6

= 2.0.2 =
* Fixed: popup height issue on mobiles
* Fixed: product link on the product title
* Compatibility: WooCommerce 4.7

= 2.0.1 =
* Fixed: issue with removing Elementor widget
* Fixed: error when searching in custom fields

= 2.0.0 =
* Database queries optimization
* Code optimization
* UI improvements
* Fixed: View All button link

= 1.6.2 =
* Tweaks: WooCommerce 4.4 compatibility
* small fixes

= 1.6.1 =
* WordPress 5.5 compatibility

= 1.6.0 =
* code refactoring and optimization
* Elementor compatibility
* Accessibility fix

= 1.5.20 =
* code refactoring and optimization
* WooCommerce 4.3 compatibility

= 1.5.19 =
* Fixed: issue related to single quote in a search terms
* code refactoring

= 1.5.18 =
* Fixed: issue when empty results on search page
* Fixed: empty placeholder in search bar
* Some code refactoring

= 1.5.17 =
* Fixed: search results page pre_get_posts filter

= 1.5.16 =
* Fixed: compatibility with Avada

= 1.5.15 =
* Updated: po file
* Small tweaks

= 1.5.14 =
* Compatibility with WooCommerce 4.0

= 1.5.13 =
* Added compatibility with WOOF plugin
* Fixed - issue with query parameters in View All button

= 1.5.12 =
* Fixed - WP 5.3 compatibility issue
* Fixed - issue with '+' symbol in the query

= 1.5.11 =
* Fixed - Polylang compatibility issue
* Fixed - Variations displaying when not in stock

= 1.5.10 =
* Fixed - DIVI shortcodes issue in search results

= 1.5.9 =
* Fixed - outputting variations when parent product in draft
* Code optimizations

= 1.5.8 =
* Improved - search results page output
* Improved - visibility and exclusion query parameters

= 1.5.7 =
* Fixed - search results page query
* Improved - autocomplete function

= 1.5.6 =
* Added - "Search Field Background Color" option
* Improved - "Fuzzy Search" option

= 1.5.5 =
* Fixed - php warning

= 1.5.4 =
* Fixed - results order (by title) issue when "fuzzy search" option enabled
* Fixed - issue on mobiles when results popup can't be closed

= 1.5.3 =
* Added - "Search Page Layout with Posts" option
* Fixed - displaying of "View all" link when no suggestions

= 1.5.2 =
* Fixed - "Disallowed Product Categories" option
* Fixed - searching by SKU

= 1.5.1 =
* Added "Disallowed Product Categories" option
* Support for WooCommerce 3.4.2

= 1.5.0 =
* Added excerpt position option

= 1.4.8 =
* Fixed duplicating of results when searching by SKU;
* Fixed outputting of all posts instead of no results;

= 1.4.7 =
* Fixed Search Page results amount issue

= 1.4.6 =
* Added Search Exclude plugin compatibility
* Under the hood improvements

= 1.4.5 =
* Fixed View All Button link
* Fixed Search results page output

= 1.4.4 =
* Speed optimizations
* Fixed form submitting link

= 1.4.3 =
* Added option - Exclude "Out of stock" products from results
* Under the hood improvements

= 1.4.2 =
* Fixed fuzzy search
* Fixed issue with '/' in search text

= 1.4.1 =
* Fixed syntax error for php version less than 5.4

= 1.4.0 =
* Added option "Fuzzy search (multiple word search)"
* Under the hood improvements

= 1.3.0 =
* Added option "Enable search through Variable Product Variations"
* Added option "Accent Words on Search Page"
* Under the hood improvements

= 1.2.3 =
* Fixed issue with a border in "No results" block

= 1.2.2 =
* Fixed issue with a special characters like "őűóíúéá"
* Fixed issue with a multibyte strings

= 1.2.1 =
* Fixed WooCommerce 3.0 compatibility issue, when new products didn't shows up in the search results
* Small improvements

= 1.2.0 =
* Added option to display a product SKU in the results popup
* Added option to restrict the product searching by selected categories
* Added option to set custom widget input border width
* Small improvements

= 1.1.3 =
* Prevent redirecting to the Search results page when a customer presses Enter and the number of typed characters less then characters number set in the plugin settings
* Fixed popup content scrolling by mouse wheel (Windows OS browsers)

= 1.1.2 =
* Fixed searching by sku
* Fixed css cross browser issues

= 1.1.1 =

* Fixed issue with fonts (fontello) conflict

= 1.1.0 =

* Changed search results page output - when using products search or when you set option to search only through products in default or in custom search widget (shortcode) the search page displays WooCommerce product layout
* Added option ("Display default search output on search results page") to disable plugin filter that overrides default WordPress or WooCommerce search query

= 1.0.0 =

* Initial release
