Bug fixes, improved seamless integration, new filters.
New Features
Seamless integration for new themes
Seamless integration for current themes: Shopkeeper theme, Generatepress theme, Ocean WP theme and Avada theme.
When using one of this themes all what you need to do is going to plugin settings page and enable Seamless integration
option. After this all theme standard products search forms will be replaced with plugin ones.
Seamless integration with Divi builder
Also seamless integration now works with search forms that was created with Divi builder.
WooCommerce Product Table plugin support
There was some problems with search results pages that show products with help of WooCommerce Product Table plugin. Now all issues are fixed and search page display right results with both plugins.
Support for Elementor pop-up templates
Plugin search form now working fine with Elementor pop-up templates. There is no need in additional actions to make it works. Just enable Seamless integration
option from the plugin settings page and all your Elementor pop-ups that have search form will display AWS plugin search forms now.
Quantity selector for Add to cart button
New feature to display Quantity selector with add to cart button. Now there is three option to choose: not to display Add to cart button at all, display only button or display both button and Quantity selector.
Development
aws_js_seamless_selectors filter
If plugin standard seamless integration
not working for you ( not all theme filter search form output ) than you can try to use javascript seamless integration feature. Just add search form css selector that you want to replace with Advanced Woo Search form.
add_filter( 'aws_js_seamless_selectors', 'my_aws_js_seamless_selectors' ); function my_aws_js_seamless_selectors( $selectors ) { $selectors[] = '#searchform-header-replace form'; return $selectors; }
aws_highlight_tag filter
Customize highlight html tag that wrap all search words inside search results output. Default tag set to strong
.
add_filter( 'aws_highlight_tag', 'my_aws_highlight_tag' ); function my_aws_highlight_tag( $tag ) { return $tag; }
aws_terms_search_query filter
Filter taxonomies ( archive pages ) search query before performing the search.
add_filter( 'aws_terms_search_query', 'my_aws_terms_search_query', 10, 3 ); function my_aws_terms_search_query( $sql, $taxonomy, $search_query ) { return $sql; }
aws_search_terms_description filter
Search or not inside taxonomies description. Default - false
.
add_filter( 'aws_search_terms_description', 'my_aws_search_terms_description' ); function my_aws_search_terms_description( $return ) { return false; }
aws_searchbox_markup filter new parameter
Add second parameter to aws_searchbox_markup
filter. It is $params
array that contains settings for the current search form.
aws_tax_filter_include_childs filter
Include or not child taxonomies for exclude/include tax filter. Default - true
.
add_filter( 'aws_tax_filter_include_childs', 'my_aws_tax_filter_include_childs', 10, 3 ); function my_aws_tax_filter_include_childs( $return, $form_id, $filter_id ) { return $return; }
awsShowingResults js event
Javascript event that triggered every time after search results was displayed.
<script> window.addEventListener("awsShowingResults", function(e) { // do any stuff here }, false); </script>
Bug fixes
- Add indexes for table. Now update/delete operations for products inside index table performed much faster.
- Add support for phrases for synonyms words groups.
- Fix qTranslate plugin support.
- Search results box layout fixes.
- When fail index process will start from latest added product, not from the start.
- Speed-up search and index process.
- Extract and index shortcodes content during index process.
- Search page bug with multiple searches per load.
- Bug with search results sorting.
- Update highlight options.
- Taxonomies search with special characters bug fix.
- Bug with search results page cache.
- Hide disabled variations from search.
- Fix problem with wrong attributes inside variable products title.
- Display attributes inside variable product title for search results page.
- Exclude filter by taxonomies affects on all child taxonomies too.
- AND search logic bug.
- Fix problem with variations translation for qTranslate plugin.
- Custom fields index bug.
- Bug with wrong WooCommerce attribute filters count for search page when showing product variations.
- SSL verification for plugin updates.
- Bug with non-latin characters in terms names.
- Taxonomies and attributes archives search bug.
Comments