This article addresses some of the frequently asked questions about using the Flexi Custom Order Numbers for WooCommerce plugin.
Is it possible to set random numbers for the custom order number?
Yes, it is possible to set the random numbers for the custom order number. Custom Order Numbers can be set in three different ways – Sequential, Random or by Order ID.
Is it possible to reset the custom order number counter?
Yes, it is possible to reset the counter number. You can reset the counter number in four different ways- daily, weekly, monthly and yearly basis. There is also an option to set a number for reset counter value. This would mean that on every reset, the sequence will start with that particular number.
How can I use custom order numbers instead of default WooCommerce order numbers in third-party plugins like Invoice plugins, Integration plugins, etc.?
When you use the Custom Order Number PRO plugin, in the Database, the original Order ID created by WooCommerce remains unchanged because that Order ID is used for many core functions and by multiple plugins and themes. To use custom order numbers in a third-party plugin, you will have to contact the Support Team of the third-party plugin & ask them to make the necessary changes. They can do this by fetching the Order ID and using the below code for Custom Order Number. This code has to be used in place of where the Order ID is fetched as shown below: $custom_order_number = $order->get_order_number(); //where $order is an order object.
Can I set the width for the custom order numbers, for example, I want my custom order number to be 8 characters long?
Yes, there is an option available to set the width of the custom order number on the settings page.
If somehow the sequential order number breaks down, what should be done to put all orders in a correct sequence?
Custom Order Numbers plugin has a tool called ‘Renumerate Orders’. Using this tool, you can easily renumerate all the existing orders in a correct sequence.
Is it possible to add prefix/suffix based on different user roles?
Yes, you can add a prefix/suffix based on different user roles. For eg: guest-order for Guest user role, etc.