Magento 2 Custom order number

Magento 2 Custom order number, updated 7/4/24, 1:21 PM

categoryOther
visibility1
  verified

Take control of your order numbering system with the MageAnts Magento 2 Custom Order Number Extension. This powerful tool allows you to customize order numbers according to your business requirements, providing flexibility and organization in your Magento 2 store.

Key Features:

Customizable Order Number Format: Define and configure order numbers based on your preferred format, including prefixes, suffixes, and incremental digits.

Sequential Order Numbering: Ensure orderly and easy-to-track order sequences that align with your operational needs.

Enhanced Branding: Add unique identifiers or business-specific codes to distinguish orders and streamline internal processes.

User-Friendly Setup: Easily set up and manage custom order numbering through an intuitive admin interface.

Comprehensive Compatibility: Compatible with other Magento 2 extensions and functionalities.

Optimize your Magento 2 store's order management with the MageAnts Custom Order Number Extension. Improve organization, enhance workflow efficiency, and maintain consistency in your order processing with tailored order numbering solutions.

About MageAntsStore

MageAnts is your trusted partner of Magento Custom DevelopmentHyvä theme development solutions provider. Put your trust in us to create an online presence for you. Let us bring you into the digital age to embark on an incredible journey. Enhance your Magento store with our Magento 2 extensions & extend store functionality.

Tag Cloud



Custom order number – Magento 2
USER MANUAL
Supported Version: 2.0, 2.1, 2.2, 2.3
www.mageants.com support@mageants.com 1
Table Of Contents
Preface ......................................……………………………………......3
Installation...................................………………………………………..4
Option 1: Magento 2 install extension using COMMAND LINE .........…………..…..4
Option 2: Magento 2 install extension manually ………………………………….......5
Backend Example ………………………………………………………...……...6

Extension configuration………………………………………………………...6


www.mageants.com support@mageants.com 2

Preface:
- Magento 2 Custom Order Number is a useful extension that helps you
manage the order database in your store easily by customizing order
number, invoice number and all IDs of sale documents.
- Use custom order numbers for order related documentation
- Customize order number by creating a fexible format with letters and
various variables: Counter, Date, Random Number, Store id etc.
- Use order number as invoice, shipment and credit memo number or custom
the new numbering for them.
- Set number start, increments and number padding for Counter variable.
- Reset counter manually or confgure to reset daily, monthly, yearly

automatically.
www.mageants.com support@mageants.com 3
Installation:
There are two ways of installing extension in magento2.
1) Using COMMAND LINE.
2) Manually install extension.
Option 1: Magento 2 install extension using COMMAND LINE (Recommended).
Follow below steps to install extension from the command line.
Step 1: Download the extension and unzip it.
Step 2: Upload it to code directory in your magento installation’s app directory.
If code directory does not exists then create.
Step 3: Disable the cache under System → Cache Management.
Step 4: Enter the following at the command line:
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
Step 5: Once you complete above steps log out and log in back to the admin
panel and switch to Stores → Configuration → Mageants → Custom order
number. The module will be displayed in the admin panel.
www.mageants.com support@mageants.com 4
Option 2: Magento 2 install extension manually.
Step 1: Download the extension and unzip it.
Step 2: Upload it to code directory in your magento installation’s app directory.
If code directory does not exists then create.
Step 3: Disable the cache under System → Cache Management Edit
app/etc/config.php file and add one line code:



‘Mageants_customordernumber’ → 1
Step 4: Disable the cache under System → Cache Management
Step 5: Once you complete above steps log out and log in back to the
admin panel and switch to Stores → Configuration → Mageants →
Custom order number, the module will be displayed in the admin panel.
www.mageants.com support@mageants.com 5
Backend Example
- After Installation of Extension login to magento admin panel to set
configuration of the extension.
Extension Configuration
As per below screen shot you can set all the settings here.
Go to Stores → Configuration → Mageants → Custom Order Number,
to specify general extension Configuration.
Enabled - choose Yes to enable the extension.
Custom Order Data Configuration
To confgure custom order number expand the Order Number Set-
tings section.
www.mageants.com support@mageants.com 6
Order number format
Enter a format containing letters, numbers as well as variables for
the order number.
The variables that you can add to the order number format.
-{counter} for counter
-{rand} for generate random number
-{store_id} for store id
-{store_name} for store name
-{yyyy} for full year display
-{yy} for shortened year display
-{m} for short month display
-{mm} for full month display
-{d} for short day display
-{dd} for full day display
{counter} variable Configuration
Counter Start From - enter a number to set which number the
{counter} variable begins counting.
Counter Increment By - enter a number to set the {counter}
variable increases by for every new order.
Counter Number Padding - set the total of digits for
counter
order numbers. For example set the 6 padding and counter
number is 369 then create order number is 000369.
Reset Counter Number - set option to reset counte Variable au-
tomatically. There are three option is Each Day, Each Month and
Each Year.
Reset - click on reset button then reset the counter variable im-
mediately.
www.mageants.com support@mageants.com 7
Custom Invoice Data Configuration
To confgure custom invoice number expand the Invoice Number Set-
tings section.
Similar to Order Number -
Choose Yes to use the invoice number same asthe order number. You can
replace letters in order number format.
Note :- you can’t replace the variable in order number format Invoice
Prefii - enter a letters of order number format to which one you want
to replace with order format.
Replace in order number - enter latter that you want to re-
place.
if you want Choose No then not use the invoice number same as the
order number. you can customize invoice number same as order
number setting.
www.mageants.com support@mageants.com 8
Custom Shipment Data Configuration
To confgure custom shipment number expand the Shipment Number
Settings section.
Same as Custom Invoice Data Configuration
www.mageants.com support@mageants.com 9
Custom Creditmemo Data Configuration
To configure custom creditmemo number expand the
Credit-
memo Number Settings section.
Same as Custom Invoice Data Configuration
Sales Order Grid
www.mageants.com support@mageants.com 10

Sales Invoice Grid
Sales Shipment Grid
www.mageants.com support@mageants.com 11
Sales Creditmemo Grid
www.mageants.com support@mageants.com 12
Thank you!
If you have any questions or feature suggestions, please contact us
https://www.mageants.com/contact
Your feedback is absolutely welcome!
www.mageants.com support@mageants.com 13