First i make the custom module to add custom button in Order View page and its successfully added. Now i want to get the Current Order ID at my Custom Module Page. Please guide me how can i get the Current Order ID.
Basically i want to take the current order id by using query string to my next page.
Please let me know how can i get the order id at my next page?
code
addbuttoninorder($event) {
Mage::log("adadadasd");
$block = $event->getBlock();
$url = "exportleftovers.co/leopardmagento/…;;
if ($block instanceof Mage_Adminhtml_Block_Sales_Order_View) {
$block->addButton('change_status', array(
'label' => Mage::helper('sales')->__('Leopard TN New'),
// 'onclick' => "confirmSetLocation('{$message}','{$block->getUrl('modulename/path/')}')",
'onclick' => "window.open('".$url."')", 'class' => 'go' ));
}