Version Description
- Minor updates due to WooCommerce 1.5.4 release
Download this release
Release Info
| Developer | FoxRunSoftware |
| Plugin | |
| Version | 1.1.2 |
| Comparing to | |
| See all releases | |
Code changes from version 1.1.1 to 1.1.2
- readme.txt +4 -1
- woocommerce-sequential-order-numbers.php +8 -5
readme.txt
CHANGED
|
@@ -3,7 +3,7 @@ Contributors: FoxRunSoftware
|
|
| 3 |
Tags: woocommerce, order number
|
| 4 |
Requires at least: 3.3
|
| 5 |
Tested up to: 3.3
|
| 6 |
-
Stable tag: 1.1.
|
| 7 |
|
| 8 |
This plugin extends the WooCommerce e-commerce plugin by setting sequential order numbers for new orders.
|
| 9 |
|
|
@@ -28,6 +28,9 @@ This plugin requires WooCommerce 1.5.3 or greater.
|
|
| 28 |
|
| 29 |
== Changelog ==
|
| 30 |
|
|
|
|
|
|
|
|
|
|
| 31 |
= 1.1.1 =
|
| 32 |
* Order number in the subject line of the admin new order email is fixed
|
| 33 |
|
| 3 |
Tags: woocommerce, order number
|
| 4 |
Requires at least: 3.3
|
| 5 |
Tested up to: 3.3
|
| 6 |
+
Stable tag: 1.1.2
|
| 7 |
|
| 8 |
This plugin extends the WooCommerce e-commerce plugin by setting sequential order numbers for new orders.
|
| 9 |
|
| 28 |
|
| 29 |
== Changelog ==
|
| 30 |
|
| 31 |
+
= 1.1.2 =
|
| 32 |
+
* Minor updates due to WooCommerce 1.5.4 release
|
| 33 |
+
|
| 34 |
= 1.1.1 =
|
| 35 |
* Order number in the subject line of the admin new order email is fixed
|
| 36 |
|
woocommerce-sequential-order-numbers.php
CHANGED
|
@@ -5,7 +5,7 @@ Plugin URI: http://www.foxrunsoftware.net/articles/wordpress/woocommerce-sequent
|
|
| 5 |
Description: Provides sequential order numbers for WooCommerce orders
|
| 6 |
Author: Justin Stern
|
| 7 |
Author URI: http://www.foxrunsoftware.net
|
| 8 |
-
Version: 1.1.
|
| 9 |
|
| 10 |
Copyright: © 2012 Justin Stern (email : justin@foxrunsoftware.net)
|
| 11 |
License: GNU General Public License v3.0
|
|
@@ -22,7 +22,7 @@ if (is_woocommerce_active()) {
|
|
| 22 |
if (!class_exists('WC_Seq_Order_Number')) {
|
| 23 |
|
| 24 |
class WC_Seq_Order_Number {
|
| 25 |
-
const VERSION = "1.1.
|
| 26 |
const VERSION_OPTION_NAME = "woocommerce_seq_order_number_db_version";
|
| 27 |
|
| 28 |
public function __construct() {
|
|
@@ -73,7 +73,7 @@ if (is_woocommerce_active()) {
|
|
| 73 |
switch ($column) {
|
| 74 |
case "order_status" :
|
| 75 |
|
| 76 |
-
|
| 77 |
|
| 78 |
break;
|
| 79 |
case "order_title" :
|
|
@@ -206,6 +206,9 @@ if (is_woocommerce_active()) {
|
|
| 206 |
}
|
| 207 |
|
| 208 |
|
|
|
|
|
|
|
|
|
|
| 209 |
function woocommerce_shop_order_search_custom_fields( $wp ) {
|
| 210 |
global $pagenow, $wpdb;
|
| 211 |
|
|
@@ -489,7 +492,7 @@ if (is_woocommerce_active()) {
|
|
| 489 |
|
| 490 |
if ($order->get_formatted_shipping_address()) echo '<p><strong>'.__('Address', 'woocommerce').':</strong><br/> ' .$order->get_formatted_shipping_address().'</p>'; else echo '<p class="none_set"><strong>'.__('Address', 'woocommerce').':</strong> ' . __('No shipping address set.', 'woocommerce') . '</p>';
|
| 491 |
|
| 492 |
-
foreach ( $shipping_data as $key => $field ) : if (isset($field['show']) && !$field['show']) continue;
|
| 493 |
$field_name = 'shipping_'.$key;
|
| 494 |
if ( $order->$field_name ) echo '<p><strong>'.$field['label'].':</strong> '.$order->$field_name.'</p>';
|
| 495 |
endforeach;
|
|
@@ -499,7 +502,7 @@ if (is_woocommerce_active()) {
|
|
| 499 |
// Display form
|
| 500 |
echo '<div class="edit_address"><p><button class="button load_customer_shipping">'.__('Load customer shipping address', 'woocommerce').'</button></p>';
|
| 501 |
|
| 502 |
-
foreach ( $shipping_data as $key => $field ) :
|
| 503 |
if (!isset($field['type'])) $field['type'] = 'text';
|
| 504 |
switch ($field['type']) {
|
| 505 |
case "select" :
|
| 5 |
Description: Provides sequential order numbers for WooCommerce orders
|
| 6 |
Author: Justin Stern
|
| 7 |
Author URI: http://www.foxrunsoftware.net
|
| 8 |
+
Version: 1.1.2
|
| 9 |
|
| 10 |
Copyright: © 2012 Justin Stern (email : justin@foxrunsoftware.net)
|
| 11 |
License: GNU General Public License v3.0
|
| 22 |
if (!class_exists('WC_Seq_Order_Number')) {
|
| 23 |
|
| 24 |
class WC_Seq_Order_Number {
|
| 25 |
+
const VERSION = "1.1.2";
|
| 26 |
const VERSION_OPTION_NAME = "woocommerce_seq_order_number_db_version";
|
| 27 |
|
| 28 |
public function __construct() {
|
| 73 |
switch ($column) {
|
| 74 |
case "order_status" :
|
| 75 |
|
| 76 |
+
printf( '<mark class="%s">%s</mark>', sanitize_title($order->status), __($order->status, 'woocommerce') );
|
| 77 |
|
| 78 |
break;
|
| 79 |
case "order_title" :
|
| 206 |
}
|
| 207 |
|
| 208 |
|
| 209 |
+
/**
|
| 210 |
+
* Largely unchanged from original, just one point change noted below
|
| 211 |
+
*/
|
| 212 |
function woocommerce_shop_order_search_custom_fields( $wp ) {
|
| 213 |
global $pagenow, $wpdb;
|
| 214 |
|
| 492 |
|
| 493 |
if ($order->get_formatted_shipping_address()) echo '<p><strong>'.__('Address', 'woocommerce').':</strong><br/> ' .$order->get_formatted_shipping_address().'</p>'; else echo '<p class="none_set"><strong>'.__('Address', 'woocommerce').':</strong> ' . __('No shipping address set.', 'woocommerce') . '</p>';
|
| 494 |
|
| 495 |
+
if ( $shipping_data ) foreach ( $shipping_data as $key => $field ) : if (isset($field['show']) && !$field['show']) continue;
|
| 496 |
$field_name = 'shipping_'.$key;
|
| 497 |
if ( $order->$field_name ) echo '<p><strong>'.$field['label'].':</strong> '.$order->$field_name.'</p>';
|
| 498 |
endforeach;
|
| 502 |
// Display form
|
| 503 |
echo '<div class="edit_address"><p><button class="button load_customer_shipping">'.__('Load customer shipping address', 'woocommerce').'</button></p>';
|
| 504 |
|
| 505 |
+
if ( $shipping_data ) foreach ( $shipping_data as $key => $field ) :
|
| 506 |
if (!isset($field['type'])) $field['type'] = 'text';
|
| 507 |
switch ($field['type']) {
|
| 508 |
case "select" :
|
