YITH WooCommerce Ajax Product Filter - Version 2.7.8

Version Description

  • Released: Feb 25 - 2016 =

  • Fixed: Issue with filter in category and taxonomy pages

Download this release

Release Info

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

Code changes from version 2.7.7 to 2.7.8

Files changed (3) hide show
  1. README.txt +39 -36
  2. includes/functions.yith-wcan.php +27 -4
  3. init.php +2 -2
README.txt CHANGED
@@ -3,8 +3,8 @@
3
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.1
7
- Stable tag: 2.7.7
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
@@ -159,7 +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.7 =
163
164
* Added: Trigger window scroll event after ajax call
165
* Fixed: The page scroll down after filter has been applied in mobile
@@ -168,50 +172,50 @@ If you want to see a demonstration version of the premium plugin, you can see it
168
* Fixed: YITH WooCommerce Product Slider Carousel doesn't work after a filter was applied
169
* Fixed: Widget doesn't work with multiple hierarchical terms
170
171
- = 2.7.6 =
172
173
* Added: Suppoort to quantity input in loop
174
* Added: yith-wcan-free body class
175
* Fixed: Filter button doesn't appear in WooCommerce Price Filter Slider
176
177
- = 2.7.5 =
178
179
* Fixed: Error on plugin activation
180
181
- = 2.7.4 =
182
183
* Added: New event yith-wcan-wrapped was triggered after container wrap
184
* Added: Support to WooCommerce 2.5
185
* Fixed: Stop activation free version if premium is enabled
186
187
- = 2.7.3 =
188
189
* Updated: Plugin core framework
190
191
- = 2.7.2 =
192
193
* Added: Support to WooCommerce 2.5-RC1
194
* Fixed: Reset Filter in category page
195
* Fixed: Filter doesn't work correctly in sub-categories
196
197
- = 2.7.1 =
198
199
* Fixed: The plugin shows empty filters in product category page
200
* Fixed: Reset filter doesn't works in product category page
201
* Fixed: WooCommerce price slider doesn't set to default value after filter reset
202
203
- = 2.7.0 =
204
205
* Fixed: Click on row to filter in dropdown style
206
* Removed: var_dump() in product filter widget
207
208
- = 2.6.0 =
209
210
* Added: yith_wcan_show_widget hook to manage the widgets display condition
211
* Added: yith_wcan_is_search hook to disable the widgets in search page
212
* Fixed: Disable widgets in search page
213
214
- = 2.5.0 =
215
216
* Added: yith_wcan_untrailingslashit hook for disable untrailingslashit function in filter link
217
* Tweak: Performance improved with new plugin core 2.0
@@ -220,44 +224,44 @@ If you want to see a demonstration version of the premium plugin, you can see it
220
* Fixed: Filter widget don't show in product attribute page
221
* Fixed: Issue with WPML and Visual Composer plugins in admin
222
223
- = 2.4.0 =
224
225
* Tweak: New wordpress translation text domain added
226
* Added: Language files called yith-woocommerce-ajax-navigation
227
* Removed: All language files called yith_wc_ajxnav
228
229
- = 2.3.1 =
230
231
* Added: Support to YITH Infinite Scrolling plugin
232
* Fixed: No pagination container issue after filter applied
233
* Fixed: js error yit_wcan not defined
234
* Fixed: issue with blank label
235
236
- = 2.3.0 =
237
238
* Added: Custom Style Section
239
* Added: New frontend options for script configuration
240
* Updated: Plugin Core Framework
241
* Updated: Languages file
242
243
- = 2.2.0 =
244
245
* Added: Support to WordPress 4.3
246
* Updated: Language files
247
* Fixed: Color lost after change widget style with WordPress 4.3
248
* Fixed: Warning when switch from color to label style
249
250
- = 2.1.2 =
251
252
* Added: Support to WooCommerce 2.4
253
* Updated: Plugin Framework
254
* Fixed: Tag list and child term support
255
256
- = 2.1.1 =
257
258
* Tweak: Support to PAAMAYIM NEKUDOTAYIM in PHP Version < 5.3
259
260
- = 2.1.0 =
261
262
* Added: Frontend classes option panel
263
* Added: yith_wcan_ajax_frontend_classes filter
@@ -272,26 +276,25 @@ If you want to see a demonstration version of the premium plugin, you can see it
272
* Fixed: Prevent double instance in singleton class
273
* Fixed: The widget doesn't work with WPML with Label and Color style
274
275
- = 2.0.4 =
276
277
* Added: Filter 'yith_wcan_product_taxonomy_type' to widget product tax type
278
* Tweak: YITH WooCommerce Brands Add-on support in taxonomy page
279
280
-
281
- = 2.0.3 =
282
283
* Added: Support to Sortable attribute
284
* Fixed: Color lost after change widget style
285
286
- = 2.0.2 =
287
288
* Fixed: Empty filters appear after update to 2.0.0
289
290
- = 2.0.1 =
291
292
* Fixed: Unable to active plugin
293
294
- = 2.0.0 =
295
296
* Tweak: Plugin core framework
297
* Updated: Languages file
@@ -300,59 +303,59 @@ If you want to see a demonstration version of the premium plugin, you can see it
300
* Fixed: Filter doesn't work if shop page is on front
301
* Removed: old default.po catalog language file
302
303
- = 1.4.1 =
304
305
* Fixed: Wrong attribute show with WooCommerce 2.2
306
307
- = 1.4.0 =
308
309
* Added: Support to WC 2.2
310
* Updated: Plugin Core Framework
311
* Fixed: Widget error on empty title
312
* Fixed: Ajax load on widget type switching
313
314
- = 1.3.2 =
315
316
* Fixed: Wrong enqueue of the main css file
317
* Added: Filter yith_wcan_exclude_terms
318
319
- = 1.3.1 =
320
321
* Added: Attribute order (All, Hieralchical or Only Parent style)
322
* Fixed: Dropdown Style on Firefox
323
* Fixed: Blank box on attribute without label (Label Style)
324
* Fixed: Blank box on attribute without color (Color Stle)
325
326
- = 1.3.0 =
327
328
* Added: Support to WooCommerce 2.1.X
329
* Fixed: One filter bug on sidebar
330
331
- = 1.2.1 =
332
333
* Fixed: Width of select dropdown too large
334
335
- = 1.2.0 =
336
337
* Added: Dropdown style
338
* Added: Support to Wordpress 3.8
339
* Fixed: Error with non-latin languages
340
* Fixed: Improved WPML compatibility
341
342
- = 1.1.2 =
343
344
* Added: Title to the color filters
345
* Removed: Limit of 3 characters in the label text input
346
347
- = 1.1.1 =
348
349
* Minor bugs fixes
350
351
- = 1.1.0 =
352
353
* Added new widget YITH WooCommerce Ajax Reset Navigation
354
355
- = 1.0.0 =
356
357
* Initial release
358
3
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.7.8
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
159
160
== Changelog ==
161
162
+ = 2.7.8 - Released: Feb 25 - 2016 =
163
+
164
+ * Fixed: Issue with filter in category and taxonomy pages
165
+
166
+ = 2.7.7 - Released: Feb 19 - 2016 =
167
168
* Added: Trigger window scroll event after ajax call
169
* Fixed: The page scroll down after filter has been applied in mobile
172
* Fixed: YITH WooCommerce Product Slider Carousel doesn't work after a filter was applied
173
* Fixed: Widget doesn't work with multiple hierarchical terms
174
175
+ = 2.7.6 - Released: Feb 05 - 2016 =
176
177
* Added: Suppoort to quantity input in loop
178
* Added: yith-wcan-free body class
179
* Fixed: Filter button doesn't appear in WooCommerce Price Filter Slider
180
181
+ = 2.7.5 - Released: Jan 27 - 2016 =
182
183
* Fixed: Error on plugin activation
184
185
+ = 2.7.4 - Released: Jan 27 - 2016 =
186
187
* Added: New event yith-wcan-wrapped was triggered after container wrap
188
* Added: Support to WooCommerce 2.5
189
* Fixed: Stop activation free version if premium is enabled
190
191
+ = 2.7.3 - Released: Jan 12 - 2016 =
192
193
* Updated: Plugin core framework
194
195
+ = 2.7.2 - Released: Jan 07 - 2015 =
196
197
* Added: Support to WooCommerce 2.5-RC1
198
* Fixed: Reset Filter in category page
199
* Fixed: Filter doesn't work correctly in sub-categories
200
201
+ = 2.7.1 - Released: Dec 23 - 2015 =
202
203
* Fixed: The plugin shows empty filters in product category page
204
* Fixed: Reset filter doesn't works in product category page
205
* Fixed: WooCommerce price slider doesn't set to default value after filter reset
206
207
+ = 2.7.0 - Released: Dec 10 - 2015 =
208
209
* Fixed: Click on row to filter in dropdown style
210
* Removed: var_dump() in product filter widget
211
212
+ = 2.6.0 - Released: Nov 02 - 2015 =
213
214
* Added: yith_wcan_show_widget hook to manage the widgets display condition
215
* Added: yith_wcan_is_search hook to disable the widgets in search page
216
* Fixed: Disable widgets in search page
217
218
+ = 2.5.0 - Released: Oct 21 - 2015 =
219
220
* Added: yith_wcan_untrailingslashit hook for disable untrailingslashit function in filter link
221
* Tweak: Performance improved with new plugin core 2.0
224
* Fixed: Filter widget don't show in product attribute page
225
* Fixed: Issue with WPML and Visual Composer plugins in admin
226
227
+ = 2.4.0 - Released: Sept, 25 - 2015 =
228
229
* Tweak: New wordpress translation text domain added
230
* Added: Language files called yith-woocommerce-ajax-navigation
231
* Removed: All language files called yith_wc_ajxnav
232
233
+ = 2.3.1 - Released: Sept, 17 - 2015 =
234
235
* Added: Support to YITH Infinite Scrolling plugin
236
* Fixed: No pagination container issue after filter applied
237
* Fixed: js error yit_wcan not defined
238
* Fixed: issue with blank label
239
240
+ = 2.3.0 - Released: Sept, 11 - 2015 =
241
242
* Added: Custom Style Section
243
* Added: New frontend options for script configuration
244
* Updated: Plugin Core Framework
245
* Updated: Languages file
246
247
+ = 2.2.0 - Released: Aug, 25 - 2015 =
248
249
* Added: Support to WordPress 4.3
250
* Updated: Language files
251
* Fixed: Color lost after change widget style with WordPress 4.3
252
* Fixed: Warning when switch from color to label style
253
254
+ = 2.1.2 - Released: Aug, 11 - 2015 =
255
256
* Added: Support to WooCommerce 2.4
257
* Updated: Plugin Framework
258
* Fixed: Tag list and child term support
259
260
+ = 2.1.1 - Released: July, 30 - 2015 =
261
262
* Tweak: Support to PAAMAYIM NEKUDOTAYIM in PHP Version < 5.3
263
264
+ = 2.1.0 - Released: July, 29 - 2015 =
265
266
* Added: Frontend classes option panel
267
* Added: yith_wcan_ajax_frontend_classes filter
276
* Fixed: Prevent double instance in singleton class
277
* Fixed: The widget doesn't work with WPML with Label and Color style
278
279
+ = 2.0.4 - Released: July, 13 - 2015 =
280
281
* Added: Filter 'yith_wcan_product_taxonomy_type' to widget product tax type
282
* Tweak: YITH WooCommerce Brands Add-on support in taxonomy page
283
284
+ = 2.0.3 - Released: July, 03 - 2015 =
285
286
* Added: Support to Sortable attribute
287
* Fixed: Color lost after change widget style
288
289
+ = 2.0.2 - Released: Jun, 25 - 2015 =
290
291
* Fixed: Empty filters appear after update to 2.0.0
292
293
+ = 2.0.1 - Released: Jun, 24 - 2015 =
294
295
* Fixed: Unable to active plugin
296
297
+ = 2.0.0 - Released: Jun, 24 - 2015 =
298
299
* Tweak: Plugin core framework
300
* Updated: Languages file
303
* Fixed: Filter doesn't work if shop page is on front
304
* Removed: old default.po catalog language file
305
306
+ = 1.4.1 - Released: Oct, 08 - 2014 =
307
308
* Fixed: Wrong attribute show with WooCommerce 2.2
309
310
+ = 1.4.0 - Released: Set, 16 - 2014 =
311
312
* Added: Support to WC 2.2
313
* Updated: Plugin Core Framework
314
* Fixed: Widget error on empty title
315
* Fixed: Ajax load on widget type switching
316
317
+ = 1.3.2 - Released: Jun, 05 - 2014 =
318
319
* Fixed: Wrong enqueue of the main css file
320
* Added: Filter yith_wcan_exclude_terms
321
322
+ = 1.3.1 - Released: Mar, 03 - 2014 =
323
324
* Added: Attribute order (All, Hieralchical or Only Parent style)
325
* Fixed: Dropdown Style on Firefox
326
* Fixed: Blank box on attribute without label (Label Style)
327
* Fixed: Blank box on attribute without color (Color Stle)
328
329
+ = 1.3.0 - Released: Feb, 12 - 2014 =
330
331
* Added: Support to WooCommerce 2.1.X
332
* Fixed: One filter bug on sidebar
333
334
+ = 1.2.1 - Released: Jan, 29 - 2014 =
335
336
* Fixed: Width of select dropdown too large
337
338
+ = 1.2.0 - Released: Jan, 10 - 2014 =
339
340
* Added: Dropdown style
341
* Added: Support to Wordpress 3.8
342
* Fixed: Error with non-latin languages
343
* Fixed: Improved WPML compatibility
344
345
+ = 1.1.2 - Released: Oct, 14 - 2013 =
346
347
* Added: Title to the color filters
348
* Removed: Limit of 3 characters in the label text input
349
350
+ = 1.1.1 - Released: Jul, 31 - 2014 =
351
352
* Minor bugs fixes
353
354
+ = 1.1.0 - Released: Jul, 19 - 2013 =
355
356
* Added new widget YITH WooCommerce Ajax Reset Navigation
357
358
+ = 1.0.0 - Released: Jun, 24 - 2013 =
359
360
* Initial release
361
includes/functions.yith-wcan.php CHANGED
@@ -468,13 +468,13 @@ if ( ! function_exists( 'yit_get_woocommerce_layered_nav_link' ) ) {
468
/**
469
* Get current layered link
470
*
471
- * @return string The new link
472
*
473
* @since 1.4
474
* @author Andrea Grillo <andrea.grillo@yithemes.com>
475
*/
476
function yit_get_woocommerce_layered_nav_link() {
477
-
478
if ( defined( 'SHOP_IS_ON_FRONT' ) || ( is_shop() && ! is_product_category() && ! is_product_taxonomy() ) ) {
479
$return = get_post_type_archive_link( 'product' );
480
return apply_filters( 'yith_wcan_untrailingslashit', true ) ? untrailingslashit( $return ) : $return;
@@ -486,11 +486,21 @@ if ( ! function_exists( 'yit_get_woocommerce_layered_nav_link' ) ) {
486
}
487
488
else {
489
- $return = get_term_link( get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
490
return apply_filters( 'yith_wcan_untrailingslashit', true ) ? untrailingslashit( $return ) : $return;
491
}
492
493
- return false;
494
}
495
}
496
@@ -549,5 +559,18 @@ if( ! function_exists( 'yit_terms_sort' ) ){
549
}
550
return $result;
551
}
552
553
}
468
/**
469
* Get current layered link
470
*
471
+ * @return string|bool The new link
472
*
473
* @since 1.4
474
* @author Andrea Grillo <andrea.grillo@yithemes.com>
475
*/
476
function yit_get_woocommerce_layered_nav_link() {
477
+ $return = false;
478
if ( defined( 'SHOP_IS_ON_FRONT' ) || ( is_shop() && ! is_product_category() && ! is_product_taxonomy() ) ) {
479
$return = get_post_type_archive_link( 'product' );
480
return apply_filters( 'yith_wcan_untrailingslashit', true ) ? untrailingslashit( $return ) : $return;
486
}
487
488
else {
489
+ $taxonomy = get_query_var( 'taxonomy' );
490
+ $brands_taxonomy = yit_get_brands_taxonomy();
491
+
492
+ if( ! empty( $brands_taxonomy ) && $brands_taxonomy == $taxonomy ){
493
+ $return = get_post_type_archive_link( 'product' );
494
+ }
495
+
496
+ else {
497
+ $return = get_term_link( get_query_var( 'term' ), $taxonomy );
498
+ }
499
+
500
return apply_filters( 'yith_wcan_untrailingslashit', true ) ? untrailingslashit( $return ) : $return;
501
}
502
503
+ return $return;
504
}
505
}
506
559
}
560
return $result;
561
}
562
+ }
563
564
+ if( ! function_exists( 'yit_get_brands_taxonomy' ) ){
565
+ /**
566
+ * Get the product brands taxonomy name
567
+ *
568
+ * @return string the product brands taxonomy name if YITH WooCommerce Brands addons is currently activated
569
+ *
570
+ * @since 2.7.6
571
+ * @author Andrea Grillo <andrea.grillo@yithemes.com>
572
+ */
573
+ function yit_get_brands_taxonomy(){
574
+ return defined( 'YITH_WCBR_PREMIUM_INIT' ) && YITH_WCBR_PREMIUM_INIT ? YITH_WCBR::$brands_taxonomy : '';
575
+ }
576
}
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.7
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.7.7' );
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.7.8
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.7.8' );
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