public function getSaveUrl() { if (Mage::helper('emjainteractive_purchaseordermanagement')->isPurchaseOrder($this->getOrder())) { return $this->getUrl('*/po_sales_order_invoice/save', array('order_id' => $this->getInvoice()->getOrderId())); } return parent::getSaveUrl(); }
protected function _toHtml() { $html = parent::_toHtml(); //aggiungo il blocck di tnt $torep = '<div id="tracking" style="display:none;">'; $html = preg_replace("/" . str_replace('/', "\\/", $torep) . "/i", $torep . $this->getLayout()->getBlock('tntproform')->toHtml(), $html, 1); return $html; }