Version Description
( 2021-08-02 ) = * Fix - Parse errors during index process * Fix - Possible parse errors during AJAX search * Fix - Astra theme seamless integration search form markup
Download this release
Release Info
Developer | Mihail Barinov |
Plugin | Advanced Woo Search |
Version | 2.33 |
Comparing to | |
See all releases |
Code changes from version 2.32 to 2.33
- advanced-woo-search.php +2 -2
- includes/class-aws-integrations.php +9 -0
- includes/class-aws-search.php +7 -1
- includes/class-aws-table.php +4 -0
- readme.txt +6 -1
advanced-woo-search.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/*
|
4 |
Plugin Name: Advanced Woo Search
|
5 |
Description: Advance ajax WooCommerce product search.
|
6 |
-
Version: 2.
|
7 |
Author: ILLID
|
8 |
Author URI: https://advanced-woo-search.com/
|
9 |
Text Domain: advanced-woo-search
|
@@ -96,7 +96,7 @@ final class AWS_Main {
|
|
96 |
*/
|
97 |
private function define_constants() {
|
98 |
|
99 |
-
$this->define( 'AWS_VERSION', '2.
|
100 |
|
101 |
$this->define( 'AWS_DIR', plugin_dir_path( AWS_FILE ) );
|
102 |
$this->define( 'AWS_URL', plugin_dir_url( AWS_FILE ) );
|
3 |
/*
|
4 |
Plugin Name: Advanced Woo Search
|
5 |
Description: Advance ajax WooCommerce product search.
|
6 |
+
Version: 2.33
|
7 |
Author: ILLID
|
8 |
Author URI: https://advanced-woo-search.com/
|
9 |
Text Domain: advanced-woo-search
|
96 |
*/
|
97 |
private function define_constants() {
|
98 |
|
99 |
+
$this->define( 'AWS_VERSION', '2.33' );
|
100 |
|
101 |
$this->define( 'AWS_DIR', plugin_dir_path( AWS_FILE ) );
|
102 |
$this->define( 'AWS_URL', plugin_dir_url( AWS_FILE ) );
|
includes/class-aws-integrations.php
CHANGED
@@ -128,6 +128,7 @@ if ( ! class_exists( 'AWS_Integrations' ) ) :
|
|
128 |
|
129 |
if ( 'Astra' === $this->current_theme ) {
|
130 |
add_filter( 'astra_get_search_form', array( $this, 'astra_markup' ), 999999 );
|
|
|
131 |
add_action( 'wp_head', array( $this, 'astra_head_action' ) );
|
132 |
}
|
133 |
|
@@ -877,6 +878,14 @@ if ( ! class_exists( 'AWS_Integrations' ) ) :
|
|
877 |
return $output;
|
878 |
}
|
879 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
880 |
/*
|
881 |
* Astra theme
|
882 |
*/
|
128 |
|
129 |
if ( 'Astra' === $this->current_theme ) {
|
130 |
add_filter( 'astra_get_search_form', array( $this, 'astra_markup' ), 999999 );
|
131 |
+
add_filter( 'aws_searchbox_markup', array( $this, 'astra_aws_searchbox_markup' ), 1 );
|
132 |
add_action( 'wp_head', array( $this, 'astra_head_action' ) );
|
133 |
}
|
134 |
|
878 |
return $output;
|
879 |
}
|
880 |
|
881 |
+
/*
|
882 |
+
* Astra theme form markup
|
883 |
+
*/
|
884 |
+
public function astra_aws_searchbox_markup( $markup ) {
|
885 |
+
$markup = str_replace( 'aws-container', 'aws-container search-form', $markup );
|
886 |
+
return $markup;
|
887 |
+
}
|
888 |
+
|
889 |
/*
|
890 |
* Astra theme
|
891 |
*/
|
includes/class-aws-search.php
CHANGED
@@ -71,7 +71,13 @@ if ( ! class_exists( 'AWS_Search' ) ) :
|
|
71 |
header( 'Content-Type: application/json; charset=' . get_option( 'blog_charset' ) );
|
72 |
}
|
73 |
|
74 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
|
76 |
die;
|
77 |
|
71 |
header( 'Content-Type: application/json; charset=' . get_option( 'blog_charset' ) );
|
72 |
}
|
73 |
|
74 |
+
ob_start();
|
75 |
+
|
76 |
+
$search_results = $this->search();
|
77 |
+
|
78 |
+
ob_end_clean();
|
79 |
+
|
80 |
+
echo json_encode( $search_results );
|
81 |
|
82 |
die;
|
83 |
|
includes/class-aws-table.php
CHANGED
@@ -81,6 +81,8 @@ if ( ! class_exists( 'AWS_Table' ) ) :
|
|
81 |
*/
|
82 |
public function reindex_table( $data = false ) {
|
83 |
|
|
|
|
|
84 |
global $wpdb;
|
85 |
|
86 |
$index_meta = $data ? $data : $_POST['data'];
|
@@ -176,6 +178,8 @@ if ( ! class_exists( 'AWS_Table' ) ) :
|
|
176 |
|
177 |
}
|
178 |
|
|
|
|
|
179 |
if ( $data ) {
|
180 |
return $index_meta;
|
181 |
} else {
|
81 |
*/
|
82 |
public function reindex_table( $data = false ) {
|
83 |
|
84 |
+
ob_start();
|
85 |
+
|
86 |
global $wpdb;
|
87 |
|
88 |
$index_meta = $data ? $data : $_POST['data'];
|
178 |
|
179 |
}
|
180 |
|
181 |
+
ob_end_clean();
|
182 |
+
|
183 |
if ( $data ) {
|
184 |
return $index_meta;
|
185 |
} else {
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: widget, plugin, woocommerce, search, product search, woocommerce search, ajax search, live search, custom search, ajax, shortcode, better search, relevance search, relevant search, search by sku, search plugin, shop, store, wordpress search, wp ajax search, wp search, wp search plugin, sidebar, ecommerce, merketing, products, category search, instant-search, search highlight, woocommerce advanced search, woocommerce live search, WooCommerce Plugin, woocommerce product search
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.8
|
7 |
-
Stable tag: 2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -167,6 +167,11 @@ Yep. This plugin is always compatible with the latest version of Woocommerce?
|
|
167 |
|
168 |
== Changelog ==
|
169 |
|
|
|
|
|
|
|
|
|
|
|
170 |
= 2.32 ( 2021-07-19 ) =
|
171 |
* Add - Support for Products Visibility by User Roles plugin
|
172 |
* Add - Support for WPBakery plugin. Added search form element for page builder
|
4 |
Tags: widget, plugin, woocommerce, search, product search, woocommerce search, ajax search, live search, custom search, ajax, shortcode, better search, relevance search, relevant search, search by sku, search plugin, shop, store, wordpress search, wp ajax search, wp search, wp search plugin, sidebar, ecommerce, merketing, products, category search, instant-search, search highlight, woocommerce advanced search, woocommerce live search, WooCommerce Plugin, woocommerce product search
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.8
|
7 |
+
Stable tag: 2.33
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
167 |
|
168 |
== Changelog ==
|
169 |
|
170 |
+
= 2.33 ( 2021-08-02 ) =
|
171 |
+
* Fix - Parse errors during index process
|
172 |
+
* Fix - Possible parse errors during AJAX search
|
173 |
+
* Fix - Astra theme seamless integration search form markup
|
174 |
+
|
175 |
= 2.32 ( 2021-07-19 ) =
|
176 |
* Add - Support for Products Visibility by User Roles plugin
|
177 |
* Add - Support for WPBakery plugin. Added search form element for page builder
|