Magento 2 extension

Custom Order Number

Replace the default nine-digit numbers of orders, invoices, shipments and credit memos with numbers in your own format, for example ORD-2026-00012. Each document type has its own format and counter, and invoices, shipments and credit memos can take the number of the order they belong to.

$25 one-time licence

What it does

Replace the default nine-digit numbers of orders, invoices, shipments and credit memos with numbers in your own format, for example ORD-2026-00012. Each document type has its own format and counter, and invoices, shipments and credit memos can take the number of the order they belong to.

Replace the default nine-digit numbers of orders, invoices, shipments and credit memos with numbers in your own format, such as ORD-2026-00012, that are easier to read and quote. In its section under Stores > Configuration you switch on a custom number per document type and write a format from text and variables such as {counter}, {yyyy}, {mm} or {store_code}. Each type has a counter with a start value, step, zero padding and an optional daily, monthly or yearly reset, kept per store view, per website or globally. Invoices, shipments and credit memos can follow their order instead, so ORD-2026-00012 becomes INV-2026-00012. Numbers are never given twice, and the new numbers appear wherever the default ones did, in admin grids, My Account, emails and PDFs. Settings can differ per website and store view. For example, a shop with two store views can give each its own prefix and counter.

Features

  • Custom number format for orders, invoices, shipments and credit memos
  • Variables for counter, year, month, day, store ID and store code
  • Counter with a start value, a step and zero padding to a fixed length
  • Counter reset every day, month or year, or never, in the time zone of the store view
  • One counter per store view, per website, or one global counter
  • Follow the order number: ORD-2026-00012 becomes INV-2026-00012, and a second invoice of the same order gets -2
  • Different settings per website and store view
  • A number is never given twice: the counter is locked while a number is taken
  • Existing documents keep their numbers; switching the feature off returns to the default numbers

Screenshots

Custom Order Number screenshot 2
Custom Order Number screenshot 3

Installation

After purchase you get the package and the PDF user guide. Install it with Composer, or ask us to install it for you:

composer require modvanta/module-custom-order-number
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:flush

Custom Order Number: questions

Which Magento versions does Custom Order Number support?

Magento Open Source and Adobe Commerce 2.4 (developed and tested on 2.4.9), with PHP 8.1 to 8.5 and Luma-based themes. If your store runs Hyva or a headless front end, tell us first and we check it before you buy.

How much does Custom Order Number cost?

$25 as a one-time payment for one Magento installation. You get the full source code and a PDF user guide. There is no yearly fee.

How do I install Custom Order Number?

With Composer: composer require modvanta/module-custom-order-number, then bin/magento setup:upgrade. We can also install and configure it on your store.