The Home for Magento 2 Excellence

Quality-tested Magento 2 modules. Explore. Evaluate. Elevate. #magento2

748 Modules
496 Ready
245 Need Help
🏆 Leaderboard
Stable v4.0.2

Magento 2 Same Order Number by Mageplaza

mageplaza/module-same-order-number

Sets Invoice, Shipment, and Credit Memo IDs to match the original Order ID. Adds a suffix for multiple documents of the same order.

23,657
Downloads
Below average
7
GitHub Stars
Below average
9mo ago
Last Release
2
Open Issues
Build Passing
Ready to install

Build Tests

Composer Install
DI Compile
Templates

Code Quality

CS Coding Standard
72 warnings
PHPStan Failed

Tested on Magento 2.4.8-p4

Recent Test History

Each release is tested against the latest Magento version at that time.

v4.0.2 on Magento 2.4.8-p4
Mar 21, 2026
v4.0.2 on Magento 2.4.8-p3
Dec 28, 2025

Share This Module's Status

Magento 2 Same Order Number by Mageplaza Magento compatibility status badge

README

Loaded from GitHub

Magento 2 Same Order Number Free Extension

Magento 2 Same Order Number Extension by Mageplaza allows store owners to easily create the ID of Invoice, Shipment and Credit Memo the same as the ID of the original Order. This will significantly contribute to a well-managed order information system.

1. Documentation

2. FAQs

3. How to install Magento 2 Same Order Number Extension

  • Install via composer (recommend)

Run the following command in Magento 2 root folder:

With Marketing Automation (recommend):

composer require mageplaza/module-same-order-number mageplaza/module-smtp
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

Without Marketing Automation:

composer require mageplaza/module-same-order-number
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

4. Highlight Features

Automatically same order ID update for billing documents

Magento 2 Same Order Number by Mageplaza helps create the ID number for billing documents, associated with the ID of the original order after customers purchase. Documents that are possible to be set with the same order number are Invoice, Shipment and Credit Memo.

Automatically add the extra suffix

In case there are more than one Shipments, Invoices or Credit Memos for a single Order, the system will automatically create an extra suffix for the next shipments, start from the second one. For instance, Order ID is #100, the ID of Invoice will accordingly be #100, and from the next one, the ID of the second Invoice will be #100-1, the third will be #100-2, and so on.

Billing documents united pack

The Invoice, Shipment and Credit Memo with the same increment IDs can be well displayed on the frontend. The united pack of billing documents allows both admin and customer to follow and track the order information easily and conveniently.

5. Full Magento 2 Same Order Number Features

For store owners

  • Enable/disable the module
  • Select billing documents (Shipment/Invoice/Credit Memo) to set ID according to the Order ID
  • Create an extra suffix for multiple billing documents of a single Order
  • Be compatible with any payment methods that create automated invoices
  • Work well with Mageplaza PDF Invoice

For customers

  • Easy to follow and manage the relationships among billing documents
  • View the record from the frontend, from the customer's login account.

6. Same Order Number User Guide

Login to your Magento Admin Panel, navigate to Store > Settings > Configuration > Mageplaza Extensions > Same Order Number.

6.1. Same Order Number General Configuration

  • Enable: Select Yes to activate the extension
  • Apply for: Choose the billing documents to apply the extension. It is possible to apply to Invoice, Shipment and Credit Memo at the same time.
    • Apply to Shipment: ID increment of Shipment will be configured the same as ID of the Order. In case there are more than one Shipments for a single Order, the system will automatically create a following suffix for the next shipments, start from the second one. For instance, Order ID is #003, the ID of Shipment will accordingly be #003, and from the next one, the ID of Shipment will be in a format as follow: #003-1

  • If you do not enable Same Order Number for Shipment ID, the ID of Shipment will be set as default.

    • Apply to Invoice: The ID of the Invoice will be set according to the Order ID.

      • Same Order Number is also possible to create Invoice ID automatically when purchasing via Paypal.

      • In case there are more than one Invoices for a single Order, ID of every next invoice will be added with an extra suffix. For example, when the ID of Order is Order #003, the Invoice ID will be #003 and the second Invoice will be #003-1.

  • If you do not enable Same Order Number for Invoice ID, the ID of Invoice will be set as default.

    • Apply for Credit Memo: ID of Credit Memo will be set according to the Order ID. For Order that have more than one Credit Memos, ID of every next Credit Memo will be automatically added with a suffix. For example, ID of the Order is #003, ID of the Credit Memo will be #003, and the second Credit Memo ID will be #003-1.

  • If you do not enable Same Order Number for Credit Memo ID, the ID of Credit Memo will be set as default.

6.2. Configuration for multi-stores

  • Stores will be set as Default Config.
  • To configure the extension for each store, go to Store View > Store. Next, uncheck the box Use Website of each option.
  • The configuration of each store will only be available right on that store, other stores are still unchanged.

6.3. Frontend

6.3.1. Invoice after being applied Same Order Number Extension:

6.3.2. Shipment after being applied Same Order Number Extension:

6.3.3. Credit Memo after being applied Same Order Number Extension:

Other free extension on Github

Get more Magento 2 extension on Marketplace:

This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.