automatic order number
-
Is it possible to automatically create an order number when creating an order?
-
Hi Rafal,
When you create a new order in the plugin admin, there is a field for you to just type in the order number. There is no option to have it automatically make an order number when you are creating the order manually. If you are placing the order from the front end of the site (premium feature), then it will automatically create an order number.
I use your plugin to handle service requests for mobile phones. A service employee adds an order (without a woocommerce). Is it possible to create a form in the front end of the site?
Hi rafal,
This is definitely possible, however it is a premium feature. If you have the premium version of the plugin, you can use the [customer-order] shortcode or the “Customer Order Form” Gutenberg block.
I have premium version. Please Tell me how i can do this.
Hi,
You can add a new page and place the following shortcode to show the “Customer Order” form.
[customer-order]Whenever this form is submitted an order would be created in the back-end and will automatically be assigned an order number.
Great, the order number is generated automatically. Can I set the order to be only numeric?
Hi rafal,
There is no option to alter how the automatic order number gets generated. After the order is created, if you’d like to change the order number, you can do so manually in the plugin admin.
Hi, when I entered the order through [customer-order] I can’t create orders manually.
In debug mode i have some errors when i enter new order manually:
NoFile in /home/rafzam/public_html/progsm.pl/wp-content/plugins/order-tracking/Functions/Update_Admin_Databases.php on line 73 Notice: Undefined variable: NoFile in /home/rafzam/public_html/progsm.pl/wp-content/plugins/order-tracking/Functions/Update_Admin_Databases.php on line 73 Notice: Undefined variable: NoFile in /home/rafzam/public_html/progsm.pl/wp-content/plugins/order-tracking/Functions/Update_Admin_Databases.php on line 73 Notice: Undefined variable: NoFile in /home/rafzam/public_html/progsm.pl/wp-content/plugins/order-tracking/Functions/Update_Admin_Databases.php on line 73 Notice: Undefined variable: EWD_OTP_db_version in /home/rafzam/public_html/progsm.pl/wp-content/plugins/order-tracking/Main.php on line 176 Notice: Undefined variable: EWD_OTP_db_version in /home/rafzam/public_html/progsm.pl/wp-content/plugins/order-tracking/Main.php on line 177
Notice: Undefined index: Order_ID in /home/rafzam/public_html/progsm.pl/wp-content/plugins/order-tracking/html/AddOrder.php on line 10
There is no option to alter how the automatic order number gets generated. After the order is created, if you’d like to change the order number, you can do so manually in the plugin admin.
I cant change the order number manually becouse i sent order number to client automaticly
As we mentioned, there is no option in the plugin to change the default order number sequence in the plugin. However, you can make changes in the core-plugin code, but we would recommend doing so only if you are comfortable in reading and writing the code.
The order number is generated and saved in the database by the “\Functions\Prepare_Data_For_Insertion.php” file. The order is accepted on the front-end by using the file “\Shortcodes\InsertCustomerOrderForm.php”. In the “\Functions\Prepare_Data_For_Insertion.php” file there is a function called EWD_OTP_RandomString() that generates the order number sequence. Within the function, you can replace the following line:
$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';with,
$characters = '0123456789';Please note that any changes that you make in the core plugin code will be overwritten when you update the plugin.
That notice normally happens because you either have nothing, or a non-numeric value, entered for the “Maximum Review Score” setting (in the “Basic” area of the “Options” tab).
Also, regarding the notices, it doesn’t affect any functionality until there are also error thrown by the plugin. “Notices” are merely for information purposes,mainly for developers to to now that these could cause potential issues in future and may not necessarily affect anything. If you disable the “WP_DEBUG” these notices would not show. If you see any error messages along with these notices, then that might be something that’s serious enough to break the plugin functionality.
The topic ‘automatic order number’ is closed to new replies.