Example #1
0
 protected function _beforeToHtml()
 {
     $this->addTab('general', ['label' => __('General'), 'title' => __('General'), 'content' => $this->createBlock('Ebay\\Account\\Edit\\Tabs\\General')->toHtml()]);
     if ($this->getHelper('Data\\GlobalData')->getValue('temp_data') && $this->getHelper('Data\\GlobalData')->getValue('temp_data')->getId()) {
         $this->addTab('listingOther', array('label' => $this->__('3rd Party Listings'), 'title' => $this->__('3rd Party Listings'), 'content' => $this->createBlock('Ebay\\Account\\Edit\\Tabs\\ListingOther')->toHtml()));
         $this->addTab('store', array('label' => $this->__('eBay Store'), 'title' => $this->__('eBay Store'), 'content' => $this->createBlock('Ebay\\Account\\Edit\\Tabs\\Store')->toHtml()));
         $this->addTab('order', array('label' => $this->__('Orders'), 'title' => $this->__('Orders'), 'content' => $this->createBlock('Ebay\\Account\\Edit\\Tabs\\Order')->toHtml()));
         // TODO NOT SUPPORTED FEATURES
         /*            $this->addTab('feedback', array(
                         'label' => $this->__('Feedback'),
                         'title' => $this->__('Feedback'),
                         'content' => $this->createBlock(
                             'Ebay\Account\Edit\Tabs\Feedback'
                         )->toHtml()
                     ));*/
     }
     $this->setActiveTab($this->getRequest()->getParam('tab', 'general'));
     $this->jsUrl->addUrls($this->getHelper('Data')->getControllerActions('Ebay\\Account'));
     $this->jsUrl->add($this->getUrl('*/ebay_account/beforeGetToken', array('_current' => true)), 'ebay_account/beforeGetToken');
     $this->jsUrl->addUrls(['formSubmit' => $this->getUrl('*/ebay_account/save', array('_current' => true, 'id' => $this->getRequest()->getParam('id'))), 'deleteAction' => $this->getUrl('*/ebay_account/delete', array('id' => $this->getRequest()->getParam('id')))]);
     $this->jsPhp->addConstants($this->getHelper('Data')->getClassConstants('\\Ess\\M2ePro\\Helper\\Component\\Ebay'));
     $this->jsPhp->addConstants($this->getHelper('Data')->getClassConstants('\\Ess\\M2ePro\\Model\\Ebay\\Account'));
     $this->jsTranslator->addTranslations(['The specified Title is already used for other Account. Account Title must be unique.' => $this->__('The specified Title is already used for other Account. Account Title must be unique.'), 'Be attentive! By Deleting Account you delete all information on it from M2E Pro Server.
         This will cause inappropriate work of all Accounts\' copies.' => $this->__('Be attentive! By Deleting Account you delete all information on it from M2E Pro Server.
             This will cause inappropriate work of all Accounts\' copies.'), 'No Customer entry is found for specified ID.' => $this->__('No Customer entry is found for specified ID.'), 'If Yes is chosen, you must select at least one Attribute for Product Mapping.' => $this->__('If Yes is chosen, you must select at least one Attribute for Product Mapping.'), 'You should create at least one Response Template.' => $this->__('You should create at least one Response Template.'), 'Prefix length should not be greater than 5 characters.' => $this->__('Prefix length should not be greater than 5 characters.'), 'You must get token.' => $this->__('You must get token.')]);
     return parent::_beforeToHtml();
 }
