示例#1
0
 protected function _beforeToHtml()
 {
     $url = $this->getUrl('*/adminhtml_wizard_' . $this->getNick());
     $buttonBlock = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => 'Proceed', 'onclick' => 'setLocation(\'' . $url . '\');'));
     $this->setChild('continue_button', $buttonBlock);
     $this->setTemplate('M2ePro/wizard/' . $this->getNick() . '/presentation.phtml');
     //------------------------------
     return parent::_beforeToHtml();
 }
    protected function _toHtml()
    {
        $urls = json_encode(Mage::helper('M2ePro')->getControllerActions('adminhtml_wizard_installationEbay'));
        $additionalJs = <<<SCRIPT
<script type="text/javascript">
    M2ePro.url.add({$urls});
    InstallationEbayWizardObj = new WizardInstallationEbay();
</script>
SCRIPT;
        $contentBlock = Mage::helper('M2ePro/Module_Wizard')->createBlock('installation_' . $this->getStep() . '_content', $this->getNick());
        return parent::_toHtml() . $additionalJs . $contentBlock->toHtml();
    }
示例#3
0
 protected function _beforeToHtml()
 {
     // Initialization block
     //------------------------------
     $this->setId('wizard' . $this->getNick() . 'Welcome');
     //------------------------------
     // Buttons
     //------------------------------
     $this->prepareButtons();
     $url = $this->getUrl('*/*/skip');
     $this->_addButton('skip', array('label' => Mage::helper('M2ePro')->__('Skip Wizard'), 'onclick' => 'WizardHandlerObj.skip(\'' . $url . '\')', 'class' => 'skip'));
     //------------------------------
     $this->setTemplate('widget/form/container.phtml');
     //------------------------------
     return parent::_beforeToHtml();
 }
 protected function _beforeToHtml()
 {
     // Initialization block
     //------------------------------
     $this->setId('wizard' . $this->getNick() . 'Congratulation');
     //------------------------------
     // Set header text
     //------------------------------
     $this->_headerText = Mage::helper('M2ePro')->__('Congratulations!');
     //------------------------------
     // Buttons
     //------------------------------
     $this->prepareButtons();
     //------------------------------
     $this->setTemplate('widget/form/container.phtml');
     //------------------------------
     return parent::_beforeToHtml();
 }
 protected function _beforeToHtml()
 {
     // Initialization block
     // ---------------------------------------
     $this->setId($this->getWizardBlockId());
     // Set header text
     // ---------------------------------------
     $this->_headerText = Mage::helper('M2ePro')->__($this->getHeaderTextHtml());
     // Buttons
     // ---------------------------------------
     $this->removeButtons();
     if ($this->isNeedSkipButton()) {
         $url = $this->getUrl('*/*/skip');
         $this->_addButton('skip', array('label' => Mage::helper('M2ePro')->__('Skip Wizard'), 'onclick' => 'WizardHandlerObj.skip(\'' . $url . '\')', 'class' => 'skip'));
     }
     $this->setTemplate('widget/form/container.phtml');
     return parent::_beforeToHtml();
 }
 protected function _toHtml()
 {
     $contentBlock = Mage::helper('M2ePro/Module_Wizard')->createBlock('installation_' . $this->getStep() . '_content', $this->getNick());
     return parent::_toHtml() . $contentBlock->toHtml();
 }
示例#7
0
 protected function _beforeToHtml()
 {
     $this->setTemplate('M2ePro/wizard/' . $this->getNick() . '/notification.phtml');
     //------------------------------
     return parent::_beforeToHtml();
 }
 protected function _toHtml()
 {
     /** @var Ess_M2ePro_Helper_Module_Wizard $wizardHelper */
     $wizardHelper = $this->helper('M2ePro/Module_Wizard');
     return parent::_toHtml() . $wizardHelper->createBlock('congratulation_content', $this->getNick())->toHtml();
 }
 protected function appendButtons()
 {
     $this->appendWizardSkipButton();
     parent::appendButtons();
 }