Version Description
- Fix - another js issue that stops plugin from work
- Fix - order by name, name_numeric and attribute ID wasn't working
Download this release
Release Info
Developer | dholovnia |
Plugin | Advanced AJAX Product Filters |
Version | 1.1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.1.0.1 to 1.1.0.2
- includes/widget.php +2 -2
- js/widget.min.js +3 -1
- readme.txt +5 -1
- woocommerce-filters.php +1 -1
includes/widget.php
CHANGED
@@ -147,12 +147,12 @@ class BeRocket_AAPF_Widget extends WP_Widget {
|
|
147 |
$sort_array[] = get_woocommerce_term_meta( $term->term_id, 'order_' . $attribute );
|
148 |
}
|
149 |
array_multisort( $sort_array, $terms );
|
150 |
-
} elseif ( $
|
151 |
foreach ( $terms as $term ) {
|
152 |
$sort_array[] = $term->name;
|
153 |
}
|
154 |
$sort_as = SORT_STRING;
|
155 |
-
if ( $
|
156 |
$sort_as = SORT_NUMERIC;
|
157 |
}
|
158 |
array_multisort( $sort_array, $terms, SORT_ASC, $sort_as );
|
147 |
$sort_array[] = get_woocommerce_term_meta( $term->term_id, 'order_' . $attribute );
|
148 |
}
|
149 |
array_multisort( $sort_array, $terms );
|
150 |
+
} elseif ( $wc_order_by == 'name' or $wc_order_by == 'name_num' ) {
|
151 |
foreach ( $terms as $term ) {
|
152 |
$sort_array[] = $term->name;
|
153 |
}
|
154 |
$sort_as = SORT_STRING;
|
155 |
+
if ( $wc_order_by == 'name_num' ) {
|
156 |
$sort_as = SORT_NUMERIC;
|
157 |
}
|
158 |
array_multisort( $sort_array, $terms, SORT_ASC, $sort_as );
|
js/widget.min.js
CHANGED
@@ -20,6 +20,9 @@
|
|
20 |
}
|
21 |
|
22 |
function update_selected_area() {
|
|
|
|
|
|
|
23 |
tmp_html = '';
|
24 |
prev_label = '';
|
25 |
el_type = '';
|
@@ -125,7 +128,6 @@
|
|
125 |
|
126 |
function updateProducts( $force ){
|
127 |
if ( typeof $force == 'undefined' ) $force = false;
|
128 |
-
|
129 |
// if we have update_button on the page we must wait for it to be clicked
|
130 |
if ( ! $force && berocket_aapf_widget_wait_for_button ) return false;
|
131 |
|
20 |
}
|
21 |
|
22 |
function update_selected_area() {
|
23 |
+
if ( ! $('.berocket_aapf_widget_selected_area').hasClass('berocket_aapf_widget_selected_area') ) {
|
24 |
+
return false;
|
25 |
+
}
|
26 |
tmp_html = '';
|
27 |
prev_label = '';
|
28 |
el_type = '';
|
128 |
|
129 |
function updateProducts( $force ){
|
130 |
if ( typeof $force == 'undefined' ) $force = false;
|
|
|
131 |
// if we have update_button on the page we must wait for it to be clicked
|
132 |
if ( ! $force && berocket_aapf_widget_wait_for_button ) return false;
|
133 |
|
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.1
|
8 |
-
Stable tag: 1.1.0.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -110,6 +110,10 @@ you set to order `by custom` you can drag&drop values up and down and set yo
|
|
110 |
|
111 |
== Changelog ==
|
112 |
|
|
|
|
|
|
|
|
|
113 |
= 1.1.0.1 =
|
114 |
* Fix - js issue that stops plugin from work
|
115 |
|
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.1
|
8 |
+
Stable tag: 1.1.0.2
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
110 |
|
111 |
== Changelog ==
|
112 |
|
113 |
+
= 1.1.0.2 =
|
114 |
+
* Fix - another js issue that stops plugin from work
|
115 |
+
* Fix - order by name, name_numeric and attribute ID wasn't working
|
116 |
+
|
117 |
= 1.1.0.1 =
|
118 |
* Fix - js issue that stops plugin from work
|
119 |
|
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.1.0.
|
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.1.0.2
|
7 |
Author: BeRocket
|
8 |
Author URI: http://berocket.com
|
9 |
*/
|