protected function _beforeToHtml() { //------------------------------ $descriptionBlock = $this->helper('M2ePro/Module_Wizard')->createBlock('welcome_description', $this->getNick()); $requirementsBlock = $this->helper('M2ePro/Module_Wizard')->createBlock('welcome_requirements', $this->getNick()); //------------------------------ //------------------------------ $step = $this->helper('M2ePro/Module_Wizard')->getWizard($this->getNick())->getFirstStep(); $status = Ess_M2ePro_Helper_Module_Wizard::STATUS_ACTIVE; $callback = 'function() { setLocation(\'' . $this->getUrl('*/adminhtml_wizard_' . $this->getNick()) . '\'); }'; $callback = 'function() { WizardHandlerObj.setStep(\'' . $step . '\', ' . $callback . '); }'; $buttonBlock = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('M2ePro')->__('Start Configuration'), 'onclick' => 'WizardHandlerObj.setStatus(\'' . $status . '\', ' . $callback . ')', 'class' => 'start_installation_button')); //------------------------------ //------------------------------ $this->setChild('description', $descriptionBlock); $this->setChild('requirements', $requirementsBlock); $this->setChild('start_wizard_button', $buttonBlock); //------------------------------ $temp = parent::_beforeToHtml(); // Set header text //------------------------------ $this->_headerText = Mage::helper('M2ePro')->__('Welcome to M2E Pro - Magento Multi-Channels Integration!'); //------------------------------ return $temp; }
protected function _beforeToHtml() { //------------------------------ $content = $this->helper('M2ePro/Wizard')->createBlock('welcome_content', $this->getNick()); $this->setChild('content', $content); //------------------------------ $temp = parent::_beforeToHtml(); // Set header text //------------------------------ $this->_headerText = Mage::helper('M2ePro')->__('Give your products maximum visibility by listing on Rakuten.com'); //------------------------------ return $temp; }
protected function _beforeToHtml() { //------------------------------ $content = $this->helper('M2ePro/Wizard')->createBlock('welcome_content', $this->getNick()); $this->setChild('content', $content); //------------------------------ $temp = parent::_beforeToHtml(); // Set header text //------------------------------ $this->_headerText = Mage::helper('M2ePro')->__('Welcome to Magento Amazon Integration!'); //------------------------------ return $temp; }