Magento2 custom order prefix: This 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, 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 –
- 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.
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.
The admin needs to transfer this app folder into the Magento2 root directory on the server as per the below image:
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:
For Multilingual support, the admin needs to navigate through Store > Configuration > General > Locale Options and select the desired language from the Locale option.
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.
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:
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.
- 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.
- Now, the admin can see the set prefix of the order Ids on under the Order Section. For the reference see the below image.
The Order Id will be visible to the customer as well, under “My orders” in the account section, as per the below image:
- In the Invoice section, the admin can see the invoice Ids added with the prefix.
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.
- The prefix set for the Shipment IDs by the admin can be visible in the Shipment section in the admin panel.
Now, the same shipment Id will be visible on the customer end as well as per the below image:
- At the Credit memo Page, the admin can see the set prefix for the credit memo IDs –
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:
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.0
Supported Framework Version - Magento 2.0.x, 2.1.x, 2.2.x,2.3.x, 2.4.x