WooCommerce Product Archive Customiser - Version 0.5.1

Version Description

  • 13/03/2016 =
  • Tweat - Change formating of "in stock" message to use php formatting instead of concatenation.
Download this release

Release Info

Developer jameskoster
Plugin Icon wp plugin WooCommerce Product Archive Customiser
Version 0.5.1
Comparing to
See all releases

Code changes from version 0.5.0 to 0.5.1

README.md CHANGED
File without changes
archive-customiser.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: WooCommerce Product Archive Customiser
4
  Plugin URI: http://jameskoster.co.uk/tag/product-archive-customiser/
5
- Version: 0.5.0
6
  Description: Allows you to customise WooCommerce product archives. Change the number of product columns and the number of products displayed per page. Toggle the display of core elements and enable some that are not included in WooCommerce core such as stock levels and product categories.
7
  Author: jameskoster
8
  Tested up to: 3.9.1
@@ -371,9 +371,9 @@ if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', g
371
  global $product;
372
  $stock = $product->get_total_stock();
373
  if ( ! $product->is_in_stock() ) {
374
- echo '<p class="stock out-of-stock"><small>' . __( 'Out of stock', 'woothemes' ) . '</small></p>';
375
  } elseif ( $stock > 1 ) {
376
- echo '<p class="stock in-stock"><small>' . $stock . __( ' In stock', 'woothemes' ) . '</small></p>';
377
  }
378
  }
379
  }
2
  /*
3
  Plugin Name: WooCommerce Product Archive Customiser
4
  Plugin URI: http://jameskoster.co.uk/tag/product-archive-customiser/
5
+ Version: 0.5.1
6
  Description: Allows you to customise WooCommerce product archives. Change the number of product columns and the number of products displayed per page. Toggle the display of core elements and enable some that are not included in WooCommerce core such as stock levels and product categories.
7
  Author: jameskoster
8
  Tested up to: 3.9.1
371
  global $product;
372
  $stock = $product->get_total_stock();
373
  if ( ! $product->is_in_stock() ) {
374
+ echo '<p class="stock out-of-stock"><small>' . __( 'Out of stock', 'woocommerce' ) . '</small></p>';
375
  } elseif ( $stock > 1 ) {
376
+ echo '<p class="stock in-stock"><small>' . sprintf( __( '%s in stock', 'woocommerce' ), $stock ) . '</small></p>';
377
  }
378
  }
379
  }
assets/css/layout.css CHANGED
File without changes
assets/css/pac.css CHANGED
File without changes
assets/css/pac.less CHANGED
File without changes
assets/js/script.js CHANGED
File without changes
assets/js/script.min.js CHANGED
File without changes
languages/woocommerce-product-archive-customiser-en_GB.po CHANGED
File without changes
languages/woocommerce-product-archive-customiser.pot CHANGED
@@ -1,23 +1,26 @@
1
- # Copyright (C) 2014
2
  # This file is distributed under the same license as the package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: \n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/woocommerce-product-archive-customiser\n"
7
  "POT-Creation-Date: 2014-05-15 10:36:50+00:00\n"
 
 
 
 
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n"
12
- "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
- "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
  #: archive-customiser.php:40
16
  msgid "Product Archives"
17
  msgstr ""
18
 
19
  #: archive-customiser.php:41
20
- msgid "Toggle the display of various components on product archives and change product layout."
 
 
21
  msgstr ""
22
 
23
  #: archive-customiser.php:46
@@ -108,14 +111,14 @@ msgstr ""
108
  msgid "WooCommerce"
109
  msgstr ""
110
 
111
- #: archive-customiser.php:342
112
  msgid "New"
113
  msgstr ""
114
 
115
- #: archive-customiser.php:356
116
  msgid "Out of stock"
117
  msgstr ""
118
 
119
- #: archive-customiser.php:358
120
- msgid " In stock"
121
- msgstr ""
1
+ # Copyright (C) 2014-2016
2
  # This file is distributed under the same license as the package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: \n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/woocommerce-product-archive-customiser\n"
7
  "POT-Creation-Date: 2014-05-15 10:36:50+00:00\n"
8
+ "PO-Revision-Date: 2016-03-13 22:00+0100\n"
9
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
10
+ "Language-Team: LANGUAGE <LL@li.org>\n"
11
+ "Language: \n"
12
  "MIME-Version: 1.0\n"
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
 
 
 
15
 
16
  #: archive-customiser.php:40
17
  msgid "Product Archives"
18
  msgstr ""
19
 
20
  #: archive-customiser.php:41
21
+ msgid ""
22
+ "Toggle the display of various components on product archives and change "
23
+ "product layout."
24
  msgstr ""
25
 
26
  #: archive-customiser.php:46
111
  msgid "WooCommerce"
112
  msgstr ""
113
 
114
+ #: archive-customiser.php:360
115
  msgid "New"
116
  msgstr ""
117
 
118
+ #: archive-customiser.php:374
119
  msgid "Out of stock"
120
  msgstr ""
121
 
122
+ #: archive-customiser.php:376
123
+ msgid "%d in stock"
124
+ msgstr ""
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: jameskoster
3
  Tags: woocommerce, ecommerce, products
4
  Requires at least: 3.5
5
  Tested up to: 4.1
6
- Stable tag: 0.5.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -49,6 +49,9 @@ function remove_pac_styles() {
49
 
50
  == Changelog ==
51
 
 
 
 
52
  = 0.5.0 - 30/01/2015 =
53
  * Tweak - CSS classes for new badge / categories moved to parent element. Props emirpprime
54
  * Tweak - Fixed potential 'page not found' errors when using the products per page selector feature. Props billras
3
  Tags: woocommerce, ecommerce, products
4
  Requires at least: 3.5
5
  Tested up to: 4.1
6
+ Stable tag: 0.5.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
49
 
50
  == Changelog ==
51
 
52
+ = 0.5.1 - 13/03/2016 =
53
+ * Tweat - Change formating of "in stock" message to use php formatting instead of concatenation.
54
+
55
  = 0.5.0 - 30/01/2015 =
56
  * Tweak - CSS classes for new badge / categories moved to parent element. Props emirpprime
57
  * Tweak - Fixed potential 'page not found' errors when using the products per page selector feature. Props billras