*/ class Mage_Adminhtml_Block_Sales_Order_Shipment_Create extends Mage_Adminhtml_Block_Widget_Form_Container { public function __construct() { $this->_objectId = 'order_id'; $this->_controller = 'sales_order_shipment'; $this->_mode = 'create'; parent::__construct(); //$this->_updateButton('save', 'label', Mage::helper('sales')->__('Submit Shipment')); $this->_removeButton('save'); $this->_removeButton('delete'); } /** * Retrieve shipment model instance * * @return Mage_Sales_Model_Order_Shipment */ public function getShipment() { return Mage::registry('current_shipment'); } public function getHeaderText() { $header = Mage::helper('sales')->__('New Shipment for Order #%s', $this->getShipment()->getOrder()->getRealOrderId()); return $header; } public function getBackUrl() { return $this->getUrl('*/sales_order/view', array('order_id'=>$this->getShipment()->getOrderId())); } }