Version Description
- 08/11/2017 =
- Tweak - WooCommerce 2.7 compatibility.
Download this release
Release Info
Developer | jameskoster |
Plugin | WooCommerce Product Archive Customiser |
Version | 1.0.5 |
Comparing to | |
See all releases |
Code changes from version 1.0.4 to 1.0.5
languages/woocommerce-product-archive-customiser.pot
CHANGED
@@ -1,92 +1,84 @@
|
|
1 |
-
# Copyright (C)
|
2 |
# This file is distributed under the same license as the WooCommerce Product Archive Customiser package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: WooCommerce Product Archive Customiser 1.0.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
|
7 |
"product-archive-customiser\n"
|
8 |
-
"POT-Creation-Date:
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"PO-Revision-Date:
|
13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15 |
|
16 |
-
#: woocommerce-product-archive-customiser.php:
|
17 |
msgid "Product Archives"
|
18 |
msgstr ""
|
19 |
|
20 |
-
#: woocommerce-product-archive-customiser.php:
|
21 |
msgid "Product columns"
|
22 |
msgstr ""
|
23 |
|
24 |
-
#: woocommerce-product-archive-customiser.php:
|
25 |
msgid "Products per page"
|
26 |
msgstr ""
|
27 |
|
28 |
-
#: woocommerce-product-archive-customiser.php:
|
29 |
msgid "Display product count"
|
30 |
msgstr ""
|
31 |
|
32 |
-
#: woocommerce-product-archive-customiser.php:
|
33 |
msgid "Display product sorting"
|
34 |
msgstr ""
|
35 |
|
36 |
-
#: woocommerce-product-archive-customiser.php:
|
37 |
msgid "Display sale flashes"
|
38 |
msgstr ""
|
39 |
|
40 |
-
#: woocommerce-product-archive-customiser.php:
|
41 |
msgid "Display add to cart buttons"
|
42 |
msgstr ""
|
43 |
|
44 |
-
#: woocommerce-product-archive-customiser.php:
|
45 |
msgid "Display product image"
|
46 |
msgstr ""
|
47 |
|
48 |
-
#: woocommerce-product-archive-customiser.php:
|
49 |
msgid "Display prices"
|
50 |
msgstr ""
|
51 |
|
52 |
-
#: woocommerce-product-archive-customiser.php:
|
53 |
msgid "Display ratings"
|
54 |
msgstr ""
|
55 |
|
56 |
-
#: woocommerce-product-archive-customiser.php:
|
57 |
msgid "Display new badge"
|
58 |
msgstr ""
|
59 |
|
60 |
-
#: woocommerce-product-archive-customiser.php:
|
61 |
msgid "Display the \"New\" badge for how many days"
|
62 |
msgstr ""
|
63 |
|
64 |
-
#: woocommerce-product-archive-customiser.php:
|
65 |
msgid "Display categories"
|
66 |
msgstr ""
|
67 |
|
68 |
-
#: woocommerce-product-archive-customiser.php:
|
69 |
msgid "Display stock"
|
70 |
msgstr ""
|
71 |
|
72 |
-
#: woocommerce-product-archive-customiser.php:
|
73 |
msgid "New"
|
74 |
msgstr ""
|
75 |
|
76 |
-
#: woocommerce-product-archive-customiser.php:656
|
77 |
-
msgid "Out of stock"
|
78 |
-
msgstr ""
|
79 |
-
|
80 |
-
#: woocommerce-product-archive-customiser.php:658
|
81 |
-
msgid "%s in stock"
|
82 |
-
msgstr ""
|
83 |
-
|
84 |
#. Plugin Name of the plugin/theme
|
85 |
msgid "WooCommerce Product Archive Customiser"
|
86 |
msgstr ""
|
87 |
|
88 |
#. Plugin URI of the plugin/theme
|
89 |
-
msgid "
|
90 |
msgstr ""
|
91 |
|
92 |
#. Description of the plugin/theme
|
1 |
+
# Copyright (C) 2017 WooCommerce Product Archive Customiser
|
2 |
# This file is distributed under the same license as the WooCommerce Product Archive Customiser package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: WooCommerce Product Archive Customiser 1.0.5\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-"
|
7 |
"product-archive-customiser\n"
|
8 |
+
"POT-Creation-Date: 2017-03-10 13:03:48+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
|
13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15 |
|
16 |
+
#: woocommerce-product-archive-customiser.php:213
|
17 |
msgid "Product Archives"
|
18 |
msgstr ""
|
19 |
|
20 |
+
#: woocommerce-product-archive-customiser.php:227
|
21 |
msgid "Product columns"
|
22 |
msgstr ""
|
23 |
|
24 |
+
#: woocommerce-product-archive-customiser.php:249
|
25 |
msgid "Products per page"
|
26 |
msgstr ""
|
27 |
|
28 |
+
#: woocommerce-product-archive-customiser.php:290
|
29 |
msgid "Display product count"
|
30 |
msgstr ""
|
31 |
|
32 |
+
#: woocommerce-product-archive-customiser.php:306
|
33 |
msgid "Display product sorting"
|
34 |
msgstr ""
|
35 |
|
36 |
+
#: woocommerce-product-archive-customiser.php:322
|
37 |
msgid "Display sale flashes"
|
38 |
msgstr ""
|
39 |
|
40 |
+
#: woocommerce-product-archive-customiser.php:338
|
41 |
msgid "Display add to cart buttons"
|
42 |
msgstr ""
|
43 |
|
44 |
+
#: woocommerce-product-archive-customiser.php:354
|
45 |
msgid "Display product image"
|
46 |
msgstr ""
|
47 |
|
48 |
+
#: woocommerce-product-archive-customiser.php:370
|
49 |
msgid "Display prices"
|
50 |
msgstr ""
|
51 |
|
52 |
+
#: woocommerce-product-archive-customiser.php:386
|
53 |
msgid "Display ratings"
|
54 |
msgstr ""
|
55 |
|
56 |
+
#: woocommerce-product-archive-customiser.php:402
|
57 |
msgid "Display new badge"
|
58 |
msgstr ""
|
59 |
|
60 |
+
#: woocommerce-product-archive-customiser.php:418
|
61 |
msgid "Display the \"New\" badge for how many days"
|
62 |
msgstr ""
|
63 |
|
64 |
+
#: woocommerce-product-archive-customiser.php:441
|
65 |
msgid "Display categories"
|
66 |
msgstr ""
|
67 |
|
68 |
+
#: woocommerce-product-archive-customiser.php:457
|
69 |
msgid "Display stock"
|
70 |
msgstr ""
|
71 |
|
72 |
+
#: woocommerce-product-archive-customiser.php:684
|
73 |
msgid "New"
|
74 |
msgstr ""
|
75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
#. Plugin Name of the plugin/theme
|
77 |
msgid "WooCommerce Product Archive Customiser"
|
78 |
msgstr ""
|
79 |
|
80 |
#. Plugin URI of the plugin/theme
|
81 |
+
msgid "https://wordpress.org/plugins/woocommerce-product-archive-customiser/"
|
82 |
msgstr ""
|
83 |
|
84 |
#. Description of the plugin/theme
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: jameskoster
|
3 |
Tags: woocommerce, ecommerce, products
|
4 |
Requires at least: 4.4
|
5 |
-
Tested up to: 4.
|
6 |
-
Stable tag: 1.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 |
= 1.0.4 - 08/11/2016 =
|
53 |
* Tweak - Added a css fallback to hide elements in themes that use priorities that are different to WooCommerce core when hooking in related functions.
|
54 |
|
2 |
Contributors: jameskoster
|
3 |
Tags: woocommerce, ecommerce, products
|
4 |
Requires at least: 4.4
|
5 |
+
Tested up to: 4.7.3
|
6 |
+
Stable tag: 1.0.5
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
49 |
|
50 |
== Changelog ==
|
51 |
|
52 |
+
= 1.0.5 - 08/11/2017 =
|
53 |
+
* Tweak - WooCommerce 2.7 compatibility.
|
54 |
+
|
55 |
= 1.0.4 - 08/11/2016 =
|
56 |
* Tweak - Added a css fallback to hide elements in themes that use priorities that are different to WooCommerce core when hooking in related functions.
|
57 |
|
woocommerce-product-archive-customiser.php
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
/**
|
3 |
* Plugin Name: WooCommerce Product Archive Customiser
|
4 |
* Plugin URI: https://wordpress.org/plugins/woocommerce-product-archive-customiser/
|
5 |
-
* Version: 1.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: 4.
|
9 |
* Author URI: http://jameskoster.co.uk
|
10 |
* Text Domain: woocommerce-product-archive-customiser
|
11 |
* Domain Path: /languages/
|
@@ -48,7 +48,7 @@ if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', g
|
|
48 |
* The constructor!
|
49 |
*/
|
50 |
public function __construct() {
|
51 |
-
$this->version = '1.0.
|
52 |
|
53 |
add_action( 'wp_enqueue_scripts', array( $this, 'wc_pac_styles' ) );
|
54 |
add_action( 'init', array( $this, 'wc_pac_setup' ) );
|
@@ -703,9 +703,13 @@ if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', g
|
|
703 |
*/
|
704 |
function woocommerce_pac_show_product_stock() {
|
705 |
global $product;
|
706 |
-
$stock = $product->
|
707 |
$product_availability = $product->get_availability();
|
708 |
-
|
|
|
|
|
|
|
|
|
709 |
|
710 |
if ( $product->is_in_stock() ) {
|
711 |
echo '<p class="stock in-stock"><small>' . esc_attr( $availability_text ) . '</small></p>';
|
2 |
/**
|
3 |
* Plugin Name: WooCommerce Product Archive Customiser
|
4 |
* Plugin URI: https://wordpress.org/plugins/woocommerce-product-archive-customiser/
|
5 |
+
* Version: 1.0.5
|
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: 4.7.3
|
9 |
* Author URI: http://jameskoster.co.uk
|
10 |
* Text Domain: woocommerce-product-archive-customiser
|
11 |
* Domain Path: /languages/
|
48 |
* The constructor!
|
49 |
*/
|
50 |
public function __construct() {
|
51 |
+
$this->version = '1.0.5';
|
52 |
|
53 |
add_action( 'wp_enqueue_scripts', array( $this, 'wc_pac_styles' ) );
|
54 |
add_action( 'init', array( $this, 'wc_pac_setup' ) );
|
703 |
*/
|
704 |
function woocommerce_pac_show_product_stock() {
|
705 |
global $product;
|
706 |
+
$stock = $product->get_stock_quantity();
|
707 |
$product_availability = $product->get_availability();
|
708 |
+
if ( $product_availability ) {
|
709 |
+
$availability_text = $product_availability['availability'];
|
710 |
+
} else {
|
711 |
+
$availability_text = '';
|
712 |
+
}
|
713 |
|
714 |
if ( $product->is_in_stock() ) {
|
715 |
echo '<p class="stock in-stock"><small>' . esc_attr( $availability_text ) . '</small></p>';
|