Web Analytics

Fill the form & Get Installation Support

How to add custom button on admin order view page in Magento2?

To add a custom button on the admin order view page, you need to create a before plugin for the PushButtons() method from the Magento\Backend\Block\Widget\Button\Toolbar class.

Create di.xml file under the adminhtml scope,
Path: app/code/Magemonkeys/OrderViewButton/etc/adminhtml/di.xml

create ToolbarPlugin.php
Path: app/code/Magemonkeys/OrderViewButton/Plugin/Block/Widget/Button/ToolbarPlugin.php

Output :

Fill the below form if you have any Magento programming need.

    Recent Articles

    Author Info

    Author Image

    Magento Certified Developer

    Hire J. Lakum

    Get a Free Quote

      /* second popup */

      Connect With Us