I want to add a simple button in the create shipment page in the order management section of admin. This button would bring up an external website in another window. That’s pretty much it. Where is the best place to add this code. I want it to appear next to the create shipment button.
I know the ‘Create Shipment’ button exist within a module and I was able to locate where it’s added…
app\code\core\Mage\Adminhtml\Block\Sales\Order\Shipment\Create\Form.php
But, that is just a class that extends code existing elsewhere. I don’t understand Magento well enough under the hood. Can someone point me in the right location to add my single link button.
I do at least know enough to move any file I modify into the local folder so that it survives upgrades. I just need help figuring out that file.
If you just want to add a button, you should override the corresponding template file.
You have two options depending on where you need the button appear:
The “submit” button is in the items.phtml file. You could add your own button next to that one.