Advanced Sequential Order Numbers Setup

This plugin is a layer upon the Easy Digital Downloads order number functionality. The plugin assigns sequential order numbers to all new orders created after the activation of the plugin.

Number series

The plugin operates with three different number series:

  1. “Temporary order” numbers
  2. “Free order” numbers
  3. “Completed order” numbers

The number series are individually sequential, and can be assigned with pre- and postfixes.

Temporary order numbers

When an order is created in EDD, a temporary order number is assigned to the order. The order number will be replaced once the order is marked as complete.

The temporary order is also stored for later reference, and is visible on the payment details page.

Free order numbers

Once an order is completed, and if the order total is 0, the order will be assigned an order number from this order series. Different order numbers for free orders can be disabled in the plugin settings.

Completed order numbers

If the order isn’t free, or the free order number series is disabled, once an order is completed, a regular order number is assigned to the order.

Order number padding

By default order numbers only contain the number of digits than make up the number. If you want all order numbers to contain the same number of digits (ie 001 instead of 1) you can use this setting to achieve that.

Pad with

Character used to pad order numbers. For example, use 0 to add 0's before the order number to get an order number of 001. 

Order number length

This is used to set the length or number of digits in your order. The prefix/postfix values are not included in the order number length.

Next order numbers

This is the order number of the next order. If it's empty it's 1. You can use this to start future order at a specific number, 1000 instead of 1 or if you want to reset and start orders at 1 after updating the Prefix or Postfix. 

Getting started

Once the plugin is installed, you need to enable the plugin from the settings page. The plugin settings can be found at  Downloads -> Settings -> Order numbers

Once the plugin is enabled, you do not have to do anything else. Per default, the first order number will be 1 for all order series. If you wish to start somewhere else, you can change the next order number to be used in the settings as well.

Removing the plugin

If you wish to delete the plugin, you can do so without any issues, since this plugin doesn’t change any of the original order data.

FAQ

Does making changes to any of the settings affect existing orders?
No, updates to any of the settings only affect future order numbers.

Is it possible to have duplicate order numbers?
Yes, if the "Next order number" is set to an order number that already exists. Advanced Sequential Order Numbers does not check existing order numbers, so it's important to make sure updating the settings do not result in duplicate order numbers.