Customizing Magento Store is primarily a process of tailoring, amending or modifying Magento e-Commerce store and shopping cart in such a way that it meets your business requirements. Magento Backend is already packed with several options that allow you to manage store functionalities efficiently. Because every business is different in its requirements are deferred too.
In Ecommerce, an order is a key part of Business and the number of orders you have, the more information is gathered and stored inside your Magento database that you can easily access via the store backend. To collect only the required information in one place make your task easy. Recently, one of our customers wants to do the same where he wants to add the custom tab in the admin Sales Order view of Magento 2 and here is how we did it.
In the first step, we have to create “sales_order_view.xml” file inside our custom extension layout folder using below code.
app\code\Vendor\Extension\view\adminhtml\layout\

Now, we need to create one more file “View.php” using below code at this path.
app\code\Vendor\Extension\Block\Adminhtml\Orderedit\Tab

In the third and last step, we need to create a “Myorderinfo.phtml” file inside our view folder.
app\code\Vendor\Extension\view\adminhtml\templates\tab\view\
That’s it. Simply clear cache and you are done with adding custom tab in your Magento 2 Admin Sales Order View page.

That’s it for today, Let us know if you are facing an issue while implementing using this code by commenting below.

Happy Coding!

Click to rate this post!
[Total: 7 Average: 5]