blueprint3d / module-date-order-numbers
Date-based order, invoice, shipment and credit memo numbers for Magento 2 (e.g. 20261112-001) that restart every day, with optional random suffixes and shared document numbers.
Package info
github.com/BluePrint3D-Dev/module-date-order-numbers
Language:HTML
Type:magento2-module
pkg:composer/blueprint3d/module-date-order-numbers
Requires
- php: >=8.1.0 <8.6.0
- magento/framework: *
- magento/module-config: *
- magento/module-quote: *
- magento/module-sales: *
- magento/module-sales-sequence: *
- magento/module-store: *
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Replaces Magento's 000000123 order numbers with readable, date-based ones such as 20261112-001. The count restarts every day, in the store's own timezone.
🛑 The Problem
Magento's default numbers (000000123) tell you nothing at a glance, give away how many orders a store has ever taken, and are easy to mix up between stores.
🛠️ The Solution
Orders, invoices, shipments and credit memos get numbers built from the date plus a daily counter (or a random suffix), with an optional prefix per document type and per store view.
✨ Features
- Sequential or random:
20261112-001,-002… or20261112-4827. Random hides how many orders you take each day and never repeats within a day. - Shared document numbers: order
20261112-003gets invoice20261112-003; a second partial invoice gets20261112-003-2. Or give each document type its own daily counter. - Prefixes and formats: optional prefix per document type (e.g.
FW-,INV-), date format, separator and number length. - Per store view: one store can use it while another keeps Magento's defaults.
- Safe under load: numbers are issued with a single atomic database statement.
- Midnight-proof: a basket that reserved yesterday's number and pays after midnight is renumbered with the day it was placed.
📦 Installation
composer require blueprint3d/module-date-order-numbers bin/magento module:enable BluePrint3D_DateOrderNumbers bin/magento setup:upgrade bin/magento setup:di:compile bin/magento cache:flush
⚙️ Configuration
- Go to Stores > Configuration > BluePrint3D > Date Order Numbers. It ships switched off.
- Enable it for the store views you want, then choose sequential or random, shared or separate document numbers, and any prefixes.
💡 Good to Know
- Only new orders and documents are affected. Existing numbers never change.
- Invoices, shipments and credit memos for orders placed before you enabled the module keep Magento's normal numbering.
- Magento limits numbers (
increment_id) to 32 characters. - Payment, shipping and marketplace integrations that read the order number get the new value automatically.
📖 Documentation
Full setup guide: Date Order Numbers Setup Guide.pdf.
📜 Licence & Support
Copyright © 2026 BluePrint3D Ltd. All rights reserved.
Free to use on personal and commercial stores. Resale, redistribution or sublicensing of this source code, modified or unmodified, for direct financial gain is prohibited. Full terms in LICENSE.txt.
- Website: blueprint3d.dev
- Support: support@blueprint3d.dev
- Company: BluePrint3D Ltd, Company No. 13473806