Commit 51ef79ca authored by Reinhold Kainhofer's avatar Reinhold Kainhofer

V1.4.1: Fix searching order numbers, sorting by order number in the order list

Fixes #18
parent 77d908e7
BASE=ordernumbers
PLATTFORM=woocommerce
VENDOR=opentools
VERSION=1.4.0
VERSION=1.4.1
DIR = $(shell pwd)
SVNDIR=wordpress-plugin-svn
......
......@@ -352,7 +352,8 @@ class OpenToolsOrdernumbersBasic {
* (so the admin can search for the order number in the backend)
*/
public function order_search_fields($fields) {
$fields[] = $this->ordernumber_meta;
$fields[] = $this->ordernumber_meta.'ordernumber';
$fields[] = $this->ordernumber_meta.'invoice';
return $fields;
}
......@@ -360,7 +361,7 @@ class OpenToolsOrdernumbersBasic {
* Sort the order list's "Order" column by our post meta rather than by ID
*/
public function modify_order_column_sortkey($columns) {
$columns['order_title'] = $this->ordernumber_meta;
$columns['order_title'] = $this->ordernumber_meta.'ordernumber';
return $columns;
}
......
......@@ -4,7 +4,7 @@ Contributors: opentools
Tags: WooCommerce, Order numbers, orders
Requires at least: 4.0
Tested up to: 4.7
Stable tag: 1.4.0
Stable tag: 1.4.1
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl.html
......@@ -78,6 +78,9 @@ The Advanced Ordernumbers for WooCommerce plugin supports some invoicing plugins
== Changelog ==
= 1.4.1 =
* Fix searching order numbers, sorting by order number in the order list
= 1.4.0 =
* Compatibility with WooCommerce 3.0
* Add variables [isSubOrder] to allow admins to use different order number formats for suborders created by the YITH WC Multivendor plugin
......
......@@ -3,7 +3,7 @@
* Plugin Name: Woocommerce Advanced Ordernumbers
* Plugin URI: http://open-tools.net/woocommerce/advanced-ordernumbers-for-woocommerce.html
* Description: Lets the user freely configure the order numbers in WooCommerce.
* Version: 1.4.0
* Version: 1.4.1
* Author: Open Tools
* Author URI: http://open-tools.net
* Text Domain: woocommerce-advanced-ordernumbers
......@@ -11,7 +11,7 @@
* License: GPL2+
* Network: true
* WC requires at least: 2.2
* WC tested up to: 2.6
* WC tested up to: 3.0
*/
if ( ! defined( 'ABSPATH' ) ) {
......
......@@ -3,14 +3,14 @@
* Plugin Name: WooCommerce Basic Ordernumbers
* Plugin URI: http://open-tools.net/woocommerce/advanced-ordernumbers-for-woocommerce.html
* Description: Configure WooCommerce ordernumbers to have a running counter and arbitrary, fixed text (prefix / postfix).
* Version: 1.4.0
* Version: 1.4.1
* Author: Open Tools
* Author URI: http://open-tools.net
* Text Domain: woocommerce-advanced-ordernumbers
* License: GPL2+
* Network: true
* WC requires at least: 2.2
* WC tested up to: 2.6
* WC tested up to: 3.0
*/
if ( ! defined( 'ABSPATH' ) ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment