Commit 5a314453 authored by Reinhold Kainhofer's avatar Reinhold Kainhofer

Add variable issuborder to let admins use different order number formats for...

Add variable issuborder to let admins use different order number formats for suborders created by YITH multivendor

Fixes #16
parent 85798901
......@@ -241,6 +241,7 @@ class OpenToolsOrdernumbers extends OpenToolsOrdernumbersBasic {
}
public function setupOrderReplacements (&$reps, $order, $nrtype) {
$reps["[issuborder]"] = ($order->post->post_parent != 0);
$reps["[orderid]"] = $order->id;
if ($nrtype != 'ordernumber') {
......
......@@ -79,6 +79,7 @@ The Advanced Ordernumbers for WooCommerce plugin supports some invoicing plugins
== Changelog ==
= 1.4.0 =
* Add variables [isSubOrder] to allow admins to use different order number formats for suborders created by the YITH WC Multivendor plugin
= 1.3.9 =
* Fix issues with the WooCommerce PDF Invoices & Packaging Slips plugin (invoice numbers were created even if disabled and before an invoice was actually generated)
......
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