コード例 #1
0
 protected function _beforeToHtml()
 {
     /** @var Ess_M2ePro_Helper_Module_Wizard $wizardHelper */
     $wizardHelper = $this->helper('M2ePro/Module_Wizard');
     $this->isEbayWizardFinished = Mage::helper('M2ePro/View_Ebay')->isInstallationWizardFinished();
     //-------------------------------
     $buttonBlock = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('id' => 'wizard_complete', 'label' => Mage::helper('M2ePro')->__('Complete Configuration'), 'onclick' => 'setLocation(\'' . $this->getUrl('*/*/complete') . '\');', 'class' => 'end_button', 'style' => 'display: none'));
     $this->setChild('end_button', $buttonBlock);
     //-------------------------------
     // Steps
     //-------------------------------
     if (!$this->isEbayWizardFinished) {
         $this->setChild('step_license', $wizardHelper->createBlock('installation_license', $this->getNick()));
     }
     $this->setChild('step_settings', $wizardHelper->createBlock('installation_settings', $this->getNick()));
     //-------------------------------
     if ($this->isEbayWizardFinished && $wizardHelper->getStep($this->getNick()) == 'license') {
         $steps = $wizardHelper->getWizard($this->getNick())->getSteps();
         $wizardHelper->setStep($this->getNick(), $steps[array_search('license', $steps) + 1]);
     }
     $temp = parent::_beforeToHtml();
     // Set header text
     //------------------------------
     $this->_headerText = Mage::helper('M2ePro')->__('Configuration Wizard (Magento Multi-Channels Integration)');
     //------------------------------
     return $temp;
 }
コード例 #2
0
 protected function _beforeToHtml()
 {
     // Steps
     // ---------------------------------------
     $this->setChild('step_marketplaces_synchronization', $this->helper('M2ePro/Module_Wizard')->createBlock('installation_marketplacesSynchronization', $this->getNick()));
     // ---------------------------------------
     return parent::_beforeToHtml();
 }
コード例 #3
0
 protected function _beforeToHtml()
 {
     //-------------------------------
     $this->appendWizardCompleteButton();
     //-------------------------------
     // Steps
     //-------------------------------
     $this->setChild('step_marketplace', $this->helper('M2ePro/Module_Wizard')->createBlock('installation_marketplace', $this->getNick()));
     $this->setChild('step_synchronization', $this->helper('M2ePro/Module_Wizard')->createBlock('installation_synchronization', $this->getNick()));
     $this->setChild('step_account', $this->helper('M2ePro/Module_Wizard')->createBlock('installation_account', $this->getNick()));
     //-------------------------------
     return parent::_beforeToHtml();
 }
コード例 #4
0
 protected function _beforeToHtml()
 {
     // Steps
     // ---------------------------------------
     $this->setChild('step_marketplaces_synchronization', $this->helper('M2ePro/Module_Wizard')->createBlock('installation_marketplacesSynchronization', $this->getNick()));
     $descriptionTemplateData = Mage::helper('M2ePro/Module_Wizard')->getWizard('migrationNewAmazon')->getDataForDescriptionTemplatesStep();
     if (!empty($descriptionTemplateData)) {
         $this->setChild('step_description_templates', $this->helper('M2ePro/Module_Wizard')->createBlock('installation_descriptionTemplates', $this->getNick()));
     }
     $this->setChild('step_information', $this->helper('M2ePro/Module_Wizard')->createBlock('installation_information', $this->getNick()));
     // ---------------------------------------
     return parent::_beforeToHtml();
 }
コード例 #5
0
ファイル: Installation.php プロジェクト: xiaoguizhidao/beut
 protected function _beforeToHtml()
 {
     //-------------------------------
     $buttonBlock = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('id' => 'wizard_amazon_complete', 'label' => Mage::helper('M2ePro')->__('Complete Configuration'), 'onclick' => 'setLocation(\'' . $this->getUrl('*/*/complete') . '\');', 'class' => 'end_amazon_button', 'style' => 'display: none'));
     $this->setChild('end_amazon_button', $buttonBlock);
     //-------------------------------
     // Steps
     //-------------------------------
     $this->setChild('step_marketplace', $this->helper('M2ePro/Wizard')->createBlock('installation_marketplace', $this->getNick()));
     $this->setChild('step_synchronization', $this->helper('M2ePro/Wizard')->createBlock('installation_synchronization', $this->getNick()));
     $this->setChild('step_account', $this->helper('M2ePro/Wizard')->createBlock('installation_account', $this->getNick()));
     //-------------------------------
     $temp = parent::_beforeToHtml();
     // Set header text
     //------------------------------
     $this->_headerText = Mage::helper('M2ePro')->__('Configuration Wizard (Magento Amazon Integration)');
     //------------------------------
     return $temp;
 }
コード例 #6
0
 protected function _beforeToHtml()
 {
     //-------------------------------
     $buttonBlock = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('id' => 'wizard_complete', 'label' => Mage::helper('M2ePro')->__('Complete Configuration'), 'onclick' => 'setLocation(\'' . $this->getUrl('*/*/complete') . '\');', 'class' => 'end_button', 'style' => 'display: none'));
     $this->setChild('end_button', $buttonBlock);
     //-------------------------------
     // Steps
     //-------------------------------
     $this->setChild('step_cron', $this->helper('M2ePro/Module_Wizard')->createBlock('installation_cron', $this->getNick()));
     $this->setChild('step_license', $this->helper('M2ePro/Module_Wizard')->createBlock('installation_license', $this->getNick()));
     $this->setChild('step_settings', $this->helper('M2ePro/Module_Wizard')->createBlock('installation_settings', $this->getNick()));
     //-------------------------------
     if (Mage::helper('M2ePro/Module_Wizard')->isFinished(Ess_M2ePro_Helper_View_Ebay::WIZARD_INSTALLATION_NICK)) {
         $this->unsetChild('step_license');
     }
     $temp = parent::_beforeToHtml();
     // Set header text
     //------------------------------
     $this->_headerText = Mage::helper('M2ePro')->__('Configuration Wizard (Magento Multi-Channels Integration)');
     //------------------------------
     return $temp;
 }
コード例 #7
0
 protected function _beforeToHtml()
 {
     /** @var Ess_M2ePro_Helper_Module_Wizard $wizardHelper */
     $wizardHelper = $this->helper('M2ePro/Module_Wizard');
     $earlierFormData = Mage::getModel('M2ePro/Registry')->load('/wizard/license_form_data/', 'key')->getData('value');
     if (Mage::helper('M2ePro/Module_License')->getKey() && $earlierFormData) {
         $this->isLicenseStepFinished = true;
     }
     if ($this->isLicenseStepFinished && $wizardHelper->getStep($this->getNick()) == 'license') {
         $nextStep = $wizardHelper->getWizard($this->getNick())->getNextStep();
         $wizardHelper->setStep($this->getNick(), $nextStep);
     }
     // ---------------------------------------
     $block = $wizardHelper->createBlock('installation_description', $this->getNick());
     $this->setChild('description_block', $block);
     $block = $wizardHelper->createBlock('installation_license', $this->getNick());
     $block->setData('isLicenseStepFinished', $this->isLicenseStepFinished);
     $this->setChild('step_license', $block);
     $block = $wizardHelper->createBlock('installation_settings', $this->getNick());
     $this->setChild('step_settings', $block);
     // ---------------------------------------
     return parent::_beforeToHtml();
 }