Advanced Woo Search - Version 2.69

Version Description

( 2022-12-12 ) = * Fix - OrderBy value for search results page query

Download this release

Release Info

Developer Mihail Barinov
Plugin Icon 128x128 Advanced Woo Search
Version 2.69
Comparing to
See all releases

Code changes from version 2.68 to 2.69

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.68
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.68' );
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.69
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.69' );
100
 
101
  $this->define( 'AWS_DIR', plugin_dir_path( AWS_FILE ) );
102
  $this->define( 'AWS_URL', plugin_dir_url( AWS_FILE ) );
includes/class-aws-order.php CHANGED
@@ -290,7 +290,11 @@ if ( ! class_exists( 'AWS_Order' ) ) :
290
  $order_by = 'price';
291
  }
292
 
293
- if ( isset( $query->query_vars['order'] ) ) {
 
 
 
 
294
  $order_by = $order_by . '-' . strtolower( $query->query_vars['order'] );
295
  }
296
 
290
  $order_by = 'price';
291
  }
292
 
293
+ if ( is_array( $order_by ) ) {
294
+ $order_by = isset( $order_by[0] ) ? $order_by[0] : '';
295
+ }
296
+
297
+ if ( $order_by && isset( $query->query_vars['order'] ) ) {
298
  $order_by = $order_by . '-' . strtolower( $query->query_vars['order'] );
299
  }
300
 
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: 6.1
7
- Stable tag: 2.68
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -168,6 +168,9 @@ Yep. This plugin is always compatible with the latest version of Woocommerce?
168
 
169
  == Changelog ==
170
 
 
 
 
171
  = 2.68 ( 2022-11-28 ) =
172
  * Update - Support for Perfect Brands for WooCommerce plugin
173
  * Update - Stop words list
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: 6.1
7
+ Stable tag: 2.69
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
168
 
169
  == Changelog ==
170
 
171
+ = 2.69 ( 2022-12-12 ) =
172
+ * Fix - OrderBy value for search results page query
173
+
174
  = 2.68 ( 2022-11-28 ) =
175
  * Update - Support for Perfect Brands for WooCommerce plugin
176
  * Update - Stop words list