Advanced Woo Search - Version 2.66

Version Description

( 2022-10-31 ) = * Add - Support for XStore theme * Update - Integration with WooCommerce Product Filter by WooBeWoo plugin * Update - Hooks for index table products sync

Download this release

Release Info

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

Code changes from version 2.65 to 2.66

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.65
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.65' );
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.66
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.66' );
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
@@ -214,6 +214,10 @@ if ( ! class_exists( 'AWS_Integrations' ) ) :
214
  add_action( 'wp_head', array( $this, 'pustaka_wp_head' ) );
215
  }
216
 
 
 
 
 
217
  }
218
 
219
  add_action( 'wp_head', array( $this, 'head_js_integration' ) );
@@ -1574,6 +1578,48 @@ if ( ! class_exists( 'AWS_Integrations' ) ) :
1574
  </style>
1575
  <?php }
1576
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1577
  /*
1578
  * Exclude product categories
1579
  */
@@ -1824,6 +1870,10 @@ if ( ! class_exists( 'AWS_Integrations' ) ) :
1824
  $selectors[] = '.site-header .searchform';
1825
  }
1826
 
 
 
 
 
1827
  // WCFM - WooCommerce Multivendor Marketplace
1828
  if ( class_exists( 'WCFMmp' ) ) {
1829
  $selectors[] = '#wcfmmp-store .woocommerce-product-search';
214
  add_action( 'wp_head', array( $this, 'pustaka_wp_head' ) );
215
  }
216
 
217
+ if ( 'XStore' === $this->current_theme ) {
218
+ add_action( 'wp_head', array( $this, 'xstore_wp_head' ) );
219
+ }
220
+
221
  }
222
 
223
  add_action( 'wp_head', array( $this, 'head_js_integration' ) );
1578
  </style>
1579
  <?php }
1580
 
1581
+ /*
1582
+ * XStore theme custom styles
1583
+ */
1584
+ public function xstore_wp_head() { ?>
1585
+ <style>
1586
+ #header form[role="search"]:not(.aws-search-form) {
1587
+ opacity: 0;
1588
+ }
1589
+ #header .aws-container .aws-search-form .aws-form-btn {
1590
+ background: #fff;
1591
+ }
1592
+ #header .aws-container .aws-search-form .aws-search-btn.aws-form-btn {
1593
+ background-color: #000000;
1594
+ }
1595
+ #header .aws-container .aws-search-form .aws-main-filter .aws-main-filter__current {
1596
+ color: #888;
1597
+ }
1598
+ #header .aws-container .aws-search-form .aws-search-btn svg {
1599
+ fill: #fff;
1600
+ }
1601
+ #header .et-mini-content .aws-container {
1602
+ width: 100%;
1603
+ max-width: 750px;
1604
+ margin-top: 50px;
1605
+ }
1606
+ #header [class*=et-content-]:not(.et-popup_toggle) .et_b_search-icon + .aws-container {
1607
+ opacity: 0;
1608
+ visibility: hidden;
1609
+ top: 100%;
1610
+ position: absolute;
1611
+ z-index: 9999;
1612
+ right: 0;
1613
+ width: 100%;
1614
+ min-width: 310px;
1615
+ }
1616
+ #header [class*=et-content-]:not(.et-popup_toggle):hover .et_b_search-icon + .aws-container {
1617
+ opacity: 1;
1618
+ visibility: visible;
1619
+ }
1620
+ </style>
1621
+ <?php }
1622
+
1623
  /*
1624
  * Exclude product categories
1625
  */
1870
  $selectors[] = '.site-header .searchform';
1871
  }
1872
 
1873
+ if ( 'XStore' === $this->current_theme ) {
1874
+ $selectors[] = "#header form[role='search']";
1875
+ }
1876
+
1877
  // WCFM - WooCommerce Multivendor Marketplace
1878
  if ( class_exists( 'WCFMmp' ) ) {
1879
  $selectors[] = '#wcfmmp-store .woocommerce-product-search';
includes/class-aws-table.php CHANGED
@@ -44,14 +44,6 @@ if ( ! class_exists( 'AWS_Table' ) ) :
44
  add_action( 'edit_term', array( &$this, 'term_changed' ), 10, 3 );
45
 
46
  add_action( 'delete_term', array( $this, 'term_deleted' ), 10, 4 );
47
-
48
- if ( defined('WOOCOMMERCE_VERSION') ) {
49
- if ( version_compare( WOOCOMMERCE_VERSION, '3.0', ">=" ) ) {
50
- add_action( 'woocommerce_variable_product_sync_data', array( $this, 'variable_product_changed' ) );
51
- } else {
52
- add_action( 'woocommerce_variable_product_sync', array( $this, 'variable_product_changed' ), 10, 2 );
53
- }
54
- }
55
 
56
  add_action( 'woocommerce_product_set_stock_status', array( $this, 'stock_status_changes' ), 10, 3 );
57
 
@@ -575,23 +567,6 @@ if ( ! class_exists( 'AWS_Table' ) ) :
575
 
576
  }
577
 
578
- /*
579
- * Fires when products variations are changed
580
- */
581
- public function variable_product_changed( $product, $children = null ) {
582
-
583
- $product_id = '';
584
-
585
- if ( is_object( $product ) ) {
586
- $product_id = $product->get_id();
587
- } else {
588
- $product_id = $product;
589
- }
590
-
591
- $this->update_table( $product_id );
592
-
593
- }
594
-
595
  /*
596
  * Product stock status changed
597
  */
44
  add_action( 'edit_term', array( &$this, 'term_changed' ), 10, 3 );
45
 
46
  add_action( 'delete_term', array( $this, 'term_deleted' ), 10, 4 );
 
 
 
 
 
 
 
 
47
 
48
  add_action( 'woocommerce_product_set_stock_status', array( $this, 'stock_status_changes' ), 10, 3 );
49
 
567
 
568
  }
569
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
570
  /*
571
  * Product stock status changed
572
  */
includes/modules/class-aws-woobewoo-filters.php CHANGED
@@ -136,7 +136,7 @@ if (!class_exists('AWS_Woobewoo_Filters')) :
136
  }
137
  elseif ( strpos( $key, 'filter_' ) === 0 || strpos( $key, 'wpf_filter_' ) === 0 ) {
138
 
139
- if ( strpos( $key, 'filter_pwb_' ) === 0 ) {
140
  $taxonomy = 'pwb-brand';
141
  } else {
142
  $taxonomy = str_replace( 'wpf_filter_', '', $key );
136
  }
137
  elseif ( strpos( $key, 'filter_' ) === 0 || strpos( $key, 'wpf_filter_' ) === 0 ) {
138
 
139
+ if ( strpos( $key, 'filter_pwb_' ) === 0 || strpos( $key, 'wpf_filter_pwb_' ) === 0 ) {
140
  $taxonomy = 'pwb-brand';
141
  } else {
142
  $taxonomy = str_replace( 'wpf_filter_', '', $key );
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.65
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.65 ( 2022-10-17 ) =
172
  * Add - Support for Pustaka theme
173
  * Update - Tested with WC 7.0
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.66
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
168
 
169
  == Changelog ==
170
 
171
+ = 2.66 ( 2022-10-31 ) =
172
+ * Add - Support for XStore theme
173
+ * Update - Integration with WooCommerce Product Filter by WooBeWoo plugin
174
+ * Update - Hooks for index table products sync
175
+
176
  = 2.65 ( 2022-10-17 ) =
177
  * Add - Support for Pustaka theme
178
  * Update - Tested with WC 7.0