Version Description
- Update porto theme support
- Add aws_search_tax_results filter
- Add support for old WooCommerce versions ( 2.x )
Download this release
Release Info
Developer | Mihail Barinov |
Plugin | Advanced Woo Search |
Version | 1.63 |
Comparing to | |
See all releases |
Code changes from version 1.62 to 1.63
- advanced-woo-search.php +2 -2
- assets/js/common.js +3 -1
- includes/class-aws-search.php +22 -4
- 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: aws
|
@@ -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.63
|
7 |
Author: ILLID
|
8 |
Author URI: https://advanced-woo-search.com/
|
9 |
Text Domain: aws
|
16 |
exit;
|
17 |
}
|
18 |
|
19 |
+
define( 'AWS_VERSION', '1.63' );
|
20 |
|
21 |
|
22 |
define( 'AWS_DIR', dirname( __FILE__ ) );
|
assets/js/common.js
CHANGED
@@ -97,7 +97,9 @@
|
|
97 |
methods.analytics( searchFor );
|
98 |
|
99 |
},
|
100 |
-
error: function (
|
|
|
|
|
101 |
}
|
102 |
})
|
103 |
|
97 |
methods.analytics( searchFor );
|
98 |
|
99 |
},
|
100 |
+
error: function (jqXHR, textStatus, errorThrown) {
|
101 |
+
console.log( "Request failed: " + textStatus );
|
102 |
+
methods.hideLoader();
|
103 |
}
|
104 |
})
|
105 |
|
includes/class-aws-search.php
CHANGED
@@ -571,11 +571,18 @@ if ( ! class_exists( 'AWS_Search' ) ) :
|
|
571 |
);
|
572 |
}
|
573 |
}
|
574 |
-
|
575 |
|
576 |
-
|
577 |
-
|
578 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
579 |
|
580 |
// $categories = $product->get_categories( ',' );
|
581 |
// $tags = $product->get_tags( ',' );
|
@@ -792,6 +799,17 @@ if ( ! class_exists( 'AWS_Search' ) ) :
|
|
792 |
|
793 |
}
|
794 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
795 |
}
|
796 |
|
797 |
return $result_array;
|
571 |
);
|
572 |
}
|
573 |
}
|
|
|
574 |
|
575 |
+
if ( method_exists( $product, 'get_price' ) ) {
|
576 |
+
$f_price = $product->get_price();
|
577 |
+
}
|
578 |
+
|
579 |
+
if ( method_exists( $product, 'get_average_rating' ) ) {
|
580 |
+
$f_rating = $product->get_average_rating();
|
581 |
+
}
|
582 |
+
|
583 |
+
if ( method_exists( $product,'get_review_count' ) ) {
|
584 |
+
$f_reviews = $product->get_review_count();
|
585 |
+
}
|
586 |
|
587 |
// $categories = $product->get_categories( ',' );
|
588 |
// $tags = $product->get_tags( ',' );
|
799 |
|
800 |
}
|
801 |
|
802 |
+
/**
|
803 |
+
* Filters array of custom taxonomies that must be displayed in search results
|
804 |
+
*
|
805 |
+
* @since 1.63
|
806 |
+
*
|
807 |
+
* @param array $result_array Array of custom taxonomies
|
808 |
+
* @param string $taxonomy Name of taxonomy
|
809 |
+
* @param string $s Search query
|
810 |
+
*/
|
811 |
+
$result_array = apply_filters( 'aws_search_tax_results', $result_array, $taxonomy, $this->data['s'] );
|
812 |
+
|
813 |
}
|
814 |
|
815 |
return $result_array;
|
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.0
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -101,6 +101,11 @@ Yep. This plugin is always compatible with the latest version of Woocommerce?
|
|
101 |
|
102 |
== Changelog ==
|
103 |
|
|
|
|
|
|
|
|
|
|
|
104 |
= 1.62 =
|
105 |
* Fix Google Analytics events
|
106 |
* Fix jQuery errors
|
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.0
|
7 |
+
Stable tag: 1.63
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
101 |
|
102 |
== Changelog ==
|
103 |
|
104 |
+
= 1.63 =
|
105 |
+
* Update porto theme support
|
106 |
+
* Add aws_search_tax_results filter
|
107 |
+
* Add support for old WooCommerce versions ( 2.x )
|
108 |
+
|
109 |
= 1.62 =
|
110 |
* Fix Google Analytics events
|
111 |
* Fix jQuery errors
|