Custom Order Number for Magento 2

Easily manage your store documents numbering using prefixes and custom starting numbers. Fluently change counter increment step to protect your business data from competitors and attract more customers.

  • Set custom starting numbers for all order documentation
  • Hide business data in the customer area using increment intervals
  • Add prefixes and postfixes to Magento 2 order numbers
  • Adjust numbers to your local jurisdiction requirements
  • Hyva-compatible by default
  • New!Hyvä Checkout ready
Add to Wish List
Product updates and support for 12 months

Updates and support prolongation - $95

more info

Pick a combo deal with 15% discount:

Save $62.55

Win customers appreciation and easily manage order numbering

Store owners often need to change Magento 2 order numbers either for customer convenience or to keep business information safe. In such cases, they need specific functions because native Magento numbering is not very convenient. With custom order module store owners can easily customize invoices, shipments, orders and credit memos according to their needs.

Attract New Clients Using Order Numbers

It’s not a secret that customers are more likely to buy items in big and trusted shops that have lots of buyers. Very often people can judge about your sales volumes by the order numbers. With Magento 2 custom order number extension you can easily change starting order numbers and set custom Magento 2 invoice numbers by adding relevant prefixes and increment steps.

Easily meet your local invoice numbering requirements

With the help of the Magento 2 custom invoice number module you can set necessary invoice numbering that meets jurisdiction requirements of your country or region in a couple of clicks.

Fluently migrate from another webshop to Magento

When you move from another e-commerce platform to Magento you often need to adjust order numbering. In this case, you just need to set order starting numbers and implement them for the new site. See how to migrate all your data to Magento 2 securely.

Keep Your Business Info Private

Hide real order numbers from competitors

Thanks to Counter Increment Step option you can change the real numbers of consecutive orders to display in the customer area. E.g. when increment of 4 is set, it means that if the first order has id 1, the second one will have id 5.

Make sure your business data is kept secure.

Specify order numbers

The module enables you to set Magento 2 custom order numbers manually. If you specify the starting number and an increment step, the module will change all order numbers respectfully. Using this feature you can keep real order numbers only for internal use.


Customizable Order Documentation


Change number prefix

With the help of Magento 2 order prefixes and postfixes you can easily change number settings for the orders, invoices, shipments and other order documentation.

Customizable order number padding

You can implement a certain length for the order numbers to make them easy to perceive. E.g. if you set a padding as 4 it means that all your Magento 2 order numbers will have four symbols. Therefore, if you have an order starting with 2, its number will be 0002. Using this option you can easily export all your store data to CRM system.


Increase the chances for your emails to be actually delivered to customers

Send reliable emails from popular hosting services and reduce the possibility to get into spam with the magento custom smtp extension.

How to Add a Prefix to the Order Number in Magento 2?

  • Install the extension.
  • Complete the General configuration of the module by going to the Store > Configuration > Amasty Extensions > Order Number.
  • Configure the shown fields.
  • Go to the Invoice Data Configuration section and configure 4 fields in this section.
  • A prefix is specified according to the type of chosen document in the eponymous section. The same numbers will be applied to all Magento 2 orders.

How to Change the Order Number in Magento 2?

  • Go to Store > Configuration > Order Number and open the Order tab.
  • Configure Number Format, Counter Increment Step, Counter Padding, and Reset Counter on Date Change.
  • If needed, set the same Magento 2 order number or create a custom one in the Start Counter From field and Reset Order Counter.
  • When ready, save the changes.

According to the statistics, Magento 2 Random Order Number can cover each business need in synergy with the following solutions: magento 2 delete orders and magento 2 custom invoice.


To add a prefix to Magento 2 order number, install the extension. Then, go to Store > Configuration > Amasty Extensions > Order Number and expand the Order section. In the Number Format field, you can set up the order number according to your needs.

