Magento2 – Custom Admin Button to Sales Order View Without Plugin

Spread the love

Print Friendly, PDF & Email

Add Custom Admin Button to Sales Order View Without Plugin Magento2

custom-admin-button-magento2

We have already posted an article on adding a Custom Admin Button to Sales Order View by using a plugin

In this, We will create the Custom Admin Button without using the plugin.

Let’s have a look into code

Step 1: Create a sales_order_view.xml file in <vendor>/<module>/view/adminhtml/layout/sales_order_view.xml

Step 2: Create a file in <vendor>/<module>/Block/Adminhtml/Order/View/Buttons.php

You may Like this :

Then, Run the cache flush command:

Now, You can check the order view.

Check out our Latest Magento Posts


Spread the love

Leave a Reply