Add custom widgets to product pages of your Magento-driven store Developed to meet the needs of almost any ecommerce business, Magento has many great features setting it apart from competitors.…
How to Configure a Custom Order ID Number in Magento 2
Order processing and management is an essential part of the sales lifecycle for any ecommerce business. Establishing an effective order document numbering practice contributes to order accuracy and so more efficient order fulfillment.
Most of the ecommerce platforms label orders automatically, assigning numbers to them by default. However, these default IDs sometimes fail to address store owners’ needs being too long or too short or lacking informational value. So, retailers look for a fast and easy way to create custom document ID numbers that would precisely meet their business requirements.
Luckily for Magento 2 driven stores, there is a specialized extension allowing to tackle this task with no effort. In this post, we show you how to configure unique IDs for orders using Custom Order Number for Magento 2.
Setting up a Custom Order ID in Magento 2
Log in to the Magento 2 Admin panel and access the extension’s settings tab by going to:
Stores > Settings – Configuration > Aitoc Extensions > Custom Order Number > General Settings
To set up new numbers for orders, make use of the available variables, which allow inserting a store code, random numbers, an order day or month, etc.
The extension allows creating different order ID numbers for each Store View you have.
Place the required variables in any order in the Order ID format field. This way you configure the final ID number exactly as you need. Numbers, letters, and symbols (hyphens and underscores) can also be used to add custom prefixes, suffixes, and postfixes to the order IDs.
Here’s an example of how a newly created ID format may look like:
According to the ID format we set here, the order number will start from 748 and will include the month and the year of the order placement.
You can set up custom ID number formats for other sales documents too, including Invoices, Shipments, and Credit Memos.
If you still prefer using the default Magento ID format, leave the Order ID format field empty and enable the ‘Use Default’ field.
Once you have configured the settings, apply the created ID format by clicking the ‘Save Config’ button. Voila! The new order numbers will be instantly displayed on the Magento Order Grid:
Switching Back to the Default Numbering Format
In case you need to get back to the default order ID format, follow these two simple steps:
- Go to Stores > Settings – Configuration > Aitoc Extensions > Custom Order Number > General Settings
- Clear the Order ID format field
We hope that our tutorial will help you to number your sales documents and orders in the exact way you need.
Have any questions about Magento 2 Custom Order Number extension? Feel free to reach out to us at any time at firstname.lastname@example.org
Aitoc is a young team of passionate professionals delivering robust Magento 2 extensions. Founded in 2001, Aitoc has produced over 100 modules for clients worldwide. The company continuously evolves, now offering a full range of custom ecommerce development services.