Advanced AJAX Product Filters - Version 1.5.5.4

Version Description

  • Enhancement - Compatibility version: WooCommerce 5.7
  • Enhancement - Compatibility with Aelia Currency Switcher global exchange rate
  • Fix - On some theme plugin use incorrect query for filters
Download this release

Release Info

Developer RazyRx
Plugin Icon wp plugin Advanced AJAX Product Filters
Version 1.5.5.4
Comparing to
See all releases

Code changes from version 1.5.5.3 to 1.5.5.4

includes/compatibility/aelia-currencyswitcher.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! function_exists( 'wmc_get_default_price' ) ) {
3
+ function wmc_get_default_price( $price ) {
4
+ $price_multiplier = $GLOBALS['woocommerce-aelia-currencyswitcher']->current_exchange_rate();
5
+ $price = $price / $price_multiplier;
6
+
7
+ return $price;
8
+ }
9
+ }
main.php CHANGED
@@ -568,7 +568,8 @@ class BeRocket_AAPF extends BeRocket_Framework {
568
  }
569
  if( function_exists('wmc_get_price') ) {
570
  include_once(plugin_dir_path( __FILE__ ) . "includes/compatibility/woo-multi-currency.php");
571
- }if( defined('WOOCS_VERSION') ) {
 
572
  include_once(plugin_dir_path( __FILE__ ) . "includes/compatibility/woocs.php");
573
  }
