This is a sample extension to show you how to include a custom button on the order view page within the adminpanel.
NOTE: This extension comes with two sample attributes. Make sure to modify them before installing the extension.
- Create the module structure app/code/Codealist/OrderViewButton
- Navigate to that repository
- Clone this repository
- Execute: php bin/magento setup:upgrade
Now go to view any order within the admin panel and you will see the new button included at the top of the page.
- Magento 2.0
- Magento 2.1
- Magento 2.2