Example #2
0
 protected function _prepareLayout()
 {
     $this->css->addFile('developers.css');
     // ---------------------------------------
     $tab = array('label' => $this->__('About Module / Magento'), 'title' => $this->__('About Module / Magento'), 'content' => $this->createBlock('Developers\\Tabs\\AboutModule')->toHtml());
     $this->addTab(self::TAB_ID_INSTALLATION_DETAILS, $tab);
     // ---------------------------------------
     // ---------------------------------------
     $tab = array('label' => $this->__('System Requirements'), 'title' => $this->__('System Requirements'), 'content' => $this->createBlock('Developers\\Tabs\\SystemRequirements')->toHtml());
     $this->addTab(self::TAB_ID_SYSTEM_REQUIREMENTS, $tab);
     // ---------------------------------------
     // ---------------------------------------
     $tab = array('label' => $this->__('Cron Job Details / Status'), 'title' => $this->__('Cron Job Details / Status'), 'content' => $this->createBlock('Developers\\Tabs\\CronJobDetails', '', ['data' => ['is_support_mode' => true]])->toHtml());
     $this->addTab(self::TAB_ID_CRON_JOB_INFO, $tab);
     // ---------------------------------------
     // ---------------------------------------
     $tab = array('label' => $this->__('Synchronization Log'), 'title' => $this->__('Synchronization Log'), 'content' => $this->createBlock('Developers\\Tabs\\SynchronizationLog')->toHtml());
     $this->addTab(self::TAB_ID_SYNCHRONIZATION_LOG, $tab);
     // ---------------------------------------
     // ---------------------------------------
     $tab = array('label' => $this->__('Magmi Import Tool Plugin'), 'title' => $this->__('Magmi Plugin'), 'content' => $this->createBlock('Developers\\Tabs\\MagmiPlugin')->toHtml());
     $this->addTab(self::TAB_ID_MAGMI_PLUGIN, $tab);
     // ---------------------------------------
     // ---------------------------------------
     $tab = array('label' => $this->__('Direct Database Changes'), 'title' => $this->__('Direct Database Changes'), 'content' => $this->createBlock('Developers\\Tabs\\DirectDatabaseChanges')->toHtml());
     $this->addTab(self::TAB_ID_DIRECT_DATABASE_CHANGES, $tab);
     // ---------------------------------------
     // ---------------------------------------
     $tab = array('label' => $this->__('Performance Notes'), 'title' => $this->__('Performance Notes'), 'content' => $this->createBlock('Developers\\Tabs\\PerformanceNotes')->toHtml());
     $this->addTab(self::TAB_ID_PERFORMANCE_NOTES, $tab);
     // ---------------------------------------
     return parent::_prepareLayout();
 }
Example #3
0
 protected function _prepareLayout()
 {
     $this->addTab('list_rules', ['label' => __('List Rules'), 'title' => __('List Rules'), 'content' => $this->createBlock('Amazon\\Template\\Synchronization\\Edit\\Tabs\\ListRules')->toHtml()]);
     $this->addTab('revise_rules', ['label' => __('Revise Rules'), 'title' => __('Revise Rules'), 'content' => $this->createBlock('Amazon\\Template\\Synchronization\\Edit\\Tabs\\ReviseRules')->toHtml()]);
     $this->addTab('relist_rules', ['label' => __('Relist Rules'), 'title' => __('Relist Rules'), 'content' => $this->createBlock('Amazon\\Template\\Synchronization\\Edit\\Tabs\\RelistRules')->toHtml()]);
     $this->addTab('stop_rules', ['label' => __('Stop Rules'), 'title' => __('Stop Rules'), 'content' => $this->createBlock('Amazon\\Template\\Synchronization\\Edit\\Tabs\\StopRules')->toHtml()]);
     $this->setActiveTab($this->getRequest()->getParam('tab', 'list'));
     return parent::_prepareLayout();
 }
Example #4
0
    protected function _beforeToHtml()
    {
        $this->jsUrl->add($this->getUrl('*/*/index', ['active_tab' => self::TAB_ID_LICENSE]), 'licenseTab');
        $this->jsTranslator->addTranslations(['Settings successfully saved' => $this->__('Settings successfully saved'), 'Error' => $this->__('Error')]);
        $this->js->addRequireJs(['s' => 'M2ePro/Settings'], <<<JS

        window.SettingsObj = new Settings();
JS
);
        return parent::_beforeToHtml();
    }
Example #5
0
 protected function _beforeToHtml()
 {
     $this->addTab('general', array('label' => $this->__('General'), 'title' => $this->__('General'), 'content' => $this->createBlock('Amazon\\Account\\Edit\\Tabs\\General')->toHtml()));
     $this->addTab('listingOther', array('label' => $this->__('3rd Party Listings'), 'title' => $this->__('3rd Party Listings'), 'content' => $this->createBlock('Amazon\\Account\\Edit\\Tabs\\ListingOther')->toHtml()));
     $this->addTab('orders', array('label' => $this->__('Orders'), 'title' => $this->__('Orders'), 'content' => $this->createBlock('Amazon\\Account\\Edit\\Tabs\\Order')->toHtml()));
     // TODO NOT SUPPORTED FEATURES
     //        if ($this->getHelper('Component\Amazon')->isRepricingEnabled() &&
     //            $this->getHelper('Data\GlobalData')->getValue('temp_data')->getId()) {
     //
     //            $this->addTab('repricing', array(
     //                'label'   => $this->__('Repricing Tool'),
     //                'title'   => $this->__('Repricing Tool'),
     //                'content' => $this->getLayout()
     //                    ->createBlock('M2ePro/adminhtml_common_amazon_account_edit_tabs_repricing')->toHtml(),
     //            ));
     //        }
     $this->setActiveTab($this->getRequest()->getParam('tab', 'general'));
     return parent::_beforeToHtml();
 }