Back to Top

Custom Order Prefix for Magento 2

Updated 2 April 2024

Magento2 custom order prefix module is the single best module and super useful when the admin wants to add the prefixes to an Order ID, Invoice ID, Shipment ID, and Credit Memo ID from their end.

The admin can set the prefix in any form as it supports numeric, alphanumeric, and alphabetic prefixes.

Check the plugin at work at the storefront and the initial configuration settings in the admin backend panel for the Magento 2 custom order prefix plugin –

Features

  • The admin can add the custom prefix for the order IDs.
  • The prefix of the shipment IDs can set by the admin.
  • A prefix for invoice IDs can also set by the admin end.
  • The admin can add the custom prefix for the credit memo IDs.
  • The custom prefix can set in the form of numeric, alphabetic, or alphanumeric.

Installation

The admin will get a zip folder, and they have to extract the contents of this zip folder on their system.

The extracted folder has an src folder, inside the src folder the admin will find the app folder.

Searching for an experienced
Magento 2 Company ?
Find out More

The admin needs to transfer this app folder into the Magento2 root directory on the server as per the below image:

Custom Order Prefix for Magento 2

After the successful installation, the admin has to run the following commands on Magento2 root directory:

First command –

php bin/magento setup:upgrade

Second Command –

php bin/magento setup:di:compile

Third Command –

php bin/magento setup:static-content:deploy

After running the commands, the admin has to flush the cache from Magento admin panel by navigating through, System->Cache management as shown below:

flush_cache

Multi-Lingual Configuration

For Multilingual support, the admin needs to navigate through Store > Configuration > General > Locale Options and select the desired language from the Locale option.

change-language-magento-2-locale

Language Translation

For translating the module language, navigate through src/app/code/Webkul/CustomOrderPrefix/i18n and edit the en_US.csv file.

Thereafter, rename the CSV as “en_SA.csv” and translate all right side content after the comma in the Arabic language. After editing the CSV, save it.

Then upload it to the path src/app/code/Webkul/CustomOrderPrefix/i18n where the Magento2 is installed on the server. The module gets translated into the Arabic Language. It supports both RTL and LTR languages.webkul-magento2-paytabs-sadad-payment-multilingual

Admin-End Configuration

After the successful installation of the module, the admin will configure the module by navigating through Stores -> Configuration -> Webkul -> Add Prefix as per the below image:intial-configuration

You can also access the initial configuration by navigating Custom Order Prefix->Configuration Settings.

intial-configuration-setting

The admin can configure the Add Prefix settings as under: 

Order Id Prefix- The admin can set the prefix for order Ids from the back-end.

Invoice Id Prefix- Here the admin can enter the prefix for Invoice Ids.

Shipment Prefix- The prefix for shipment Ids can be set here by the admin from the back-end.

Credit Memo Id Prefix- The admin can enter the prefix for credit memo Ids.

**Note:

  • In case the admin doesn’t want to set any prefix, then admin can set the value of that field as null (Blank).

The admin sets the prefix of all the Ids as shown in the image below.

congi-2

  • Now, the admin can see the set prefix of the order Ids on under the Order Section. For the reference see the below image.

webkul-magento2-Custom-order

The Order Id will be visible to the customer as well, under “My orders” in the account section, as per the below image:

webkul-magento2-Custom-order

  • In the Invoice section, the admin can see the invoice Ids added with the prefix.

webkul-magento2-Custom-invoice

The Invoice Id will also be visible in the invoice section of the order in the customer’s account as well, as shown in the below image.

webkul-magento2-Custom-invoice

  • The prefix set for the Shipment IDs by the admin can be visible in the Shipment section in the admin panel.

webkul-magento2-Custom-shipment

Now, the same shipment Id will be visible on the customer end as well as per the below image:

webkul-magento2-Custom-shipment

  • At the Credit memo Page, the admin can see the set prefix for the credit memo IDs –

webkul-magento2-Custom-credit-memo

The same credit memo Id will be visible to the customers as well under Refunds section in the order details.

As per the below image:webkul-magento2-Custom-credit-memo

That’s all for the Custom Order Prefix for Magento 2, still, have any issue feel free to add a ticket and let us know your views to make the module better at webkul.uvdesk.com

Current Product Version - 4.0.3-p1

Supported Framework Version - Magento 2.0.x, 2.1.x, 2.2.x,2.3.x, 2.4.x

Blog Version - Magento 2.0.x, 2.1.x, 2.2.x,2.3.x, 2.4.x
  • Version 2.0.x, 2.1.x , 2.2.x , 2.3.x
  • Version 2.0.x, 2.1.x , 2.2.x , 2.3.x, 2.4.x
. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Back to Top

Message Sent!

If you have more details or questions, you can reply to the received confirmation email.

Back to Home

Table of Content