Version Description
- Fixed: Wrong attribute show with WooCommerce 2.2
Download this release
Release Info
Developer | yithemes |
Plugin | YITH WooCommerce Ajax Product Filter |
Version | 1.4.1 |
Comparing to | |
See all releases |
Code changes from version 1.4.0 to 1.4.1
- README.txt +10 -6
- init.php +2 -2
- widgets/class.yith-wcan-navigation-widget.php +8 -8
README.txt
CHANGED
@@ -3,8 +3,8 @@
|
|
3 |
Contributors: yithemes
|
4 |
Tags: woocommerce, widget, ajax, ajax filtered nav, ajax navigation, ajax filtered navigation
|
5 |
Requires at least: 3.5.1
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.4.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -18,9 +18,9 @@ YITH WooCommerce Ajax Navigation allows you to filter the products in the Shop p
|
|
18 |
With Color display type you're able to assign a color (selected from a Color Picker) to each Product Attributes. With Label Color display you're able to assign a label (3 chars max) to your Product Attributes. With List display your products attributes in a list. With Dropdown you're able to display your products attributes like a select.
|
19 |
|
20 |
Working demos are available here:
|
21 |
-
**[LIVE DEMO 1](http://
|
22 |
|
23 |
-
Full documentation is available [here](http://yithemes.com/docs-plugins/
|
24 |
|
25 |
|
26 |
= Installation =
|
@@ -33,7 +33,7 @@ The widget works with Product Attributes. This means you need to create the Attr
|
|
33 |
|
34 |
= Developer =
|
35 |
|
36 |
-
Are you a developer? Want to customize the templates or the style of the plugin? Read on the [documentation](http://yithemes.com/docs-plugins/
|
37 |
|
38 |
= Support =
|
39 |
|
@@ -66,6 +66,10 @@ In order to display the widget you need to assign it to the sidebar in the Shop
|
|
66 |
|
67 |
== Changelog ==
|
68 |
|
|
|
|
|
|
|
|
|
69 |
= 1.4.0 =
|
70 |
|
71 |
* Added: Support to WC 2.2
|
@@ -133,7 +137,7 @@ If you have created your own language pack, or have an update for an existing on
|
|
133 |
|
134 |
== Documentation ==
|
135 |
|
136 |
-
Full documentation is available [here](http://yithemes.com/docs-plugins/
|
137 |
|
138 |
== Upgrade notice ==
|
139 |
|
3 |
Contributors: yithemes
|
4 |
Tags: woocommerce, widget, ajax, ajax filtered nav, ajax navigation, ajax filtered navigation
|
5 |
Requires at least: 3.5.1
|
6 |
+
Tested up to: 4.1
|
7 |
+
Stable tag: 1.4.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
18 |
With Color display type you're able to assign a color (selected from a Color Picker) to each Product Attributes. With Label Color display you're able to assign a label (3 chars max) to your Product Attributes. With List display your products attributes in a list. With Dropdown you're able to display your products attributes like a select.
|
19 |
|
20 |
Working demos are available here:
|
21 |
+
**[LIVE DEMO 1](http://preview.yithemes.com/room09/shop/)** - **[LIVE DEMO 2](http://preview.yithemes.com/bazar/shop/)**
|
22 |
|
23 |
+
Full documentation is available [here](http://yithemes.com/docs-plugins/yith_woocommerce_ajax_navigation/).
|
24 |
|
25 |
|
26 |
= Installation =
|
33 |
|
34 |
= Developer =
|
35 |
|
36 |
+
Are you a developer? Want to customize the templates or the style of the plugin? Read on the [documentation](http://yithemes.com/docs-plugins/yith_woocommerce_ajax_navigation/) and discover how to do that.
|
37 |
|
38 |
= Support =
|
39 |
|
66 |
|
67 |
== Changelog ==
|
68 |
|
69 |
+
= 1.4.1 =
|
70 |
+
|
71 |
+
* Fixed: Wrong attribute show with WooCommerce 2.2
|
72 |
+
|
73 |
= 1.4.0 =
|
74 |
|
75 |
* Added: Support to WC 2.2
|
137 |
|
138 |
== Documentation ==
|
139 |
|
140 |
+
Full documentation is available [here](http://yithemes.com/docs-plugins/yith_woocommerce_ajax_navigation/).
|
141 |
|
142 |
== Upgrade notice ==
|
143 |
|
init.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: YITH WooCommerce Ajax Navigation
|
4 |
* Plugin URI: http://yithemes.com/
|
5 |
* Description: YITH WooCommerce Ajax Navigation allows user to filter products in Shop page without reloading the page.
|
6 |
-
* Version: 1.4.
|
7 |
* Author: Your Inspiration Themes
|
8 |
* Author URI: http://yithemes.com/
|
9 |
* Text Domain: yit
|
@@ -50,7 +50,7 @@ function yith_wcan_constructor() {
|
|
50 |
define( 'YITH_WCAN', true );
|
51 |
define( 'YITH_WCAN_URL', plugin_dir_url( __FILE__ ) );
|
52 |
define( 'YITH_WCAN_DIR', plugin_dir_path( __FILE__ ) );
|
53 |
-
define( 'YITH_WCAN_VERSION', '1.
|
54 |
|
55 |
// Load required classes and functions
|
56 |
require_once( 'functions.yith-wcan.php' );
|
3 |
* Plugin Name: YITH WooCommerce Ajax Navigation
|
4 |
* Plugin URI: http://yithemes.com/
|
5 |
* Description: YITH WooCommerce Ajax Navigation allows user to filter products in Shop page without reloading the page.
|
6 |
+
* Version: 1.4.1
|
7 |
* Author: Your Inspiration Themes
|
8 |
* Author URI: http://yithemes.com/
|
9 |
* Text Domain: yit
|
50 |
define( 'YITH_WCAN', true );
|
51 |
define( 'YITH_WCAN_URL', plugin_dir_url( __FILE__ ) );
|
52 |
define( 'YITH_WCAN_DIR', plugin_dir_path( __FILE__ ) );
|
53 |
+
define( 'YITH_WCAN_VERSION', '1.4.1' );
|
54 |
|
55 |
// Load required classes and functions
|
56 |
require_once( 'functions.yith-wcan.php' );
|
widgets/class.yith-wcan-navigation-widget.php
CHANGED
@@ -82,12 +82,12 @@ class YITH_WCAN_Navigation_Widget extends WP_Widget {
|
|
82 |
// Get count based on current view - uses transients
|
83 |
$transient_name = 'wc_ln_count_' . md5( sanitize_key( $taxonomy ) . sanitize_key( $term->term_id ) );
|
84 |
|
85 |
-
if ( false === ( $_products_in_term = get_transient( $transient_name ) ) ) {
|
86 |
|
87 |
$_products_in_term = get_objects_in_term( $term->term_id, $taxonomy );
|
88 |
|
89 |
set_transient( $transient_name, $_products_in_term );
|
90 |
-
}
|
91 |
|
92 |
$option_is_set = ( isset( $_chosen_attributes[$taxonomy] ) && in_array( $term->term_id, $_chosen_attributes[$taxonomy]['terms'] ) );
|
93 |
|
@@ -254,12 +254,12 @@ class YITH_WCAN_Navigation_Widget extends WP_Widget {
|
|
254 |
// Get count based on current view - uses transients
|
255 |
$transient_name = 'wc_ln_count_' . md5( sanitize_key( $taxonomy ) . sanitize_key( $term->term_id ) );
|
256 |
|
257 |
-
if ( false === ( $_products_in_term = get_transient( $transient_name ) ) ) {
|
258 |
|
259 |
$_products_in_term = get_objects_in_term( $term->term_id, $taxonomy );
|
260 |
|
261 |
set_transient( $transient_name, $_products_in_term );
|
262 |
-
}
|
263 |
|
264 |
$option_is_set = ( isset( $_chosen_attributes[$taxonomy] ) && in_array( $term->term_id, $_chosen_attributes[$taxonomy]['terms'] ) );
|
265 |
|
@@ -417,12 +417,12 @@ class YITH_WCAN_Navigation_Widget extends WP_Widget {
|
|
417 |
// Get count based on current view - uses transients
|
418 |
$transient_name = 'wc_ln_count_' . md5( sanitize_key( $taxonomy ) . sanitize_key( $term->term_id ) );
|
419 |
|
420 |
-
if ( false === ( $_products_in_term = get_transient( $transient_name ) ) ) {
|
421 |
|
422 |
$_products_in_term = get_objects_in_term( $term->term_id, $taxonomy );
|
423 |
|
424 |
set_transient( $transient_name, $_products_in_term );
|
425 |
-
}
|
426 |
|
427 |
$option_is_set = ( isset( $_chosen_attributes[$taxonomy] ) && in_array( $term->term_id, $_chosen_attributes[$taxonomy]['terms'] ) );
|
428 |
|
@@ -577,12 +577,12 @@ class YITH_WCAN_Navigation_Widget extends WP_Widget {
|
|
577 |
// Get count based on current view - uses transients
|
578 |
$transient_name = 'wc_ln_count_' . md5( sanitize_key( $taxonomy ) . sanitize_key( $term->term_id ) );
|
579 |
|
580 |
-
if ( false === ( $_products_in_term = get_transient( $transient_name ) ) ) {
|
581 |
|
582 |
$_products_in_term = get_objects_in_term( $term->term_id, $taxonomy );
|
583 |
|
584 |
set_transient( $transient_name, $_products_in_term );
|
585 |
-
}
|
586 |
|
587 |
$option_is_set = ( isset( $_chosen_attributes[$taxonomy] ) && in_array( $term->term_id, $_chosen_attributes[$taxonomy]['terms'] ) );
|
588 |
|
82 |
// Get count based on current view - uses transients
|
83 |
$transient_name = 'wc_ln_count_' . md5( sanitize_key( $taxonomy ) . sanitize_key( $term->term_id ) );
|
84 |
|
85 |
+
//if ( false === ( $_products_in_term = get_transient( $transient_name ) ) ) {
|
86 |
|
87 |
$_products_in_term = get_objects_in_term( $term->term_id, $taxonomy );
|
88 |
|
89 |
set_transient( $transient_name, $_products_in_term );
|
90 |
+
//}
|
91 |
|
92 |
$option_is_set = ( isset( $_chosen_attributes[$taxonomy] ) && in_array( $term->term_id, $_chosen_attributes[$taxonomy]['terms'] ) );
|
93 |
|
254 |
// Get count based on current view - uses transients
|
255 |
$transient_name = 'wc_ln_count_' . md5( sanitize_key( $taxonomy ) . sanitize_key( $term->term_id ) );
|
256 |
|
257 |
+
//if ( false === ( $_products_in_term = get_transient( $transient_name ) ) ) {
|
258 |
|
259 |
$_products_in_term = get_objects_in_term( $term->term_id, $taxonomy );
|
260 |
|
261 |
set_transient( $transient_name, $_products_in_term );
|
262 |
+
//}
|
263 |
|
264 |
$option_is_set = ( isset( $_chosen_attributes[$taxonomy] ) && in_array( $term->term_id, $_chosen_attributes[$taxonomy]['terms'] ) );
|
265 |
|
417 |
// Get count based on current view - uses transients
|
418 |
$transient_name = 'wc_ln_count_' . md5( sanitize_key( $taxonomy ) . sanitize_key( $term->term_id ) );
|
419 |
|
420 |
+
//if ( false === ( $_products_in_term = get_transient( $transient_name ) ) ) {
|
421 |
|
422 |
$_products_in_term = get_objects_in_term( $term->term_id, $taxonomy );
|
423 |
|
424 |
set_transient( $transient_name, $_products_in_term );
|
425 |
+
//}
|
426 |
|
427 |
$option_is_set = ( isset( $_chosen_attributes[$taxonomy] ) && in_array( $term->term_id, $_chosen_attributes[$taxonomy]['terms'] ) );
|
428 |
|
577 |
// Get count based on current view - uses transients
|
578 |
$transient_name = 'wc_ln_count_' . md5( sanitize_key( $taxonomy ) . sanitize_key( $term->term_id ) );
|
579 |
|
580 |
+
//if ( false === ( $_products_in_term = get_transient( $transient_name ) ) ) {
|
581 |
|
582 |
$_products_in_term = get_objects_in_term( $term->term_id, $taxonomy );
|
583 |
|
584 |
set_transient( $transient_name, $_products_in_term );
|
585 |
+
//}
|
586 |
|
587 |
$option_is_set = ( isset( $_chosen_attributes[$taxonomy] ) && in_array( $term->term_id, $_chosen_attributes[$taxonomy]['terms'] ) );
|
588 |
|