Version Description
Download this release
Release Info
Developer | dholovnia |
Plugin | Advanced AJAX Product Filters |
Version | 1.0.3.4 |
Comparing to | |
See all releases |
Code changes from version 1.0.3.3 to 1.0.3.4
- includes/widget.php +4 -1
- readme.txt +2 -1
- woocommerce-filters.php +1 -1
includes/widget.php
CHANGED
@@ -96,10 +96,11 @@ class BeRocket_AAPF_Widget extends WP_Widget {
|
|
96 |
}
|
97 |
|
98 |
$woocommerce_hide_out_of_stock_items = BeRocket_AAPF_Widget::woocommerce_hide_out_of_stock_items();
|
99 |
-
$terms = $sort_terms = array();
|
100 |
|
101 |
if( $attribute == 'price' ) {
|
102 |
$price_range = BeRocket_AAPF_Widget::get_price_range( $wp_query_product_cat, $woocommerce_hide_out_of_stock_items );
|
|
|
103 |
}else{
|
104 |
$my_query = BeRocket_AAPF_Widget::get_filter_products( $wp_query_product_cat, $woocommerce_hide_out_of_stock_items );
|
105 |
|
@@ -114,6 +115,8 @@ class BeRocket_AAPF_Widget extends WP_Widget {
|
|
114 |
}
|
115 |
}
|
116 |
|
|
|
|
|
117 |
array_multisort( $sort_terms, $terms );
|
118 |
set_query_var( 'terms', $terms );
|
119 |
}
|
96 |
}
|
97 |
|
98 |
$woocommerce_hide_out_of_stock_items = BeRocket_AAPF_Widget::woocommerce_hide_out_of_stock_items();
|
99 |
+
$terms = $sort_terms = $price_range = array();
|
100 |
|
101 |
if( $attribute == 'price' ) {
|
102 |
$price_range = BeRocket_AAPF_Widget::get_price_range( $wp_query_product_cat, $woocommerce_hide_out_of_stock_items );
|
103 |
+
if( ! $price_range ) return false;
|
104 |
}else{
|
105 |
$my_query = BeRocket_AAPF_Widget::get_filter_products( $wp_query_product_cat, $woocommerce_hide_out_of_stock_items );
|
106 |
|
115 |
}
|
116 |
}
|
117 |
|
118 |
+
if ( @ count( $terms ) < 2 ) return false;
|
119 |
+
|
120 |
array_multisort( $sort_terms, $terms );
|
121 |
set_query_var( 'terms', $terms );
|
122 |
}
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: http://berocket.com
|
|
5 |
Tags: filters, product filters, ajax product filters, advanced product filters, woocommerce filters, woocommerce product filters, woocommerce ajax product filters
|
6 |
Requires at least: 3.9
|
7 |
Tested up to: 4.1
|
8 |
-
Stable tag: 1.0.3.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -88,6 +88,7 @@ WooCommerce AJAX Filters - advanced AJAX product filters plugin for WooCommerce.
|
|
88 |
|
89 |
= 1.0.3.3 =
|
90 |
* Enhancement/Fix - Showing products and options now depending on woocommerce_hide_out_of_stock_items option
|
|
|
91 |
* Fix - If in category, only products/options from this category will be shown
|
92 |
|
93 |
= 1.0.3.2 =
|
5 |
Tags: filters, product filters, ajax product filters, advanced product filters, woocommerce filters, woocommerce product filters, woocommerce ajax product filters
|
6 |
Requires at least: 3.9
|
7 |
Tested up to: 4.1
|
8 |
+
Stable tag: 1.0.3.4
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
88 |
|
89 |
= 1.0.3.3 =
|
90 |
* Enhancement/Fix - Showing products and options now depending on woocommerce_hide_out_of_stock_items option
|
91 |
+
* Enhancement/Fix - If not enough data available( quantity of options < 2 ) filters will not be shown.
|
92 |
* Fix - If in category, only products/options from this category will be shown
|
93 |
|
94 |
= 1.0.3.2 =
|
woocommerce-filters.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Advanced AJAX Product Filters for WooCommerce
|
4 |
Plugin URI: http://berocket.com/wp-plugins/product-filters
|
5 |
Description: Advanced AJAX Product Filters for WooCommerce
|
6 |
-
Version: 1.0.3.
|
7 |
Author: BeRocket
|
8 |
Author URI: http://berocket.com
|
9 |
*/
|
3 |
Plugin Name: Advanced AJAX Product Filters for WooCommerce
|
4 |
Plugin URI: http://berocket.com/wp-plugins/product-filters
|
5 |
Description: Advanced AJAX Product Filters for WooCommerce
|
6 |
+
Version: 1.0.3.4
|
7 |
Author: BeRocket
|
8 |
Author URI: http://berocket.com
|
9 |
*/
|