magento 2 add prefix to order number
Adobe partner logo
Magento Marketplace logo
See 500+ verified reviews
1 Single points of sales
Trusted by Customers
Are Amasty extensions compatible with all themes and extensions by other vendors?
Amasty extensions work with all plugins we issued and with most 3rd-party plugins. If you come across a Magento 2 compatibility issue with any third-party module, we’ll definitely try to help you. If you face any technical issues, please create a ticket...
Will I get free support and updates?
Product updates for extensions purchased before Feb 1, 2022With the transition to product subscriptions, you will receive product updates for all extensions purchased before Feb 1, 2022 throughout the entire grace period — up to Aug 1, 2022. If you ...
Do you have the installation service?
Yes, you can use installation and configuration services that are available as the part of Pro and Premium add-ons for your product subscriptions.Please note that this installation service doesn’t include uninstallation. So, if you need to completely...
Can I request a free trial?
Amasty doesn’t provide any trials of Magento extensions. There's one exception: Amasty extensions are provided for testing or demo purposes to our official Platinum Partners as a part of the “access to Amasty extensions for testing purposes with Composer...
Can I test an Amasty extension on a staging site before transferring it to a live one?
Yes, you can install any Amasty extension on a test site and configure all the settings there before doing it on your live store.
How can I get a refund?
Amasty offers to its Customers a thirty (30) day money-back guarantee for the Software. In case the acquired extension didn’t meet your expectations, our support team is always ready to help you. Fees for support subscriptions and any services provided...
How can I receive a discount?
We are now working at a loyalty program for our customers that is supposed to bring even greater benefits in the long term. While it’s not out yet, you can look through these Special Offers. New discounts and specials are added every month. To stay ...
How to update a Magento 2 Amasty extension?
To update a Magento 2 extension by manual upload:1. log in to the customer account;2. navigate to the Products tab, scroll to the packages section, and click the Download link next to the extension that should be updated;3. Important: If some extension...
If I need additional features to be added to an Amasty extension, how can I ask for it?
To leave your feature request, log in to your customer account and open the Products tab. Then, scroll down to the bottom of the page, and leave your feature request in the following form: As soon as you send your request, it is considered by our ...
Magento 2 Amasty extensions installation
Each Amasty extension package is provided with the extension files, installation & setup guides, and a license agreement. Some extensions include import files examples as well. So how to install our Magento extension? What is the plugin...
How can I prolong support?
If you have an active support service subscription, it grants you access to support services for all products purchased before Feb,1 as long as your subscription is active. Alternatively, support services are only available as the part of a product ...
Can I change the EE extension to CE for free?
Usually, no, you can’t exchange modules. Please, contact our support managers and they’ll consider your case individually. → Learn more about our special offers
How can I get a discount to re-purchase plugins?
Usually, we don’t provide any discounts. But you can contact us, and we’ll consider your case individually. → Learn more about our special offers
What is the license policy? On how many websites can I use Amasty extensions?
Our license allows you to use a single extension license agreement on one Magento installation.If you run several domains on the same instance of Magento, you can use one extension license. However, if you run each website on a new installation of Magento...
How can I pay for Amasty extensions?
You can pay for our extensions in any convenient for you way as a full range of payment methods are supported. The most common means are credit card or PayPal. Security and fraud protection are guaranteed. If you need to pay for the order with a non...
Customer Reviews

Do you need specific features added so you can achieve your business goals?

Drop us a line and we'll customize this extension for you!

You can always download the recent version free of charge from your account installing an upgrade is easy

See Magento (and other software) versions we support and guarantee their compatibility with our extensions

Version 1.1.11
Last Update: Nov 24, 2023
1.1.11 - Nov 24, 2023
  • 1.1.11
  • Fix we fixed Column 'updated_at' cannot be null error that occurred while placing orders with custom order number
  • Fix we resolved the Unique Constraint Violation error appearing on order creation
1.1.10 - Mar 30, 2023
  • Fix we fixed the error that appeared when Reset Counter on Date Change was set to Each Year
  • Fix we improved the random number format to ensure it doesn’t affect the length of the order number
1.1.9 - Sep 01, 2022
  • Compatibility now the extension is compatible with Magento 2.4.5
  • Fix we fixed the issue with the ‘store’ variable that occurred with multiple websites
  • Fix we resolved the problem with creating orders from backend on multi-store environment
1.1.8 - Apr 22, 2022
  • Compatibility now the extension is compatible with PHP 8.1
1.1.7 - Nov 11, 2020
  • Fix we fixed the issue with increment_id updating on object save
1.1.6 - Oct 15, 2020
  • Compatibility now the extension is compatible with Magento 2.3.6 and 2.4.x
  • Compatibility compatibility with Amasty Admin Actions Log was enhanced
1.1.5 - Jun 18, 2020
  • Fix we added a check for entity type for sequence plugin
  • Fix we resolved the problem with the processing of the ‘country_code’ variable
  • Fix we fixed the issue with the replacing of the ‘country_code’ variable in orders
  • Fix we resolved the problem with the creation of invoice, shipment and credit memo
  • Fix we added an option to use only ‘counter’ in the order number pattern
1.1.4 - May 22, 2020
  • Improvement we reviewed and enhanced the code of the extension. Now the process of order placement is significantly advanced.
1.1.3 - Jan 28, 2020
  • Fix we solved the problem with the same numbers for orders that were placed at the same time
1.1.2 - Jun 11, 2019
  • Fix the error `The requested store wasn't found. Verify the store and try again.` was resolved
1.1.1 - Oct 26, 2018
  • Fix the issue with the error after updating the extension was resolved
1.1.0 - Oct 03, 2018
  • New the new variable {country_code} is available for custom order number. A country from the shipping address will be used for generating the country code to the order number
Version 1.0.8
Last Update: Jun 18, 2018
1.0.8 - Jun 18, 2018
  • Fix the issue with increasing the order number after the invoice or shipment creation was resolved
1.0.7 - May 22, 2018
  • Fix the problem with getting LastIncrementId was resolved
1.0.6 - Mar 15, 2018
  • Fixed an issue with the counter when the order was placed in other days
1.0.5 - Dec 26, 2017
  • Compatibility with the Amasty Multi Warehouse Inventory extension was added
1.0.4 - Nov 14, 2017
  • Fixed issue with Same as Order Number setting
1.0.3 - Oct 26, 2017
  • Fixed an issue with reset counter: now the counter doesn't reset if this option is not enabled in settings
1.0.2 - Aug 02, 2017
  • Fixed the problems during the order, invoice and shipment creation
  • Code Refactoring
1.0.1 - Aug 01, 2016
  • Fix for passing order ID to PayPal

Ratings & Reviews

95% of 100