574
  if ( ((defined( 'WCML_VERSION' ) || defined('POLYLANG_VERSION')) && defined( 'ICL_LANGUAGE_CODE' )) || function_exists('wpm_get_language') ) {
@@ -589,6 +590,9 @@ class BeRocket_AAPF extends BeRocket_Framework {
589
  if( function_exists('premmerce_multicurrency') ) {
590
  include_once(plugin_dir_path( __FILE__ ) . "includes/compatibility/premmerce-multicurrency.php");
591
  }
 
 
 
592
  if( apply_filters('BeRocket_AAPF_widget_load_file', true) ) {
593
  foreach (glob(__DIR__ . "/includes/display_filter/*.php") as $filename)
594
  {
@@ -2225,6 +2229,7 @@ jQuery(document).on('change', '.berocket_disable_ajax_loading', berocket_disable
2225
  } else {
2226
  $is_wc_main_query = $query->is_main_query();
2227
  }
 
2228
  $is_wc_main_query = apply_filters('berocket_aapf_check_is_wc_main_query', $is_wc_main_query, $query, $is_shortcode);
2229
  if( apply_filters( 'berocket_aapf_is_filtered_page_check', ! empty($_GET['filters']), 'apply_user_filters', $query ) ) {
2230
  br_aapf_args_converter( $query );
568
  }
569
  if( function_exists('wmc_get_price') ) {
570
  include_once(plugin_dir_path( __FILE__ ) . "includes/compatibility/woo-multi-currency.php");
571
+ }
572
+ if( defined('WOOCS_VERSION') ) {
573
  include_once(plugin_dir_path( __FILE__ ) . "includes/compatibility/woocs.php");
574
  }
575
  if ( ((defined( 'WCML_VERSION' ) || defined('POLYLANG_VERSION')) && defined( 'ICL_LANGUAGE_CODE' )) || function_exists('wpm_get_language') ) {
590
  if( function_exists('premmerce_multicurrency') ) {
591
  include_once(plugin_dir_path( __FILE__ ) . "includes/compatibility/premmerce-multicurrency.php");
592
  }
593
+ if( ! empty($GLOBALS['woocommerce-aelia-currencyswitcher']) ) {
594
+ include_once(plugin_dir_path( __FILE__ ) . "includes/compatibility/aelia-currencyswitcher.php");
595
+ }
596
  if( apply_filters('BeRocket_AAPF_widget_load_file', true) ) {
597
  foreach (glob(__DIR__ . "/includes/display_filter/*.php") as $filename)
598
  {
2229
  } else {
2230
  $is_wc_main_query = $query->is_main_query();
2231
  }
2232
+
2233
  $is_wc_main_query = apply_filters('berocket_aapf_check_is_wc_main_query', $is_wc_main_query, $query, $is_shortcode);
2234
  if( apply_filters( 'berocket_aapf_is_filtered_page_check', ! empty($_GET['filters']), 'apply_user_filters', $query ) ) {
2235
  br_aapf_args_converter( $query );
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://berocket.com/product/woocommerce-ajax-products-filter?utm_s
5
  Tags: filters, product filters, ajax product filters, ajax filter, ajax filter widget, color filter, size filter, product onsale filter, product preview, product category filter, product reset filter, product sort by filter, stock filter, product tag filter, price range filter, price box filter, advanced product filters, woocommerce filters, woocommerce product filters, woocommerce products filter, woocommerce ajax product filters, widget, plugin, woocommerce item filters, filters plugin, ajax filters plugin, filter woocommerce products, filter woocommerce products plugin, wc filters, wc filters products, wc products filters, wc ajax products filters, wc product filters, wc advanced product filters, woocommerce layered nav, woocommerce layered navigation, ajax filtered nav, ajax filtered navigation, price filter, ajax price filter, woocommerce product sorting, sidebar filter, sidebar ajax filter, taxonomy filter, category filter, attribute filter, attributes filter, woocommerce product sort, ajax products filter plugin for woocommerce, rocket, berocket, berocket woocommerce ajax products filter
6
  Requires at least: 5.0
7
  Tested up to: 5.8
8
- Stable tag: 1.5.5.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -185,6 +185,11 @@ You can try this plugin's admin side [here](https://berocket.com/product/woocomm
185
 
186
  == Changelog ==
187
 
 
 
 
 
 
188
  = 1.5.5.3 =
189
  * Enhancement - Option to load products again when some filters not exist after filtering
190
  * Fix - Divi Module include not existed style file
5
  Tags: filters, product filters, ajax product filters, ajax filter, ajax filter widget, color filter, size filter, product onsale filter, product preview, product category filter, product reset filter, product sort by filter, stock filter, product tag filter, price range filter, price box filter, advanced product filters, woocommerce filters, woocommerce product filters, woocommerce products filter, woocommerce ajax product filters, widget, plugin, woocommerce item filters, filters plugin, ajax filters plugin, filter woocommerce products, filter woocommerce products plugin, wc filters, wc filters products, wc products filters, wc ajax products filters, wc product filters, wc advanced product filters, woocommerce layered nav, woocommerce layered navigation, ajax filtered nav, ajax filtered navigation, price filter, ajax price filter, woocommerce product sorting, sidebar filter, sidebar ajax filter, taxonomy filter, category filter, attribute filter, attributes filter, woocommerce product sort, ajax products filter plugin for woocommerce, rocket, berocket, berocket woocommerce ajax products filter
6
  Requires at least: 5.0
7
  Tested up to: 5.8
8
+ Stable tag: 1.5.5.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
185
 
186
  == Changelog ==
187
 
188
+ = 1.5.5.4 =
189
+ * Enhancement - Compatibility version: WooCommerce 5.7
190
+ * Enhancement - Compatibility with Aelia Currency Switcher global exchange rate
191
+ * Fix - On some theme plugin use incorrect query for filters
192
+
193
  = 1.5.5.3 =
194
  * Enhancement - Option to load products again when some filters not exist after filtering
195
  * Fix - Divi Module include not existed style file
woocommerce-filters.php CHANGED
@@ -3,14 +3,14 @@
3
  * Plugin Name: Advanced AJAX Product Filters for WooCommerce
4
  * Plugin URI: https://wordpress.org/plugins/woocommerce-ajax-filters/?utm_source=free_plugin&utm_medium=plugins&utm_campaign=ajax_filters
5
  * Description: Unlimited AJAX products filters to make your shop perfect
6
- * Version: 1.5.5.3
7
  * Author: BeRocket
8
  * Requires at least: 5.0
9
  * Author URI: https://berocket.com?utm_source=free_plugin&utm_medium=plugins&utm_campaign=ajax_filters
10
  * Text Domain: BeRocket_AJAX_domain
11
  * Domain Path: /languages/
12
- * WC tested up to: 5.6
13
  */
14
- define( "BeRocket_AJAX_filters_version", '1.5.5.3' );
15
  define( "BeRocket_AJAX_filters_file", __FILE__ );
16
  include_once('main.php');
3
  * Plugin Name: Advanced AJAX Product Filters for WooCommerce
4
  * Plugin URI: https://wordpress.org/plugins/woocommerce-ajax-filters/?utm_source=free_plugin&utm_medium=plugins&utm_campaign=ajax_filters
5
  * Description: Unlimited AJAX products filters to make your shop perfect
6
+ * Version: 1.5.5.4
7
  * Author: BeRocket
8
  * Requires at least: 5.0
9
  * Author URI: https://berocket.com?utm_source=free_plugin&utm_medium=plugins&utm_campaign=ajax_filters
10
  * Text Domain: BeRocket_AJAX_domain
11
  * Domain Path: /languages/
12
+ * WC tested up to: 5.7
13
  */
14
+ define( "BeRocket_AJAX_filters_version", '1.5.5.4' );
15
  define( "BeRocket_AJAX_filters_file", __FILE__ );
16
  include_once('main.php');