Search by

blueprint3d / module-date-order-numbers

stu583

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

Documentation

Language:HTML

Type:magento2-module

pkg:composer/blueprint3d/module-date-order-numbers

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.2 2026-11-13 13:10 UTC

This package is auto-updated.

Last update: 2026-11-21 23:06:16 UTC


README

Magento 2.4.x PHP 8.1–8.5 Licence

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 … or 20261112-4827. Random hides how many orders you take each day and never repeats within a day.
  • Shared document numbers: order 20261112-003 gets invoice 20261112-003; a second partial invoice gets 20261112-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

  1. Go to Stores > Configuration > BluePrint3D > Date Order Numbers. It ships switched off.
  2. 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.