Version Description
- Fix - Products search selected filters
- Fix - Deprecated Filters popup close
- Fix - Shortcode PHP error
Download this release
Release Info
Developer | RazyRx |
Plugin | Advanced AJAX Product Filters |
Version | 1.5.0.8 |
Comparing to | |
See all releases |
Code changes from version 1.5.0.7 to 1.5.0.8
- addons/deprecated_filters/deprecated_filters.php +2 -6
- includes/filters/dynamic_data_template.php +10 -1
- main.php +1 -0
- readme.txt +6 -1
- woocommerce-filters.php +2 -2
addons/deprecated_filters/deprecated_filters.php
CHANGED
@@ -143,14 +143,10 @@ class BeRocket_aapf_deprecated_compat_addon extends BeRocket_framework_addon_lib
|
|
143 |
'no_func' => 'jQuery(":contains(Deprecated Filters)").parents(".berocket_addon_label").find("input").prop("checked", true);',
|
144 |
),
|
145 |
'no_x_button' => true,
|
146 |
-
'close_with' => array(
|
147 |
-
'yes_button',
|
148 |
-
'no_button', '', '', '', '', '', '', ''
|
149 |
-
),
|
150 |
'height' => '500px',
|
151 |
'width' => '800px',
|
152 |
-
),
|
153 |
-
$popup_text,
|
154 |
array('event_new' => array('type' => 'event', 'event' => 'braapf_deprecated_filters_disabled'))
|
155 |
);
|
156 |
return $html;
|
143 |
'no_func' => 'jQuery(":contains(Deprecated Filters)").parents(".berocket_addon_label").find("input").prop("checked", true);',
|
144 |
),
|
145 |
'no_x_button' => true,
|
|
|
|
|
|
|
|
|
146 |
'height' => '500px',
|
147 |
'width' => '800px',
|
148 |
+
),
|
149 |
+
$popup_text,
|
150 |
array('event_new' => array('type' => 'event', 'event' => 'braapf_deprecated_filters_disabled'))
|
151 |
);
|
152 |
return $html;
|
includes/filters/dynamic_data_template.php
CHANGED
@@ -45,6 +45,8 @@ class BeRocket_AAPF_dynamic_data_template {
|
|
45 |
add_filter('BeRocket_AAPF_template_full_element_content', array($this, 'element_css_class'), 1300, 2);
|
46 |
//Selected Filters Area
|
47 |
add_filter('BeRocket_AAPF_template_full_element_content', array($this, 'selected_filters_hide_empty'), 1100, 2);
|
|
|
|
|
48 |
}
|
49 |
function checkbox_checked($element, $term, $i, $berocket_query_var_title) {
|
50 |
if( $berocket_query_var_title['new_template'] == 'checkbox' ) {
|
@@ -890,4 +892,11 @@ class BeRocket_AAPF_dynamic_data_template {
|
|
890 |
}</style>';
|
891 |
}
|
892 |
}
|
893 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
add_filter('BeRocket_AAPF_template_full_element_content', array($this, 'element_css_class'), 1300, 2);
|
46 |
//Selected Filters Area
|
47 |
add_filter('BeRocket_AAPF_template_full_element_content', array($this, 'selected_filters_hide_empty'), 1100, 2);
|
48 |
+
//Fix issues
|
49 |
+
add_filter('berocket_filter_filter_type_array', array($this, 'fix_not_correct_selected'));
|
50 |
}
|
51 |
function checkbox_checked($element, $term, $i, $berocket_query_var_title) {
|
52 |
if( $berocket_query_var_title['new_template'] == 'checkbox' ) {
|
892 |
}</style>';
|
893 |
}
|
894 |
}
|
895 |
+
function fix_not_correct_selected($options) {
|
896 |
+
global $wp_query;
|
897 |
+
if ( apply_filters( 'berocket_aapf_is_filtered_page_check', ! empty($_GET['filters']), 'get_filter_args', $wp_query ) ) {
|
898 |
+
br_aapf_args_converter($wp_query);
|
899 |
+
}
|
900 |
+
return $options;
|
901 |
+
}
|
902 |
+
}
|
main.php
CHANGED
@@ -1767,6 +1767,7 @@ jQuery(document).on('change', '.berocket_disable_ajax_loading', berocket_disable
|
|
1767 |
</div>';
|
1768 |
}
|
1769 |
public function shortcode_apply( $atts = array() ) {
|
|
|
1770 |
$atts = array_merge(array('apply' => true), $atts);
|
1771 |
remove_filter('berocket_aapf_wcshortcode_is_filtering', array($this, 'apply_filter_to_shortcode'));
|
1772 |
remove_filter('berocket_aapf_wcshortcode_is_filtering', array($this, 'not_apply_filter_to_shortcode'));
|
1767 |
</div>';
|
1768 |
}
|
1769 |
public function shortcode_apply( $atts = array() ) {
|
1770 |
+
if( ! is_array($atts) ) $atts = array();
|
1771 |
$atts = array_merge(array('apply' => true), $atts);
|
1772 |
remove_filter('berocket_aapf_wcshortcode_is_filtering', array($this, 'apply_filter_to_shortcode'));
|
1773 |
remove_filter('berocket_aapf_wcshortcode_is_filtering', array($this, 'not_apply_filter_to_shortcode'));
|
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.4.2
|
8 |
-
Stable tag: 1.5.0.
|
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.0.7 =
|
189 |
* Fix - Filters not displayed after disable Deprecated Filters add-on
|
190 |
* Fix - Empty sidebar not displayed
|
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.4.2
|
8 |
+
Stable tag: 1.5.0.8
|
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.0.8 =
|
189 |
+
* Fix - Products search selected filters
|
190 |
+
* Fix - Deprecated Filters popup close
|
191 |
+
* Fix - Shortcode PHP error
|
192 |
+
|
193 |
= 1.5.0.7 =
|
194 |
* Fix - Filters not displayed after disable Deprecated Filters add-on
|
195 |
* Fix - Empty sidebar not displayed
|
woocommerce-filters.php
CHANGED
@@ -3,7 +3,7 @@
|
|
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.0.
|
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
|
@@ -11,6 +11,6 @@
|
|
11 |
* Domain Path: /languages/
|
12 |
* WC tested up to: 4.3
|
13 |
*/
|
14 |
-
define( "BeRocket_AJAX_filters_version", '1.5.0.
|
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.0.8
|
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
|
11 |
* Domain Path: /languages/
|
12 |
* WC tested up to: 4.3
|
13 |
*/
|
14 |
+
define( "BeRocket_AJAX_filters_version", '1.5.0.8' );
|
15 |
define( "BeRocket_AJAX_filters_file", __FILE__ );
|
16 |
include_once('main.php');
|