Exemple #1
0
 protected function _beforeToHtml()
 {
     // ---------------------------------------
     if ($this->isTabAllowed('general')) {
         $block = $this->createBlock('Ebay\\Listing\\Edit\\Tabs\\General', '', array('policy_localization' => $this->getData('policy_localization')));
         $this->addTab('general', array('label' => $this->__('Payment and Shipping'), 'title' => $this->__('Payment and Shipping'), 'content' => $block->toHtml()));
     }
     // ---------------------------------------
     // ---------------------------------------
     if ($this->isTabAllowed('selling')) {
         $block = $this->createBlock('Ebay\\Listing\\Edit\\Tabs\\Selling');
         $this->addTab('selling', array('label' => $this->__('Selling'), 'title' => $this->__('Selling'), 'content' => $block->toHtml()));
     }
     // ---------------------------------------
     // ---------------------------------------
     if ($this->isTabAllowed('synchronization')) {
         $block = $this->createBlock('Ebay\\Listing\\Edit\\Tabs\\Synchronization');
         $this->addTab('synchronization', array('label' => $this->__('Synchronization'), 'title' => $this->__('Synchronization'), 'content' => $block->toHtml()));
     }
     // ---------------------------------------
     // ---------------------------------------
     $this->setActiveTab($this->getRequest()->getParam('tab', 'general'));
     // ---------------------------------------
     return parent::_beforeToHtml();
 }
Exemple #2
0
 protected function _prepareLayout()
 {
     !$this->isNeedToHideRecent() && $this->addTab(self::TAB_ID_RECENT, ['label' => $this->__('Recently Used'), 'title' => $this->__('Recently Used'), 'content' => $this->createBlock('Amazon\\Template\\Description\\Category\\Chooser\\Tabs\\Recent')->toHtml(), 'active' => true]);
     $this->addTab(self::TAB_ID_BROWSE, ['label' => $this->__('Browse'), 'title' => $this->__('Browse'), 'content' => $this->createBlock('Amazon\\Template\\Description\\Category\\Chooser\\Tabs\\Browse')->toHtml(), 'active' => $this->isNeedToHideRecent() ? true : false]);
     $this->addTab(self::TAB_ID_SEARCH, ['label' => $this->__('Search'), 'title' => $this->__('Search'), 'content' => $this->createBlock('Amazon\\Template\\Description\\Category\\Chooser\\Tabs\\Search')->toHtml()]);
     return parent::_prepareLayout();
 }
Exemple #3
0
 protected function _prepareLayout()
 {
     $hideRecent = $this->getHelper('Data\\GlobalData')->getValue('category_chooser_hide_recent');
     !$hideRecent && $this->addTab(self::TAB_ID_RECENT, array('label' => $this->__('Recently Used'), 'title' => $this->__('Recently Used'), 'content' => $this->createBlock('Ebay\\Listing\\Product\\Category\\Settings\\Chooser\\Tabs\\Recent')->toHtml(), 'active' => true));
     $this->addTab(self::TAB_ID_BROWSE, array('label' => $this->__('Browse'), 'title' => $this->__('Browse'), 'content' => $this->createBlock('Ebay\\Listing\\Product\\Category\\Settings\\Chooser\\Tabs\\Browse')->toHtml(), 'active' => $hideRecent ? true : false));
     $this->addTab(self::TAB_ID_SEARCH, array('label' => $this->__('Search'), 'title' => $this->__('Search'), 'content' => $this->createBlock('Ebay\\Listing\\Product\\Category\\Settings\\Chooser\\Tabs\\Search')->toHtml()));
     $this->addTab(self::TAB_ID_ATTRIBUTE, array('label' => $this->__('Magento Attribute'), 'title' => $this->__('Magento Attribute'), 'content' => $this->createBlock('Ebay\\Listing\\Product\\Category\\Settings\\Chooser\\Tabs\\Attribute')->toHtml()));
     return parent::_prepareLayout();
 }
Exemple #4
0
 protected function _toHtml()
 {
     $marketplaceFilterBlock = $this->createBlock('Marketplace\\Switcher')->setData(['component_mode' => \Ess\M2ePro\Helper\Component\Ebay::NICK, 'controller_name' => 'ebay_listing_log']);
     $marketplaceFilterBlock->setUseConfirm(false);
     $accountFilterBlock = $this->createBlock('Account\\Switcher')->setData(['component_mode' => \Ess\M2ePro\Helper\Component\Ebay::NICK, 'controller_name' => 'ebay_listing_log']);
     $accountFilterBlock->setUseConfirm(false);
     $pageActionsHtml = '';
     $marketplaceFilterHtml = $marketplaceFilterBlock->toHtml();
     $accountFilterHtml = $accountFilterBlock->toHtml();
     if (trim($marketplaceFilterHtml) || trim($accountFilterHtml)) {
         $pageActionsHtml = '<div class="page-main-actions"><div class="filter_block">' . $marketplaceFilterBlock->toHtml() . $accountFilterBlock->toHtml() . '</div></div>';
     }
     return $pageActionsHtml . parent::_toHtml() . '<div id="tabs_container"></div>';
 }
Exemple #5
0
 protected function _beforeToHtml()
 {
     // ---------------------------------------
     $block = $this->createBlock('Amazon\\Listing\\Create\\Selling\\Form');
     $block->setUseFormContainer(false);
     $this->addTab('selling', array('label' => $this->__('Selling Settings'), 'title' => $this->__('Selling Settings'), 'content' => $block->toHtml()));
     // ---------------------------------------
     // ---------------------------------------
     $block = $this->createBlock('Amazon\\Listing\\Create\\Search\\Form');
     $block->setUseFormContainer(false);
     $this->addTab('search', array('label' => $this->__('Search Settings'), 'title' => $this->__('Search Settings'), 'content' => $block->toHtml()));
     // ---------------------------------------
     $this->setActiveTab($this->getRequest()->getParam('tab', 'selling'));
     return parent::_beforeToHtml();
 }
Exemple #6
0
    protected function _toHtml()
    {
        $generalId = $this->getListingProduct()->getChildObject()->getGeneralId();
        $showMask = 0;
        if (!(empty($generalId) && $this->getListingProduct()->getChildObject()->isGeneralIdOwner())) {
            $showMask = 1;
        }
        $this->js->add(<<<JS
//    amazonVariationProductManageTabsJsTabs.moveTabContentInDest();
//
//    if (!{$showMask}) {
//        amazonVariationProductManageTabsJsTabs.tabs[0].hide();
//    }
JS
);
        return '<div id="variation_manage_tabs_container">' . parent::_toHtml() . '<div id="variation_product_manage_tabs_container"></div></div>';
    }