Advanced Woo Search - Version 2.65

Version Description

( 2022-10-17 ) = * Add - Support for Pustaka theme * Update - Tested with WC 7.0 * Fix - SQL query for language selection

Download this release

Release Info

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

Code changes from version 2.64 to 2.65

advanced-woo-search.php CHANGED
@@ -3,12 +3,12 @@
3
  /*
4
  Plugin Name: Advanced Woo Search
5
  Description: Advance ajax WooCommerce product search.
6
- Version: 2.64
7
  Author: ILLID
8
  Author URI: https://advanced-woo-search.com/
9
  Text Domain: advanced-woo-search
10
  WC requires at least: 3.0.0
11
- WC tested up to: 6.9.0
12
  */
13
 
14
 
@@ -96,7 +96,7 @@ final class AWS_Main {
96
  */
97
  private function define_constants() {
98
 
99
- $this->define( 'AWS_VERSION', '2.64' );
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.65
7
  Author: ILLID
8
  Author URI: https://advanced-woo-search.com/
9
  Text Domain: advanced-woo-search
10
  WC requires at least: 3.0.0
11
+ WC tested up to: 7.0.0
12
  */
13
 
14
 
96
  */
97
  private function define_constants() {
98
 
99
+ $this->define( 'AWS_VERSION', '2.65' );
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
@@ -210,6 +210,10 @@ if ( ! class_exists( 'AWS_Integrations' ) ) :
210
  add_action( 'wp_head', array( $this, 'vandana_wp_head' ) );
211
  }
212
 
 
 
 
 
213
  }
214
 
215
  add_action( 'wp_head', array( $this, 'head_js_integration' ) );
@@ -1545,6 +1549,31 @@ if ( ! class_exists( 'AWS_Integrations' ) ) :
1545
  </style>
1546
  <?php }
1547
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1548
  /*
1549
  * Exclude product categories
1550
  */
@@ -1791,6 +1820,10 @@ if ( ! class_exists( 'AWS_Integrations' ) ) :
1791
  $selectors[] = '#nm-header-search-form';
1792
  }
1793
 
 
 
 
 
1794
  // WCFM - WooCommerce Multivendor Marketplace
1795
  if ( class_exists( 'WCFMmp' ) ) {
1796
  $selectors[] = '#wcfmmp-store .woocommerce-product-search';
210
  add_action( 'wp_head', array( $this, 'vandana_wp_head' ) );
211
  }
212
 
213
+ if ( 'Pustaka' === $this->current_theme ) {
214
+ add_action( 'wp_head', array( $this, 'pustaka_wp_head' ) );
215
+ }
216
+
217
  }
218
 
219
  add_action( 'wp_head', array( $this, 'head_js_integration' ) );
1549
  </style>
1550
  <?php }
1551
 
1552
+ /*
1553
+ * Pustaka theme custom styles
1554
+ */
1555
+ public function pustaka_wp_head() { ?>
1556
+ <style>
1557
+ .site-header .searchform {
1558
+ opacity: 0;
1559
+ }
1560
+ .site-header .aws-container {
1561
+ width: 100%;
1562
+ }
1563
+ .site-header .aws-container .aws-search-form .aws-search-btn svg {
1564
+ fill: #CD40E6;
1565
+ }
1566
+ .site-header .aws-container .aws-search-field {
1567
+ border: none;
1568
+ padding: 0;
1569
+ }
1570
+ .site-header .aws-container .aws-search-form .aws-form-btn {
1571
+ border: none;
1572
+ background: transparent;
1573
+ }
1574
+ </style>
1575
+ <?php }
1576
+
1577
  /*
1578
  * Exclude product categories
1579
  */
1820
  $selectors[] = '#nm-header-search-form';
1821
  }
1822
 
1823
+ if ( 'Pustaka' === $this->current_theme ) {
1824
+ $selectors[] = '.site-header .searchform';
1825
+ }
1826
+
1827
  // WCFM - WooCommerce Multivendor Marketplace
1828
  if ( class_exists( 'WCFMmp' ) ) {
1829
  $selectors[] = '#wcfmmp-store .woocommerce-product-search';
includes/class-aws-search.php CHANGED
@@ -442,7 +442,7 @@ if ( ! class_exists( 'AWS_Search' ) ) :
442
  $current_lang = apply_filters( 'aws_search_current_lang', $current_lang );
443
 
444
  if ( $current_lang && $reindex_version && version_compare( $reindex_version, '1.20', '>=' ) ) {
445
- $query['lang'] = $wpdb->prepare( " AND ( lang = '%s' OR lang = '' )", $current_lang );
446
  }
447
 
448
  /**
442
  $current_lang = apply_filters( 'aws_search_current_lang', $current_lang );
443
 
444
  if ( $current_lang && $reindex_version && version_compare( $reindex_version, '1.20', '>=' ) ) {
445
+ $query['lang'] = $wpdb->prepare( " AND ( lang LIKE %s OR lang = '' )", '%' . $wpdb->esc_like( $current_lang ) . '%' );
446
  }
447
 
448
  /**
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Mihail Barinov
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=GSE37FC4Y7CEY
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.0
7
- Stable tag: 2.64
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -168,6 +168,11 @@ Yep. This plugin is always compatible with the latest version of Woocommerce?
168
 
169
  == Changelog ==
170
 
 
 
 
 
 
171
  = 2.64 ( 2022-10-03 ) =
172
  * Update - Minify assets
173
 
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=GSE37FC4Y7CEY
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.65
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
168
 
169
  == Changelog ==
170
 
171
+ = 2.65 ( 2022-10-17 ) =
172
+ * Add - Support for Pustaka theme
173
+ * Update - Tested with WC 7.0
174
+ * Fix - SQL query for language selection
175
+
176
  = 2.64 ( 2022-10-03 ) =
177
  * Update - Minify assets
178