MageWorx Custom Order Number for Magento 2

- E-Commerce, Magento 2

Online merchants might face particular situations when they need to modify the standard number format on order-related documents. It may be related to protecting business information, meeting local legal requirements, or making documents look more customer-friendly. In case of default Magento 2, setting custom numbers for orders, invoices, credit memos, and shipments is not possible. So, you will need to install a third-party module if you want to leverage this functionality.

Today, we present a solution that brings improvements to the native Magento numbering scheme – the MageWorx Custom Order Number Magento 2 extension. The module overcomes the limitations of the default platform’s version by providing store owners with flexible templates that can be applied to customize all types of sales docs. This way, you can significantly improve orders management, keep confidential business data safe, and increase the user-friendliness of your store documentation.

Below, we provide a more detailed description of the Magento 2 custom order number module and look at its backend configuration.

Download / Buy MageWorx Custom Order Number Magento 2 Extension


  • Custom order number templates for each type of document;
  • Custom prefixes in any part of the order number;
  • Multiple dynamic variables can be included in the number;
  • Possibility to customize the counter increment step;
  • Order number padding;
  • Ability to adjust document numbers to specific invoicing regulations.

Custom Order Number for Magento 2 enables ecommerce owners to organize their business documentation in a more efficient way using flexible templates. With the module, it is possible to create separate templates for order, invoice, credit memo, and shipment documents. This way, the extension provides the ability to assign custom numbers to each type of order-related docs by setting just a few options in the Magento Admin. As a store manager, you decide whether to apply custom order number to all other related documents or set different numbers for invoices, shipments, and credit memos.

To differentiate your sales documents, you can add custom prefixes to the order number. Moreover, it is possible to replace any part of the order number with a specified suffix. Thus, you will help your store admins quickly identify the documents they are dealing with and streamline order processing. Besides, you can include text, as well as any combination of letters and digits in the documents numbers.

Furthermore, the Magento 2 module allows including dynamic variables in the numbers. This way, you can add the date and store ID variables of various formats to quickly identify when and where an order was placed. It is also possible to generate random digits and letters and utilize the counter variable. This way, you increase the convenience of order management for your store admins, as well as make your documentation more customer-friendly.

As for the counter, the extension lets users set a custom increment step, thus changing the regular succession of order numbers. You can leverage this feature to hide real order numbers and protect your business data. With custom counter increments, you can be assured that your competitors won’t be able to estimate your sales turnover. For example, if you specify 5 for the value of the number increment and your first order has ID 1, the following order will get ID 6. Besides, modified starting order numbers can also act as evidence of lively shopping with lots of customers and attract more potential clients to your store.

The Magento 2 Custom Order Number extension also helps you deal with local regulations on the invoice numbering. Some countries, especially those in the EU region, have quite strict requirements to the invoices number format. With the ability to specify any number for the issued order-related documents, you can easily comply with the specific rules of a country where you are selling your products.


All settings of the Magento 2 Custom Order Number extension can be found under Stores -> Settings -> Configuration -> Mageworx-> Custom Order Number. The configuration page is divided into 4 sections: Custom Order Number, Custom Invoice Number, Custom Shipment Number, and Custom Credit Memo Number.

In the first section, you enable/disable the template for new orders placed on your store. Next, you set a number format. In this field, you can use dynamic variables like {counter}, {storeID}, {yyyy}, {yy}, {mm}, {dd}, {rndNumbers}, and others. Here, you also specify a value for starting the counter and counter increment step. In the Counter Padding field, you can enter a value that will define the number of digits in the counter variable.

The next settings tab lets admins enable custom invoice templates. You decide whether to use the same number as for the orders or create a new template. If you choose order number template for invoices, you can enter a prefix and specify where it should be added in the number string. Alternatively, you can select a part of the order number to replace with the prefix.

If you want to set a new template for invoices, you will need to go through the same configuration steps as in the case with orders.

The Custom Shipment Number and Custom Credit Memo Number sections offer the same options as in the previous tabs.

Final Words

MageWorx Custom Order Number for Magento 2 is a necessary tool for merchants who want to leverage the enhanced functionality related to modifying native numbering of sales documents. By setting custom numbers for orders, invoices, shipments, and credit memos, you can classify your order documentation and improve document management. Also, you will provide a better impression on your customers and hide important business data from competitors. You can get the described above improvements to the native Magento 2 numbering scheme for only $99.

Download / Buy MageWorx Custom Order Number Magento 2 Extension