Version Description
Released: Mar 1 - 2016 =
Tweak: Plugin Core Framework
Tweak: Term and Filter management
Download this release
Release Info
Developer | yithemes |
Plugin | YITH WooCommerce Ajax Product Filter |
Version | 2.8.0 |
Comparing to | |
See all releases |
Code changes from version 2.7.8 to 2.8.0
- README.txt +6 -1
- includes/functions.yith-wcan.php +23 -1
- init.php +2 -2
README.txt
CHANGED
@@ -4,7 +4,7 @@ Contributors: yithemes
|
|
4 |
Tags: woocommerce ajax product filter download, woocommerce, widget, ajax, ajax filtered nav, ajax navigation, ajax filtered navigation, woocommerce layered navigation, woocommerce layered nav, product filter, product filters, ajax product filter, woocommerce ajax product filter, woocommerce filters, sidebar filter, sidebar ajax filter, ajax price filter, price filter, product sorting, woocommerce filter, taxonomy filter, attribute filter, attributes filter, woocommerce product sort, ajax sort, woocommerce ajax product filter, advanced product filters, ajax product filters, filters, woocommerce ajax product filters, woocommerce product filters, woocommerce product filters, category filter, attribute filters, woocommerce products filter, woocommerce price filter, yit, yith, yithemes
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.4.2
|
7 |
-
Stable tag: 2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -159,6 +159,11 @@ If you want to see a demonstration version of the premium plugin, you can see it
|
|
159 |
|
160 |
== Changelog ==
|
161 |
|
|
|
|
|
|
|
|
|
|
|
162 |
= 2.7.8 - Released: Feb 25 - 2016 =
|
163 |
|
164 |
* Fixed: Issue with filter in category and taxonomy pages
|
4 |
Tags: woocommerce ajax product filter download, woocommerce, widget, ajax, ajax filtered nav, ajax navigation, ajax filtered navigation, woocommerce layered navigation, woocommerce layered nav, product filter, product filters, ajax product filter, woocommerce ajax product filter, woocommerce filters, sidebar filter, sidebar ajax filter, ajax price filter, price filter, product sorting, woocommerce filter, taxonomy filter, attribute filter, attributes filter, woocommerce product sort, ajax sort, woocommerce ajax product filter, advanced product filters, ajax product filters, filters, woocommerce ajax product filters, woocommerce product filters, woocommerce product filters, category filter, attribute filters, woocommerce products filter, woocommerce price filter, yit, yith, yithemes
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.4.2
|
7 |
+
Stable tag: 2.8.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
159 |
|
160 |
== Changelog ==
|
161 |
|
162 |
+
= 2.8.0 - Released: Mar 1 - 2016 =
|
163 |
+
|
164 |
+
* Tweak: Plugin Core Framework
|
165 |
+
* Tweak: Term and Filter management
|
166 |
+
|
167 |
= 2.7.8 - Released: Feb 25 - 2016 =
|
168 |
|
169 |
* Fixed: Issue with filter in category and taxonomy pages
|
includes/functions.yith-wcan.php
CHANGED
@@ -304,7 +304,6 @@ if ( ! function_exists( 'yit_term_is_child' ) ) {
|
|
304 |
* @since 1.3.1
|
305 |
*/
|
306 |
function yit_term_is_child( $term ) {
|
307 |
-
|
308 |
return ( isset( $term->parent ) && $term->parent != 0 ) ? true : false;
|
309 |
}
|
310 |
}
|
@@ -573,4 +572,27 @@ if( ! function_exists( 'yit_get_brands_taxonomy' ) ){
|
|
573 |
function yit_get_brands_taxonomy(){
|
574 |
return defined( 'YITH_WCBR_PREMIUM_INIT' ) && YITH_WCBR_PREMIUM_INIT ? YITH_WCBR::$brands_taxonomy : '';
|
575 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
576 |
}
|
304 |
* @since 1.3.1
|
305 |
*/
|
306 |
function yit_term_is_child( $term ) {
|
|
|
307 |
return ( isset( $term->parent ) && $term->parent != 0 ) ? true : false;
|
308 |
}
|
309 |
}
|
572 |
function yit_get_brands_taxonomy(){
|
573 |
return defined( 'YITH_WCBR_PREMIUM_INIT' ) && YITH_WCBR_PREMIUM_INIT ? YITH_WCBR::$brands_taxonomy : '';
|
574 |
}
|
575 |
+
}
|
576 |
+
|
577 |
+
function yit_test( $parent_term_id ){
|
578 |
+
$childs = get_terms(
|
579 |
+
'product_cat',
|
580 |
+
array(
|
581 |
+
'parent' => $parent_term_id,
|
582 |
+
'hierarchical' => true,
|
583 |
+
'hide_empty' => false
|
584 |
+
)
|
585 |
+
);
|
586 |
+
|
587 |
+
if( ! empty( $childs ) ){
|
588 |
+
$temp = array();
|
589 |
+
foreach( $childs as $child ){
|
590 |
+
$temp[ $child->term_id ] = yit_test( $child->term_id );
|
591 |
+
}
|
592 |
+
return $temp;
|
593 |
+
}
|
594 |
+
|
595 |
+
else{
|
596 |
+
return array();
|
597 |
+
}
|
598 |
}
|
init.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: YITH WooCommerce Ajax Product Filter
|
4 |
* Plugin URI: http://yithemes.com/
|
5 |
* Description: YITH WooCommerce Ajax Product Filter offers the perfect way to filter all the products of your shop.
|
6 |
-
* Version: 2.
|
7 |
* Author: yithemes
|
8 |
* Author URI: http://yithemes.com/
|
9 |
* Text Domain: yith_wc_ajxnav
|
@@ -64,7 +64,7 @@ load_plugin_textdomain( 'yith-woocommerce-ajax-navigation', false, dirname( plug
|
|
64 |
! defined( 'YITH_WCAN' ) && define( 'YITH_WCAN', true );
|
65 |
! defined( 'YITH_WCAN_URL' ) && define( 'YITH_WCAN_URL', plugin_dir_url( __FILE__ ) );
|
66 |
! defined( 'YITH_WCAN_DIR' ) && define( 'YITH_WCAN_DIR', plugin_dir_path( __FILE__ ) );
|
67 |
-
! defined( 'YITH_WCAN_VERSION' ) && define( 'YITH_WCAN_VERSION', '2.
|
68 |
! defined( 'YITH_WCAN_FREE_INIT') && define( 'YITH_WCAN_FREE_INIT', plugin_basename( __FILE__ ) );
|
69 |
! defined( 'YITH_WCAN_FILE' ) && define( 'YITH_WCAN_FILE', __FILE__ );
|
70 |
|
3 |
* Plugin Name: YITH WooCommerce Ajax Product Filter
|
4 |
* Plugin URI: http://yithemes.com/
|
5 |
* Description: YITH WooCommerce Ajax Product Filter offers the perfect way to filter all the products of your shop.
|
6 |
+
* Version: 2.8.0
|
7 |
* Author: yithemes
|
8 |
* Author URI: http://yithemes.com/
|
9 |
* Text Domain: yith_wc_ajxnav
|
64 |
! defined( 'YITH_WCAN' ) && define( 'YITH_WCAN', true );
|
65 |
! defined( 'YITH_WCAN_URL' ) && define( 'YITH_WCAN_URL', plugin_dir_url( __FILE__ ) );
|
66 |
! defined( 'YITH_WCAN_DIR' ) && define( 'YITH_WCAN_DIR', plugin_dir_path( __FILE__ ) );
|
67 |
+
! defined( 'YITH_WCAN_VERSION' ) && define( 'YITH_WCAN_VERSION', '2.8.0' );
|
68 |
! defined( 'YITH_WCAN_FREE_INIT') && define( 'YITH_WCAN_FREE_INIT', plugin_basename( __FILE__ ) );
|
69 |
! defined( 'YITH_WCAN_FILE' ) && define( 'YITH_WCAN_FILE', __FILE__ );
|
70 |
|