Version Description
- Update - Add SQL query inside responce
- Update - Seamless integration JS method
- Update - Divi theme integration
Download this release
Release Info
Developer | Mihail Barinov |
Plugin | Advanced Woo Search |
Version | 1.98 |
Comparing to | |
See all releases |
Code changes from version 1.97 to 1.98
- advanced-woo-search.php +2 -2
- assets/css/common.css +1 -1
- includes/class-aws-integrations.php +3 -2
- includes/class-aws-search.php +3 -1
- 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: 1.
|
7 |
Author: ILLID
|
8 |
Author URI: https://advanced-woo-search.com/
|
9 |
Text Domain: advanced-woo-search
|
@@ -16,7 +16,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
16 |
exit;
|
17 |
}
|
18 |
|
19 |
-
define( 'AWS_VERSION', '1.
|
20 |
|
21 |
|
22 |
define( 'AWS_DIR', dirname( __FILE__ ) );
|
3 |
/*
|
4 |
Plugin Name: Advanced Woo Search
|
5 |
Description: Advance ajax WooCommerce product search.
|
6 |
+
Version: 1.98
|
7 |
Author: ILLID
|
8 |
Author URI: https://advanced-woo-search.com/
|
9 |
Text Domain: advanced-woo-search
|
16 |
exit;
|
17 |
}
|
18 |
|
19 |
+
define( 'AWS_VERSION', '1.98' );
|
20 |
|
21 |
|
22 |
define( 'AWS_DIR', dirname( __FILE__ ) );
|
assets/css/common.css
CHANGED
@@ -479,7 +479,7 @@ body.aws-overlay {
|
|
479 |
margin: 0 20px 0 0;
|
480 |
}
|
481 |
.et_fixed_nav .et-fixed-header .et_search_outer .aws-container {
|
482 |
-
|
483 |
}
|
484 |
.et_pb_menu__search .aws-container {
|
485 |
width: 100%;
|
479 |
margin: 0 20px 0 0;
|
480 |
}
|
481 |
.et_fixed_nav .et-fixed-header .et_search_outer .aws-container {
|
482 |
+
top: 7px;
|
483 |
}
|
484 |
.et_pb_menu__search .aws-container {
|
485 |
width: 100%;
|
includes/class-aws-integrations.php
CHANGED
@@ -88,7 +88,6 @@ if ( ! class_exists( 'AWS_Integrations' ) ) :
|
|
88 |
add_filter( 'et_pb_search_shortcode_output', array( $this, 'divi_builder_search_module' ) );
|
89 |
add_filter( 'et_pb_menu_shortcode_output', array( $this, 'divi_builder_search_module' ) );
|
90 |
add_filter( 'et_pb_fullwidth_menu_shortcode_output', array( $this, 'divi_builder_search_module' ) );
|
91 |
-
add_action( 'wp_head', array( $this, 'head_js_integration' ) );
|
92 |
|
93 |
// Ocean wp theme
|
94 |
if ( class_exists( 'OCEANWP_Theme_Class' ) ) {
|
@@ -112,6 +111,8 @@ if ( ! class_exists( 'AWS_Integrations' ) ) :
|
|
112 |
|
113 |
}
|
114 |
|
|
|
|
|
115 |
// Wholesale plugin hide certain products
|
116 |
if ( class_exists( 'WooCommerceWholeSalePrices' ) ) {
|
117 |
add_filter( 'aws_search_results_products', array( $this,'wholesale_hide_products' ) );
|
@@ -652,7 +653,7 @@ if ( ! class_exists( 'AWS_Integrations' ) ) :
|
|
652 |
$pattern = '/(<div class="aws-container"[\s\S]*?<form.*?<\/form><\/div>)/i';
|
653 |
}
|
654 |
|
655 |
-
$html = '<style>.et_search_outer .aws-container {
|
656 |
$html = trim(preg_replace('/\s\s+/', ' ', $html));
|
657 |
$html = preg_replace( $pattern, $form, $html );
|
658 |
|
88 |
add_filter( 'et_pb_search_shortcode_output', array( $this, 'divi_builder_search_module' ) );
|
89 |
add_filter( 'et_pb_menu_shortcode_output', array( $this, 'divi_builder_search_module' ) );
|
90 |
add_filter( 'et_pb_fullwidth_menu_shortcode_output', array( $this, 'divi_builder_search_module' ) );
|
|
|
91 |
|
92 |
// Ocean wp theme
|
93 |
if ( class_exists( 'OCEANWP_Theme_Class' ) ) {
|
111 |
|
112 |
}
|
113 |
|
114 |
+
add_action( 'wp_head', array( $this, 'head_js_integration' ) );
|
115 |
+
|
116 |
// Wholesale plugin hide certain products
|
117 |
if ( class_exists( 'WooCommerceWholeSalePrices' ) ) {
|
118 |
add_filter( 'aws_search_results_products', array( $this,'wholesale_hide_products' ) );
|
653 |
$pattern = '/(<div class="aws-container"[\s\S]*?<form.*?<\/form><\/div>)/i';
|
654 |
}
|
655 |
|
656 |
+
$html = '<style>.et_search_outer .aws-container { position: absolute;right: 40px;top: 20px; }</style>' . $html;
|
657 |
$html = trim(preg_replace('/\s\s+/', ' ', $html));
|
658 |
$html = preg_replace( $pattern, $form, $html );
|
659 |
|
includes/class-aws-search.php
CHANGED
@@ -218,7 +218,8 @@ if ( ! class_exists( 'AWS_Search' ) ) :
|
|
218 |
|
219 |
$result_array = array(
|
220 |
'tax' => $custom_tax_array,
|
221 |
-
'products' => $products_array
|
|
|
222 |
);
|
223 |
|
224 |
|
@@ -430,6 +431,7 @@ if ( ! class_exists( 'AWS_Search' ) ) :
|
|
430 |
LIMIT 0, {$results_num}
|
431 |
";
|
432 |
|
|
|
433 |
|
434 |
$posts_ids = $this->get_posts_ids( $sql );
|
435 |
|
218 |
|
219 |
$result_array = array(
|
220 |
'tax' => $custom_tax_array,
|
221 |
+
'products' => $products_array,
|
222 |
+
'sql' => isset( $this->data['sql'] ) ? $this->data['sql'] : ''
|
223 |
);
|
224 |
|
225 |
|
431 |
LIMIT 0, {$results_num}
|
432 |
";
|
433 |
|
434 |
+
$this->data['sql'] = $sql;
|
435 |
|
436 |
$posts_ids = $this->get_posts_ids( $sql );
|
437 |
|
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.4
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -104,6 +104,11 @@ Yep. This plugin is always compatible with the latest version of Woocommerce?
|
|
104 |
|
105 |
== Changelog ==
|
106 |
|
|
|
|
|
|
|
|
|
|
|
107 |
= 1.97 =
|
108 |
* Update - Fully compatible with WooCommerce 4.0
|
109 |
* Update - Increase memory and time limit for index process
|
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.4
|
7 |
+
Stable tag: 1.98
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
104 |
|
105 |
== Changelog ==
|
106 |
|
107 |
+
= 1.98 =
|
108 |
+
* Update - Add SQL query inside responce
|
109 |
+
* Update - Seamless integration JS method
|
110 |
+
* Update - Divi theme integration
|
111 |
+
|
112 |
= 1.97 =
|
113 |
* Update - Fully compatible with WooCommerce 4.0
|
114 |
* Update - Increase memory and time limit for index process
|