fbpx

WooCommerce Custom Order Numbers

Overview #

The WooCommerce Order Numbers plugin allows you to customize the order numbers, of your WooCommerce site, in sequential order numbering or by Order ID or in a pseudorandom way. 

The WooCommerce Order Numbers plugin works equally well for new and existing stores. It allows you to use a custom prefix and suffix for all your order numbers, use order date as a prefix, set order number width, enable order tracking by custom numbers, enable search by custom numbers, and enable order numbers editing.

The WooCommerce Order Numbers plugin converts order numbers into a sequential format and allows you to sort, delete, and change order numbers easily.

To keep the existing numbers of the orders when migrating to a new site, start by downloading the Sequential Order Numbers Pro plugin on the old site (A) before exporting the orders onto the new site (B).

Order numbers on WordPress are not sequential because every item in the database (orders, posts, images, and pages) is assigned a unique, auto-incremented post ID.

Enabling Order Numbers #

To enable and use the Order Numbers plugin, you should first download and install Booster for WooCommerce.

1. Navigate to WordPress Dashboard > WooCommerce > Settings > Booster > SHIPPING & ORDERS > Order Numbers.

The Order Numbers Module Options page will be displayed.

2. In the Order Numbers section, check the box for Enable Module field.

3. Scroll down to the end of the page and click Save changes.

The WooCommerce Order Numbers plugin will be enabled for your site.

Configuring Order Numbers #

You can customize the order numbers, of your WooCommerce site, in sequential order numbering or by Order ID or in a pseudorandom way using this option. 

You can enable or disable sequential order numbers, set a custom starting number for the next order, set custom prefix and suffix for order numbers, add order date as a prefix/suffix to order numbers, set order number width, and enable or disable MySQL transaction.

1. Navigate to WordPress Dashboard > WooCommerce > Settings > Booster > SHIPPING & ORDERS > Order Numbers.

The Order Numbers Module Options page will be displayed.

2. Enter/select required values for the fields. Refer to the table below for field descriptions:

Field  Description
Number Generation Method using which order numbers will be generated. The available options are:Sequential – Order numbers are generated in a sequence, starting with the values entered for Sequential: Next Order Number Order ID – Order numbers are generated based on Order IDPseudorandom – Hash (max 10 digits) – Order numbers are generated based on an algorithm that generates sequences of random numbers
Sequential: Next Order Number Number that will be assigned to the next new order. To generate numbers for existing orders, use Renumerate Orders tool.
Sequential: Reset Counter Frequency at which the sequential orde number generation will be reset. This field will be ignored if sequential order numbering is disabled.
Order Number Custom Prefix Value that will be prefixed to all order numbers. This value will be prefixed to all existing order numbers.
Order Number Date Prefix Format of the order date that will be prefixed to the order numbers. This value will be prefixed to all existing order numbers. This value will be passed directly to PHP `date` function, so most of PHP date formats can be used. The only exception is using `\` symbol in date format, as this symbol will be excluded from date. You can use formats such as Y-m-d- or mdy.
Order Number Width Minimum width of the order number without prefix.  Zeros will be added to the left of the order number if its length is less than the set minimum. This will change the minimum width of all existing order number numbers.
Order Number Custom Suffix Value that will be suffixed to all order numbers. This value will be suffixed to all existing order numbers.
Order Number Date Suffix Format of the order date that will be suffixed to the order numbers. This value will be suffixed to all existing order numbers. This value will be passed directly to PHP `date` function, so most of PHP date formats can be used. The only exception is using `\` symbol in date format, as this symbol will be excluded from date. You can use formats such as Y-m-d- or mdy.
Use MySQL Transaction Specifies if MySQL Transaction is used for order number generation. Enable this option if you receive a lot of simultaneous orders, on your WooCommerce store, to prevent duplicate order numbers (sequential) from being generated.
Enable Order Tracking by Custom Number Specifies if orders can be tracked using the custom order numbers
Enable Order Admin Search by Custom Number Specifies if orders can be searched by the Admin using the custom order numbers
Enable Editable Order Number Meta Box Specifies if order number meta boxes are editable 
Minimal Order ID Order ID that will be assigned to the next new order. If you wish to disable order numbering for existing orders, you can set order ID to start here. Set to zero to enable numbering for all orders.

3. Scroll down for more options.

4. If you want to add compatibility with WPNotif: WordPress SMS & WhatsApp Notifications plugin fixing the {{wc-tracking-link}} variable, then check the box for the WPNotif field.

5. In the Orders Renumerate Tool Options section, select the basis on which the order numbers can be sorted from the Sory by dropdown list.

6. Select the order in which the order numbers can be sorted from the Sort Ascending or Descending dropdown list.

7. Click Save changes.

The order numbers will be configured.

Renumerating Orders #

You can renumerate all existing orders using this option.

1. Navigate to WordPress Dashboard > WooCommerce > Settings > Booster > SHIPPING & ORDERS > Order Numbers.

The Order Numbers Module Options page will be displayed.

2. Scroll down to the end of the page, click Orders Renumerate in the Tools section.

The Orders Renumerate page will be displayed.

3. Click the Renumerate orders button. 

All the existing orders starting from order counter settings in Order Numbers module will be renumerated.

Resetting Order Numbers in WooCommerce #

To reset your order numbers in WooCommerce:

  1. Delete all orders, except just one order. 
  2. Navigate to your WooCommerce settings and select Custom Order Numbers. 
  3. In Sequential: Next Order Number, key in your desired order number. 
  4. Click Save Changes
  5. Click Remunerate Order Tool
  6. Finally, confirm the action.

Powered by BetterDocs