Esempio n. 1
0
    protected function _toHtml()
    {
        $parentHtml = parent::_toHtml();
        // ---------------------------------------
        $this->jsUrl->addUrls($this->getHelper('Data')->getControllerActions('\\Ebay\\Listing\\Product\\Category\\Settings', array('_current' => true)));
        $this->jsUrl->add($this->getUrl('*/ebay_listing_product_category_settings', array('step' => 3, '_current' => true)), 'ebay_listing_product_category_settings');
        $this->jsUrl->add($this->getUrl('*/ebay_listing/review', array('_current' => true)), 'ebay_listing/review');
        // ---------------------------------------
        // ---------------------------------------
        $listing = $this->getHelper('Data\\GlobalData')->getValue('listing_for_products_category_settings');
        $viewHeaderBlock = $this->createBlock('Listing\\View\\Header', '', ['data' => ['listing' => $listing]]);
        // ---------------------------------------
        // ---------------------------------------
        $listing = $this->getHelper('Data\\GlobalData')->getValue('listing_for_products_category_settings');
        $internalData = $this->getData('internal_data');
        $chooserBlock = $this->createBlock('Ebay\\Listing\\Product\\Category\\Settings\\Chooser');
        $chooserBlock->setMarketplaceId($listing['marketplace_id']);
        $chooserBlock->setAccountId($listing['account_id']);
        if (!empty($internalData)) {
            $chooserBlock->setInternalData($internalData);
        }
        // ---------------------------------------
        return <<<HTML
{$viewHeaderBlock->toHtml()}
{$chooserBlock->toHtml()}
{$parentHtml}
HTML;
    }
Esempio n. 2
0
 protected function _toHtml()
 {
     // ---------------------------------------
     $tabsContainer = $this->createBlock('Ebay\\Listing\\Product\\Category\\Settings\\Chooser\\Tabs');
     $tabsContainer->setDestElementId('chooser_tabs_container');
     // ---------------------------------------
     return '<div id="chooser_container">' . parent::_toHtml() . $tabsContainer->toHtml() . '<div id="chooser_tabs_container"></div></div>';
 }
Esempio n. 3
0
    protected function _toHtml()
    {
        $this->js->add(<<<JS
    require([
        'M2ePro/Wizard/MigrationFromMagento1',
        'M2ePro/Wizard/MigrationFromMagento1/MarketplaceSynchProgress',
        'M2ePro/Plugin/ProgressBar',
    ], function(){
        window.MarketplaceSynchProgressObj = new MigrationFromMagento1MarketplaceSynchProgress(
            new ProgressBar('progress_bar')
        );
        window.MigrationFromMagento1Obj = new MigrationFromMagento1();
    });
JS
);
        $this->jsUrl->addUrls($this->getHelper('Data')->getControllerActions($this->nameBuilder->buildClassName(['Wizard', $this->getNick()])));
        $this->jsTranslator->add('Please wait while Synchronization is finished.', $this->__('Please wait while Synchronization is finished.'));
        $this->jsTranslator->add('Preparing to start. Please wait ...', $this->__('Preparing to start. Please wait ...'));
        $stepsBlock = $this->createBlock($this->nameBuilder->buildClassName(['Wizard', $this->getNick(), 'Breadcrumb']))->setSelectedStep($this->getStep());
        $helpBlock = $this->createBlock('HelpBlock', 'wizard.help.block')->setData(['no_collapse' => true, 'no_hide' => true]);
        $contentBlock = $this->createBlock($this->nameBuilder->buildClassName(['Wizard', $this->getNick(), 'Installation', $this->getStep(), 'Content']))->setData(['nick' => $this->getNick()]);
        return \Ess\M2ePro\Block\Adminhtml\Magento\AbstractContainer::_toHtml() . $stepsBlock->toHtml() . '<div id="progress_bar"></div>' . $helpBlock->toHtml() . $contentBlock->toHtml();
    }
Esempio n. 4
0
 protected function _toHtml()
 {
     return parent::_toHtml() . '<div id="developers_tab_container"></div>';
 }
Esempio n. 5
0
 protected function _toHtml()
 {
     /** @var \Ess\M2ePro\Block\Adminhtml\Amazon\Template\Description\Category\Chooser\Tabs $tabsBlock */
     $tabsBlock = $this->createBlock('Amazon\\Template\\Description\\Category\\Chooser\\Tabs');
     return parent::_toHtml() . $tabsBlock->toHtml() . '<div id="chooser_tabs_container"></div>';
 }
Esempio n. 6
0
    protected function _toHtml()
    {
        // ---------------------------------------
        $urls = array();
        $path = 'ebay_listing_product_category_settings/stepThreeSaveCategorySpecificsToSession';
        $urls[$path] = $this->getUrl('*/' . $path, array('_current' => true));
        $path = 'ebay_listing_product_category_settings/stepThreeGetCategorySpecifics';
        $urls[$path] = $this->getUrl('*/' . $path, array('_current' => true));
        $path = 'ebay_listing_product_category_settings/save';
        $urls[$path] = $this->getUrl('*/' . $path, array('_current' => true));
        $path = 'ebay_listing_product_category_settings';
        $urls[$path] = $this->getUrl('*/' . $path, array('step' => 2, '_current' => true, 'skip_get_suggested' => true));
        $path = 'ebay_listing/review';
        $urls[$path] = $this->getUrl('*/' . $path, array('_current' => true));
        $this->jsUrl->addUrls($urls);
        // ---------------------------------------
        // M2ePro_TRANSLATIONS
        // Loading. Please wait
        $text = 'Loading. Please wait';
        $translations[$text] = $this->__($text);
        $this->jsTranslator->addTranslations($translations);
        $this->jsTranslator->add('Set Item Specifics', $this->__('Set Item Specifics'));
        // ---------------------------------------
        $this->js->add(<<<JS

require([
    'M2ePro/Ebay/Listing/Product/Category/Settings/Specific/Wrapper',
    'M2ePro/Plugin/AreaWrapper'
], function(){

    window.EbayListingProductCategorySettingsSpecificWrapperObj = new EbayListingProductCategorySettingsSpecificWrapper(
        '{$this->getData('current_category')}',
        new AreaWrapper('specifics_main_container_wrapper')
    );

});

JS
);
        return parent::_toHtml();
    }
Esempio n. 7
0
 protected function _toHtml()
 {
     return parent::_toHtml() . '<div id="tabs_container"></div>';
 }