_getHelper(); $this->_controller = 'adminhtml_rates'; $this->_blockGroup = 'pacsoft'; $this->_headerText = $helper->__('Post Danmark Shipping Rates'); /* $this->_addButton('import', array( 'label' => $helper->__('Import / Export Shipping Rates'), 'onclick' => 'setLocation(\'' . $this->getImportExportUrl() .'\')', 'class' => 'import-export', )); */ parent::__construct(); $this->setTemplate('pacsoft/postdk.phtml'); $this->_updateButton('add', 'label', $helper->__('Add New Shipping Rate')); } protected function _getHelper() { return Mage::helper('pacsoft/rates'); } protected function getWebsite() { if (is_null($this->_website)) $this->_website = $this->_getHelper()->getWebsite(); return $this->_website; } public function getWebsiteId() { return $this->_getHelper()->getWebsiteId($this->getWebsite()); } public function getCreateUrl() { return $this->getUrl('*/*/new', array('website' => $this->getWebsiteId())); } }