YITH WooCommerce Ajax Product Filter - Version 1.3.0

Version Description

  • Added: Support to WooCommerce 2.1.X
  • Fixed: One filter bug on sidebar
Download this release

Release Info

Developer yithemes
Plugin Icon 128x128 YITH WooCommerce Ajax Product Filter
Version 1.3.0
Comparing to
See all releases

Code changes from version 1.2.1 to 1.3.0

README.txt CHANGED
@@ -4,11 +4,12 @@ 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: 3.8
7
- Stable tag: 1.2.1
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
11
- YITH WooCommerce Ajax Navigation allows you to filter the products in the Shop page without reloading the page.
12
13
14
== Description ==
@@ -65,6 +66,11 @@ In order to display the widget you need to assign it to the sidebar in the Shop
65
66
== Changelog ==
67
68
= 1.2.1 =
69
70
* Fixed: Width of select dropdown too large
4
Tags: woocommerce, widget, ajax, ajax filtered nav, ajax navigation, ajax filtered navigation
5
Requires at least: 3.5.1
6
Tested up to: 3.8
7
+ Stable tag: 1.3.0
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
11
+ YITH WooCommerce Ajax Navigation allows you to filter the products in the Shop page without reloading the page.
12
+ WooCommerce Compatible up to 2.1.x
13
14
15
== Description ==
66
67
== Changelog ==
68
69
+ = 1.3.0 =
70
+
71
+ * Added: Support to WooCommerce 2.1.X
72
+ * Fixed: One filter bug on sidebar
73
+
74
= 1.2.1 =
75
76
* Fixed: Width of select dropdown too large
assets/css/frontend.css CHANGED
@@ -146,4 +146,10 @@
146
border: none;
147
}
148
149
146
border: none;
147
}
148
149
+ /* WooCommerce 2.1.X Fix */
150
+ .woocommerce .widget_layered_nav ul.yith-wcan-select li.chosen a:before,
151
+ .woocommerce-page .widget_layered_nav ul.yith-wcan-select li.chosen a:before {
152
+ content: "";
153
+ }
154
+
155
assets/js/yith-wcan-admin.js CHANGED
@@ -3,7 +3,7 @@
3
*
4
* @author Your Inspiration Themes
5
* @package YITH WooCommerce Ajax Navigation
6
- * @version 1.2.1
7
*/
8
jQuery(function($){
9
3
*
4
* @author Your Inspiration Themes
5
* @package YITH WooCommerce Ajax Navigation
6
+ * @version 1.3.0
7
*/
8
jQuery(function($){
9
assets/js/yith-wcan-frontend.js CHANGED
@@ -3,7 +3,7 @@
3
*
4
* @author Your Inspiration Themes
5
* @package YITH WooCommerce Ajax Navigation
6
- * @version 1.2.1
7
*/
8
jQuery(function($){
9
/**
3
*
4
* @author Your Inspiration Themes
5
* @package YITH WooCommerce Ajax Navigation
6
+ * @version 1.3.0
7
*/
8
jQuery(function($){
9
/**
class.yith-wcan-admin.php CHANGED
@@ -4,7 +4,7 @@
4
*
5
* @author Your Inspiration Themes
6
* @package YITH WooCommerce Ajax Navigation
7
- * @version 1.2.1
8
*/
9
10
if ( !defined( 'YITH_WCAN' ) ) { exit; } // Exit if accessed directly
4
*
5
* @author Your Inspiration Themes
6
* @package YITH WooCommerce Ajax Navigation
7
+ * @version 1.3.0
8
*/
9
10
if ( !defined( 'YITH_WCAN' ) ) { exit; } // Exit if accessed directly
class.yith-wcan-frontend.php CHANGED
@@ -4,7 +4,7 @@
4
*
5
* @author Your Inspiration Themes
6
* @package YITH WooCommerce Ajax Navigation
7
- * @version 1.2.1
8
*/
9
10
if ( !defined( 'YITH_WCAN' ) ) { exit; } // Exit if accessed directly
4
*
5
* @author Your Inspiration Themes
6
* @package YITH WooCommerce Ajax Navigation
7
+ * @version 1.3.0
8
*/
9
10
if ( !defined( 'YITH_WCAN' ) ) { exit; } // Exit if accessed directly
class.yith-wcan-helper.php CHANGED
@@ -4,7 +4,7 @@
4
*
5
* @author Your Inspiration Themes
6
* @package YITH WooCommerce Ajax Navigation
7
- * @version 1.2.1
8
*/
9
10
if ( !defined( 'YITH_WCAN' ) ) { exit; } // Exit if accessed directly
4
*
5
* @author Your Inspiration Themes
6
* @package YITH WooCommerce Ajax Navigation
7
+ * @version 1.3.0
8
*/
9
10
if ( !defined( 'YITH_WCAN' ) ) { exit; } // Exit if accessed directly
class.yith-wcan.php CHANGED
@@ -4,7 +4,7 @@
4
*
5
* @author Your Inspiration Themes
6
* @package YITH WooCommerce Ajax Navigation
7
- * @version 1.2.1
8
*/
9
10
if ( !defined( 'YITH_WCAN' ) ) { exit; } // Exit if accessed directly
@@ -22,7 +22,7 @@ if( !class_exists( 'YITH_WCAN' ) ) {
22
* @var string
23
* @since 1.0.0
24
*/
25
- public $version = '1.2.1';
26
27
/**
28
* Plugin object
4
*
5
* @author Your Inspiration Themes
6
* @package YITH WooCommerce Ajax Navigation
7
+ * @version 1.3.0
8
*/
9
10
if ( !defined( 'YITH_WCAN' ) ) { exit; } // Exit if accessed directly
22
* @var string
23
* @since 1.0.0
24
*/
25
+ public $version = '1.3.0';
26
27
/**
28
* Plugin object
functions.yith-wcan.php CHANGED
@@ -4,7 +4,7 @@
4
*
5
* @author Your Inspiration Themes
6
* @package YITH WooCommerce Ajax Navigation
7
- * @version 1.2.1
8
*/
9
10
if ( !defined( 'YITH_WCAN' ) ) { exit; } // Exit if accessed directly
4
*
5
* @author Your Inspiration Themes
6
* @package YITH WooCommerce Ajax Navigation
7
+ * @version 1.3.0
8
*/
9
10
if ( !defined( 'YITH_WCAN' ) ) { exit; } // Exit if accessed directly
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.2.1
7
* Author: Your Inspiration Themes
8
* Author URI: http://yithemes.com/
9
* Text Domain: yit
@@ -11,7 +11,7 @@
11
*
12
* @author Your Inspiration Themes
13
* @package YITH WooCommerce Ajax Navigation
14
- * @version 1.2.1
15
*/
16
/* Copyright 2013 Your Inspiration Themes (email : plugins@yithemes.com)
17
@@ -46,7 +46,7 @@ function yith_wcan_constructor() {
46
define( 'YITH_WCAN', true );
47
define( 'YITH_WCAN_URL', plugin_dir_url( __FILE__ ) );
48
define( 'YITH_WCAN_DIR', plugin_dir_path( __FILE__ ) );
49
- define( 'YITH_WCAN_VERSION', '1.2.1' );
50
51
// Load required classes and functions
52
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.3.0
7
* Author: Your Inspiration Themes
8
* Author URI: http://yithemes.com/
9
* Text Domain: yit
11
*
12
* @author Your Inspiration Themes
13
* @package YITH WooCommerce Ajax Navigation
14
+ * @version 1.3.0
15
*/
16
/* Copyright 2013 Your Inspiration Themes (email : plugins@yithemes.com)
17
46
define( 'YITH_WCAN', true );
47
define( 'YITH_WCAN_URL', plugin_dir_url( __FILE__ ) );
48
define( 'YITH_WCAN_DIR', plugin_dir_path( __FILE__ ) );
49
+ define( 'YITH_WCAN_VERSION', '1.3.0' );
50
51
// Load required classes and functions
52
require_once('functions.yith-wcan.php');
languages/default.po CHANGED
@@ -1,9 +1,9 @@
1
msgid ""
2
msgstr ""
3
- "Project-Id-Version: YITH WooCommerce Ajax Navigation v1.2.1\n"
4
"Report-Msgid-Bugs-To: \n"
5
"POT-Creation-Date: 2014-01-10 10:28+0100\n"
6
- "PO-Revision-Date: 2014-01-10 10:28+0100\n"
7
"Last-Translator: Your Inspiration Themes <plugins@yithemes.com>\n"
8
"Language-Team: \n"
9
"Language: en_US\n"
1
msgid ""
2
msgstr ""
3
+ "Project-Id-Version: YITH WooCommerce Ajax Navigation v1.3.0\n"
4
"Report-Msgid-Bugs-To: \n"
5
"POT-Creation-Date: 2014-01-10 10:28+0100\n"
6
+ "PO-Revision-Date: 2014-02-12 15:59+0100\n"
7
"Last-Translator: Your Inspiration Themes <plugins@yithemes.com>\n"
8
"Language-Team: \n"
9
"Language: en_US\n"
languages/yit-it_IT.mo CHANGED
Binary file
languages/yit-it_IT.po CHANGED
@@ -1,9 +1,9 @@
1
msgid ""
2
msgstr ""
3
- "Project-Id-Version: YITH WooCommerce Ajax Navigation v1.2.1\n"
4
"Report-Msgid-Bugs-To: \n"
5
"POT-Creation-Date: 2014-01-10 10:28+0100\n"
6
- "PO-Revision-Date: 2014-01-10 10:30+0100\n"
7
"Last-Translator: Your Inspiration Themes <plugins@yithemes.com>\n"
8
"Language-Team: \n"
9
"Language: it_IT\n"
1
msgid ""
2
msgstr ""
3
+ "Project-Id-Version: YITH WooCommerce Ajax Navigation v1.3.0\n"
4
"Report-Msgid-Bugs-To: \n"
5
"POT-Creation-Date: 2014-01-10 10:28+0100\n"
6
+ "PO-Revision-Date: 2014-02-12 15:59+0100\n"
7
"Last-Translator: Your Inspiration Themes <plugins@yithemes.com>\n"
8
"Language-Team: \n"
9
"Language: it_IT\n"
languages/yit.pot CHANGED
@@ -1,9 +1,9 @@
1
msgid ""
2
msgstr ""
3
- "Project-Id-Version: YITH WooCommerce Ajax Navigation v1.2.1\n"
4
"Report-Msgid-Bugs-To: \n"
5
"POT-Creation-Date: 2014-01-10 10:28+0100\n"
6
- "PO-Revision-Date: 2014-01-10 10:28+0100\n"
7
"Last-Translator: Your Inspiration Themes <plugins@yithemes.com>\n"
8
"Language-Team: \n"
9
"Language: en_US\n"
1
msgid ""
2
msgstr ""
3
+ "Project-Id-Version: YITH WooCommerce Ajax Navigation v1.3.0\n"
4
"Report-Msgid-Bugs-To: \n"
5
"POT-Creation-Date: 2014-01-10 10:28+0100\n"
6
+ "PO-Revision-Date: 2014-02-12 15:59+0100\n"
7
"Last-Translator: Your Inspiration Themes <plugins@yithemes.com>\n"
8
"Language-Team: \n"
9
"Language: en_US\n"
widgets/class.yith-wcan-navigation-widget.php CHANGED
@@ -4,7 +4,7 @@
4
*
5
* @author Your Inspiration Themes
6
* @package YITH WooCommerce Ajax Navigation
7
- * @version 1.2.1
8
*/
9
10
if ( !defined( 'YITH_WCAN' ) ) { exit; } // Exit if accessed directly
4
*
5
* @author Your Inspiration Themes
6
* @package YITH WooCommerce Ajax Navigation
7
+ * @version 1.3.0
8
*/
9
10
if ( !defined( 'YITH_WCAN' ) ) { exit; } // Exit if accessed directly
widgets/class.yith-wcan-reset-navigation-widget.php CHANGED
@@ -4,7 +4,7 @@
4
*
5
* @author Your Inspiration Themes
6
* @package YITH WooCommerce Ajax Navigation
7
- * @version 1.2.1
8
*/
9
10
if ( !defined( 'YITH_WCAN' ) ) { exit; } // Exit if accessed directly
@@ -29,7 +29,7 @@ class YITH_WCAN_Reset_Navigation_Widget extends WP_Widget {
29
30
extract( $args );
31
32
- if ( ! is_post_type_archive( 'product' ) && ! is_tax( array_merge( $_attributes_array, array( 'product_cat', 'product_tag' ) ) ) )
33
return;
34
35
// Price
@@ -44,7 +44,7 @@ class YITH_WCAN_Reset_Navigation_Widget extends WP_Widget {
44
45
//clean the url
46
$link = yit_curPageURL();
47
- foreach( $_chosen_attributes as $taxonomy => $data ) {
48
$taxonomy_filter = str_replace( 'pa_', '', $taxonomy );
49
$link = remove_query_arg( 'filter_' . $taxonomy_filter, $link );
50
}
4
*
5
* @author Your Inspiration Themes
6
* @package YITH WooCommerce Ajax Navigation
7
+ * @version 1.3.0
8
*/
9
10
if ( !defined( 'YITH_WCAN' ) ) { exit; } // Exit if accessed directly
29
30
extract( $args );
31
32
+ if ( ! is_post_type_archive( 'product' ) && ! is_tax( array_merge( (array) $_attributes_array, array( 'product_cat', 'product_tag' ) ) ) )
33
return;
34
35
// Price
44
45
//clean the url
46
$link = yit_curPageURL();
47
+ foreach( (array) $_chosen_attributes as $taxonomy => $data ) {
48
$taxonomy_filter = str_replace( 'pa_', '', $taxonomy );
49
$link = remove_query_arg( 'filter_' . $taxonomy_filter, $link );
50
}