Version Description
- Fix bugs
Download this release
Release Info
Developer | Mihail Barinov |
Plugin | Advanced Woo Search |
Version | 1.18 |
Comparing to | |
See all releases |
Code changes from version 1.17 to 1.18
- advanced-woo-search.php +2 -2
- assets/js/common.js +1 -1
- includes/class-aws-search-page.php +2 -2
- includes/class-aws-search.php +3 -6
- readme.txt +4 -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 |
Text Domain: aws
|
9 |
*/
|
@@ -13,7 +13,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
13 |
exit;
|
14 |
}
|
15 |
|
16 |
-
define( 'AWS_VERSION', '1.
|
17 |
|
18 |
|
19 |
define( 'AWS_DIR', dirname( __FILE__ ) );
|
3 |
/*
|
4 |
Plugin Name: Advanced Woo Search
|
5 |
Description: Advance ajax WooCommerce product search.
|
6 |
+
Version: 1.18
|
7 |
Author: ILLID
|
8 |
Text Domain: aws
|
9 |
*/
|
13 |
exit;
|
14 |
}
|
15 |
|
16 |
+
define( 'AWS_VERSION', '1.18' );
|
17 |
|
18 |
|
19 |
define( 'AWS_DIR', dirname( __FILE__ ) );
|
assets/js/common.js
CHANGED
@@ -33,7 +33,7 @@
|
|
33 |
}
|
34 |
|
35 |
if ( searchFor === '' ) {
|
36 |
-
$(d.resultBlock).html('');
|
37 |
methods.hideLoader();
|
38 |
return;
|
39 |
}
|
33 |
}
|
34 |
|
35 |
if ( searchFor === '' ) {
|
36 |
+
$(d.resultBlock).html('').hide();
|
37 |
methods.hideLoader();
|
38 |
return;
|
39 |
}
|
includes/class-aws-search-page.php
CHANGED
@@ -171,10 +171,10 @@ if ( ! class_exists( 'AWS_Search_Page' ) ) :
|
|
171 |
* Filter the posts array to contain ES query results in EP_Post form. Pull previously queried posts.
|
172 |
*
|
173 |
* @param array $posts
|
174 |
-
* @param object
|
175 |
* @return array
|
176 |
*/
|
177 |
-
public function filter_the_posts( $posts,
|
178 |
if ( ! $this->aws_searchpage_enabled( $query ) || ! isset( $this->posts_by_query[spl_object_hash( $query )] ) ) {
|
179 |
return $posts;
|
180 |
}
|
171 |
* Filter the posts array to contain ES query results in EP_Post form. Pull previously queried posts.
|
172 |
*
|
173 |
* @param array $posts
|
174 |
+
* @param object $query
|
175 |
* @return array
|
176 |
*/
|
177 |
+
public function filter_the_posts( $posts, $query ) {
|
178 |
if ( ! $this->aws_searchpage_enabled( $query ) || ! isset( $this->posts_by_query[spl_object_hash( $query )] ) ) {
|
179 |
return $posts;
|
180 |
}
|
includes/class-aws-search.php
CHANGED
@@ -319,7 +319,7 @@ if ( ! class_exists( 'AWS_Search' ) ) :
|
|
319 |
|
320 |
$product = wc_get_product( $post_id );
|
321 |
|
322 |
-
$post_data = $
|
323 |
|
324 |
$title = $product->get_title();
|
325 |
$title = AWS_Helpers::html2txt( $title );
|
@@ -366,9 +366,8 @@ if ( ! class_exists( 'AWS_Search' ) ) :
|
|
366 |
$sku = $product->get_sku();
|
367 |
}
|
368 |
|
369 |
-
$categories = $product->get_categories( ',' );
|
370 |
-
|
371 |
-
$tags = $product->get_tags( ',' );
|
372 |
|
373 |
$new_result = array(
|
374 |
'title' => $title,
|
@@ -376,8 +375,6 @@ if ( ! class_exists( 'AWS_Search' ) ) :
|
|
376 |
'link' => get_permalink( $post_id ),
|
377 |
'image' => $image,
|
378 |
'price' => $price,
|
379 |
-
'categories' => $categories,
|
380 |
-
'tags' => $tags,
|
381 |
'on_sale' => $on_sale,
|
382 |
'sku' => $sku,
|
383 |
'post_data' => $post_data
|
319 |
|
320 |
$product = wc_get_product( $post_id );
|
321 |
|
322 |
+
$post_data = get_post( $post_id );
|
323 |
|
324 |
$title = $product->get_title();
|
325 |
$title = AWS_Helpers::html2txt( $title );
|
366 |
$sku = $product->get_sku();
|
367 |
}
|
368 |
|
369 |
+
// $categories = $product->get_categories( ',' );
|
370 |
+
// $tags = $product->get_tags( ',' );
|
|
|
371 |
|
372 |
$new_result = array(
|
373 |
'title' => $title,
|
375 |
'link' => get_permalink( $post_id ),
|
376 |
'image' => $image,
|
377 |
'price' => $price,
|
|
|
|
|
378 |
'on_sale' => $on_sale,
|
379 |
'sku' => $sku,
|
380 |
'post_data' => $post_data
|
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: 4.7.5
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -73,6 +73,9 @@ Yep. This plugin is always compatible with the latest version of Woocommerce?
|
|
73 |
|
74 |
== Changelog ==
|
75 |
|
|
|
|
|
|
|
76 |
= 1.17 =
|
77 |
* Fix layout bugs
|
78 |
* Fix bugs with older versions of WooCommerce
|
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: 4.7.5
|
7 |
+
Stable tag: 1.18
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
73 |
|
74 |
== Changelog ==
|
75 |
|
76 |
+
= 1.18 =
|
77 |
+
* Fix bugs
|
78 |
+
|
79 |
= 1.17 =
|
80 |
* Fix layout bugs
|
81 |
* Fix bugs with older versions of WooCommerce
|