WooCommerce Products Per Page - Version 1.0.4

Version Description

  • - Added option to control behaviour of select*
  • - Added filter on option text*
  • - Improved coding to Wordpress coding standards
Download this release

Release Info

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

Code changes from version 1.0.6 to 1.0.4

languages/wppp-fr_FR.mo DELETED
Binary file
languages/wppp-fr_FR.po DELETED
@@ -1,88 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: WooCommerce Products Per Page 1.0.1\n"
4
- "POT-Creation-Date: 2014-03-15 14:13+0100\n"
5
- "PO-Revision-Date: \n"
6
- "Last-Translator: \n"
7
- "Language-Team: Jeroen Sormani <jeroen.sormani@gmail.com>\n"
8
- "Language: French\n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.5.5\n"
13
- "X-Poedit-KeywordsList: __;_e\n"
14
- "X-Poedit-Basepath: /Users/Jeroen/plugins/woocommerce-products-per-page/"
15
- "trunk/\n"
16
- "Plural-Forms: nplurals=2; plural=n == 1 ? 0 : 1;\n"
17
- "X-Poedit-SourceCharset: UTF-8\n"
18
- "X-Poedit-SearchPath-0: /Users/Jeroen/plugins/woocommerce-products-per-page/"
19
- "trunk\n"
20
-
21
- #: /Users/Jeroen/plugins/woocommerce-products-per-page/trunk/admin/options-page.php:27
22
- msgid "Dropdown location"
23
- msgstr "Empalcement de la liste déroulante"
24
-
25
- #: /Users/Jeroen/plugins/woocommerce-products-per-page/trunk/admin/options-page.php:35
26
- msgid "List of dropdown options"
27
- msgstr "Liste des options de la liste déroulante"
28
-
29
- #: /Users/Jeroen/plugins/woocommerce-products-per-page/trunk/admin/options-page.php:43
30
- msgid "Default products per page"
31
- msgstr "Produits par page par défaut"
32
-
33
- #: /Users/Jeroen/plugins/woocommerce-products-per-page/trunk/admin/options-page.php:51
34
- msgid "Shop columns"
35
- msgstr "Colonnes de la page Boutique"
36
-
37
- #: /Users/Jeroen/plugins/woocommerce-products-per-page/trunk/admin/options-page.php:59
38
- msgid "First category page"
39
- msgstr "Première page de catégorie"
40
-
41
- #: /Users/Jeroen/plugins/woocommerce-products-per-page/trunk/admin/options-page.php:73
42
- msgid "WooCommerce Products Per Page"
43
- msgstr "WooCommerce Produits par page"
44
-
45
- #: /Users/Jeroen/plugins/woocommerce-products-per-page/trunk/admin/options-page.php:92
46
- msgid "Top"
47
- msgstr "Haut"
48
-
49
- #: /Users/Jeroen/plugins/woocommerce-products-per-page/trunk/admin/options-page.php:93
50
- msgid "Bottom"
51
- msgstr "Bas"
52
-
53
- #: /Users/Jeroen/plugins/woocommerce-products-per-page/trunk/admin/options-page.php:94
54
- msgid "Top/Bottom"
55
- msgstr "Haut/Bas"
56
-
57
- #: /Users/Jeroen/plugins/woocommerce-products-per-page/trunk/admin/options-page.php:95
58
- msgid "None"
59
- msgstr "Aucun"
60
-
61
- #: /Users/Jeroen/plugins/woocommerce-products-per-page/trunk/admin/options-page.php:107
62
- msgid "Seperated by spaces <em>(-1 for all products)</em>"
63
- msgstr "Séparés par des espaces <em>(-1 pour montrer tous les produits)</em>"
64
-
65
- #: /Users/Jeroen/plugins/woocommerce-products-per-page/trunk/admin/options-page.php:118
66
- msgid "-1 for all products"
67
- msgstr "-1 pour montrer tous les produits"
68
-
69
- #: /Users/Jeroen/plugins/woocommerce-products-per-page/trunk/admin/options-page.php:140
70
- msgid ""
71
- "When checked and a new number of PPP is selected, the visitor will be send "
72
- "to the first page of the product category"
73
- msgstr ""
74
- "Si sélectionné et qu'un nouveau nombre de PPP est chosi, le visiteur sera "
75
- "renvoyé sur la première page de la catégorie de produits"
76
-
77
- #: /Users/Jeroen/plugins/woocommerce-products-per-page/trunk/admin/options-page.php:187
78
- msgid "Configure the WooCommerce Product Per Page settings here."
79
- msgstr "Configurer les paramètres ici."
80
-
81
- #: /Users/Jeroen/plugins/woocommerce-products-per-page/trunk/objects/wppp-dropdown.php:49
82
- #, php-format
83
- msgid "%s products per page"
84
- msgstr "%s produits par page"
85
-
86
- #: /Users/Jeroen/plugins/woocommerce-products-per-page/trunk/objects/wppp-dropdown.php:50
87
- msgid "All"
88
- msgstr "Tous"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
objects/wppp-dropdown.php CHANGED
@@ -25,13 +25,15 @@ class wppp_dropdown extends woocommerce_products_per_page {
25
  $cat = $wp_query->get_queried_object();
26
 
27
  // Set action url if option behaviour is true
 
28
  if ( true == $cat->term_id && true == $this->options['behaviour'] ) :
29
- $action = ' action="' . get_term_link( $cat->term_id, 'product_cat' ) . '"';
30
  elseif ( true == $this->options['behaviour'] ) :
31
- $action = 'action="' . get_permalink( woocommerce_get_page_id( 'shop' ) ) . '"';
32
  endif;
33
-
34
  ?>
 
35
  <form method="post" <?php echo $action; ?> class="form-wppp-select products-per-page">
36
  <?php
37
  do_action( 'wppp_before_dropdown' );
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">
38
  <?php
39
  do_action( 'wppp_before_dropdown' );
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.6
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -23,7 +23,6 @@ Options like:
23
 
24
  ### Translations ###
25
  - Dutch
26
- - French [whoaloic](http://profiles.wordpress.org/whoaloic)
27
 
28
 
29
  == Installation ==
@@ -41,24 +40,19 @@ Options like:
41
 
42
  == Changelog ==
43
 
44
- = 1.0.5/1.0.6 =
45
- * Added French translation (thanks to [whoaloic](http://profiles.wordpress.org/whoaloic))
46
- * Fixed WooCommerce 2.0.X compatibily
47
- * Now is capable for WooCommerce 2.0.X and 2.1.X
48
-
49
  = 1.0.4 =
50
- * Added option to control behaviour of select*
51
- * Added filter on option text*
52
- * Improved coding to Wordpress coding standards
53
 
54
  = 1.0.3 =
55
- * Fixed dutch translation*
56
 
57
  = 1.0.2 =
58
- * Added Dutch translation*
59
- * Added 'None' to the dropdown locations*
60
- * Now uses WC sessions instead of cookies*
61
- * Gave higher priority to hook "loop_shop_per_page"*
62
 
63
  = 1.0.1 =
64
  * Small update for cookies
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.4
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
23
 
24
  ### Translations ###
25
  - Dutch
 
26
 
27
 
28
  == Installation ==
40
 
41
  == Changelog ==
42
 
 
 
 
 
 
43
  = 1.0.4 =
44
+ * - Added option to control behaviour of select*
45
+ * - Added filter on option text*
46
+ * - Improved coding to Wordpress coding standards
47
 
48
  = 1.0.3 =
49
+ * - Fixed dutch translation*
50
 
51
  = 1.0.2 =
52
+ * - Added Dutch translation*
53
+ * - Added 'None' to the dropdown locations*
54
+ * - Now uses WC sessions instead of cookies*
55
+ * - Gave higher priority to hook "loop_shop_per_page"*
56
 
57
  = 1.0.1 =
58
  * Small update for cookies
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.6
7
  Author: Jeroen Sormani
8
  Author URI: http://www.jeroensormani.nl
9
 
@@ -90,6 +90,7 @@ class woocommerce_products_per_page {
90
 
91
  if ( isset( $_POST['wppp_ppp'] ) ) :
92
  $woocommerce->session->set( 'products_per_page', $_POST['wppp_ppp'] );
 
93
  endif;
94
 
95
  }
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.4
7
  Author: Jeroen Sormani
8
  Author URI: http://www.jeroensormani.nl
9
 
90
 
91
  if ( isset( $_POST['wppp_ppp'] ) ) :
92
  $woocommerce->session->set( 'products_per_page', $_POST['wppp_ppp'] );
93
+ $woocommerce->session->set_customer_session_cookie( true );
94
  endif;
95
 
96
  }