WooCommerce Products Per Page - Version 1.0.8

Version Description

  • Fix - Bug on tag archive pages
  • Tweak - Dropdown only shows on pages which show products
Download this release

Release Info

Developer sormano
Plugin Icon 128x128 WooCommerce Products Per Page
Version 1.0.8
Comparing to
See all releases

Code changes from version 1.0.7 to 1.0.8

objects/wppp-dropdown.php CHANGED
@@ -23,15 +23,17 @@ class wppp_dropdown extends woocommerce_products_per_page {
23
  global $wp_query;
24
 
25
  $cat = $wp_query->get_queried_object();
26
-
27
  // Set action url if option behaviour is true
28
  // Paste QUERY string after for filter and orderby support
29
- if ( true == $cat->term_id && true == $this->options['behaviour'] ) :
30
  $action = ' action="' . get_term_link( $cat->term_id, 'product_cat' ) . '?' . $_SERVER['QUERY_STRING'] . '"';
31
  elseif ( true == $this->options['behaviour'] ) :
32
  $action = 'action="' . get_permalink( woocommerce_get_page_id( 'shop' ) ) . '?' . $_SERVER['QUERY_STRING'] . '"';
33
  endif;
34
-
 
 
35
  ?>
36
 
37
  <form method="post" <?php echo $action; ?> class="form-wppp-select products-per-page">
@@ -62,6 +64,7 @@ class wppp_dropdown extends woocommerce_products_per_page {
62
  ?>
63
  </form>
64
  <?php
 
65
 
66
  }
67
 
23
  global $wp_query;
24
 
25
  $cat = $wp_query->get_queried_object();
26
+
27
  // Set action url if option behaviour is true
28
  // Paste QUERY string after for filter and orderby support
29
+ if ( true == $cat->term_id && true == $this->options['behaviour'] && 'product_cat' == $cat->taxonomy ) :
30
  $action = ' action="' . get_term_link( $cat->term_id, 'product_cat' ) . '?' . $_SERVER['QUERY_STRING'] . '"';
31
  elseif ( true == $this->options['behaviour'] ) :
32
  $action = 'action="' . get_permalink( woocommerce_get_page_id( 'shop' ) ) . '?' . $_SERVER['QUERY_STRING'] . '"';
33
  endif;
34
+
35
+ // Only show on product categories
36
+ if ( 'product_cat' == $cat->taxonomy ) :
37
  ?>
38
 
39
  <form method="post" <?php echo $action; ?> class="form-wppp-select products-per-page">
64
  ?>
65
  </form>
66
  <?php
67
+ endif;
68
 
69
  }
70
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: sormano
3
  Tags: Products per page, woocommerce, woocommerce products, woocommerce products per page, woocommerce displayed products, woocommerce quantity products, woocommerce amount of products, woocommerce number of products, woocommerce shown products
4
  Requires at least: 3.0.1
5
  Tested up to: 3.8.1
6
- Stable tag: 1.0.7
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -41,6 +41,10 @@ Options like:
41
 
42
  == Changelog ==
43
 
 
 
 
 
44
  = 1.0.7 =
45
  * Added support for filters/orders
46
 
3
  Tags: Products per page, woocommerce, woocommerce products, woocommerce products per page, woocommerce displayed products, woocommerce quantity products, woocommerce amount of products, woocommerce number of products, woocommerce shown products
4
  Requires at least: 3.0.1
5
  Tested up to: 3.8.1
6
+ Stable tag: 1.0.8
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
41
 
42
  == Changelog ==
43
 
44
+ = 1.0.8 =
45
+ * Fix - Bug on tag archive pages
46
+ * Tweak - Dropdown only shows on pages which show products
47
+
48
  = 1.0.7 =
49
  * Added support for filters/orders
50
 
woocommerce-products-per-page.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Woocommerce Products Per Page
4
  Plugin URI: http://www.jeroensormani.nl/
5
  Description: Integrate a 'products per page' dropdown on your WooCommerce website! Set-up in <strong>seconds</strong>!
6
- Version: 1.0.7
7
  Author: Jeroen Sormani
8
  Author URI: http://www.jeroensormani.nl
9
 
3
  Plugin Name: Woocommerce Products Per Page
4
  Plugin URI: http://www.jeroensormani.nl/
5
  Description: Integrate a 'products per page' dropdown on your WooCommerce website! Set-up in <strong>seconds</strong>!
6
+ Version: 1.0.8
7
  Author: Jeroen Sormani
8
  Author URI: http://www.jeroensormani.nl
9