Exemplo n.º 1
0
 protected function _prepareLayout()
 {
     parent::_prepareLayout();
     // ---------------------------------------
     $helpBlock = $this->createBlock('HelpBlock');
     $helpBlock->setData(['content' => $this->__('<p>You should specify settings for Payment, Shipping and Return configurations for current 
             Listing.</p><br>
             More detailed information you can find <a href="%url%" target="_blank">here</a>.', $this->getHelper('Module\\Support')->getDocumentationUrl(NULL, NULL, 'x/7QItAQ'))]);
     $this->setChild('help', $helpBlock);
     // ---------------------------------------
     // ---------------------------------------
     $parameters = ['template_nick' => \Ess\M2ePro\Model\Ebay\Template\Manager::TEMPLATE_PAYMENT, 'policy_localization' => $this->getData('policy_localization')];
     $switcherBlock = $this->createBlock('Ebay\\Listing\\Template\\Switcher', '', ['data' => $parameters]);
     $this->setChild('payment', $switcherBlock);
     // ---------------------------------------
     // ---------------------------------------
     $parameters = ['template_nick' => \Ess\M2ePro\Model\Ebay\Template\Manager::TEMPLATE_SHIPPING, 'policy_localization' => $this->getData('policy_localization')];
     $switcherBlock = $this->createBlock('Ebay\\Listing\\Template\\Switcher', '', ['data' => $parameters]);
     $this->setChild('shipping', $switcherBlock);
     // ---------------------------------------
     // ---------------------------------------
     $parameters = ['template_nick' => \Ess\M2ePro\Model\Ebay\Template\Manager::TEMPLATE_RETURN_POLICY, 'policy_localization' => $this->getData('policy_localization')];
     $switcherBlock = $this->createBlock('Ebay\\Listing\\Template\\Switcher', '', ['data' => $parameters]);
     $this->setChild('return', $switcherBlock);
     // ---------------------------------------
     return $this;
 }
Exemplo n.º 2
0
    protected function _prepareLayout()
    {
        $this->getLayout()->getBlock('wizard.help.block')->setContent(<<<HTML
The Marketplace Data must be resynchronized to complete M2E Pro migration from Magento v 1.x to Magento v 2.x.<br/><br/>
Below you can find the list of the Marketplaces which were enabled in M2E Pro based on the Magento v 1.x.
They will be automatically resynchronized after pressing <strong>Continue</strong> button.<br/><br/><strong>
Please note</strong> that the process might be rather time- and resource-consuming and may take up to 30 minutes.
HTML
);
        parent::_prepareLayout();
    }
Exemplo n.º 3
0
    protected function _prepareLayout()
    {
        $helpBlock = $this->createBlock('HelpBlock')->setData(['no_collapse' => true, 'no_hide' => true, 'style' => 'margin-bottom: 0px', 'content' => <<<HTML
<h3>{$this->__('Do you want to create New Amazon Products for Magento Products
                which do not have ASIN/ISBN assigned? ')}</h3>
<br/>
<p>{$this->__('Not for all Magento Products ASIN/ISBN was found in Amazon Catalog.
                If you want M2E Pro can create New ASIN(s)/ISBN(s) for such Magento Products. <br/><br/>
                <b>Note:</b> You can use the Search of Amazon Products or the feature of Creation of
                New Amazon Products later in M2E Pro Listing.')}</p>

HTML
]);
        $this->setChild('popup_help_block', $helpBlock);
        return parent::_prepareLayout();
    }
Exemplo n.º 4
0
 protected function _prepareLayout()
 {
     parent::_prepareLayout();
     // ---------------------------------------
     $helpBlock = $this->createBlock('HelpBlock');
     $helpBlock->setData(['content' => $this->__('<p>You should configure rules for the automatic data update between a Magento Product 
             and an eBay Item.</p><br>
             <p>More detailed information you can find <a href="%url%" target="_blank">here</a>.</p>', $this->getHelper('Module\\Support')->getDocumentationUrl(NULL, NULL, 'x/OwItAQ'))]);
     $this->setChild('help', $helpBlock);
     // ---------------------------------------
     $data = array('template_nick' => \Ess\M2ePro\Model\Ebay\Template\Manager::TEMPLATE_SYNCHRONIZATION);
     $switcherBlock = $this->createBlock('Ebay\\Listing\\Template\\Switcher');
     $switcherBlock->setData($data);
     $this->setChild('synchronization', $switcherBlock);
     // ---------------------------------------
     return $this;
 }
Exemplo n.º 5
0
    protected function _prepareLayout()
    {
        $this->getHelper('Data\\GlobalData')->setValue('synchronization_form_data', $this->getFormData());
        $this->getHelper('Data\\GlobalData')->setValue('is_custom', $this->getData('is_custom'));
        $this->getHelper('Data\\GlobalData')->setValue('custom_title', $this->getData('custom_title'));
        $this->setChild('tabs', $this->createBlock('Ebay\\Template\\Synchronization\\Edit\\Form\\Tabs'));
        $this->jsPhp->addConstants($this->getHelper('Data')->getClassConstants('\\Ess\\M2ePro\\Model\\Ebay\\Template\\Synchronization'));
        $this->jsPhp->addConstants($this->getHelper('Data')->getClassConstants('\\Ess\\M2ePro\\Model\\Template\\Synchronization'));
        $this->jsTranslator->addTranslations(['Wrong value. Only integer numbers.' => $this->__('Wrong value. Only integer numbers.'), 'Must be greater than "Min".' => $this->__('Must be greater than "Min".'), 'Inconsistent Settings in Relist and Stop Rules.' => $this->__('Inconsistent Settings in Relist and Stop Rules.'), 'You need to choose at set at least one time for the schedule to run.' => $this->__('You need to choose at least one Time for the schedule to run.'), 'You should specify time.' => $this->__('You should specify time.'), 'Wrong value.' => $this->__('Wrong value.'), 'Must be greater than "Active From" Date.' => $this->__('Must be greater than "Active From" Date.'), 'Must be greater than "From Time".' => $this->__('Must be greater than "From Time".'), 'Quantity' => $this->__('Quantity'), 'Min Quantity' => $this->__('Min Quantity')]);
        $this->js->add(<<<JS
    require([
        'M2ePro/Ebay/Template/Synchronization',
    ], function(){
        window.EbayTemplateSynchronizationObj = new EbayTemplateSynchronization();
        EbayTemplateSynchronizationObj.initObservers();
    });
JS
);
        return parent::_prepareLayout();
    }
Exemplo n.º 6
0
 protected function _prepareLayout()
 {
     parent::_prepareLayout();
     // ---------------------------------------
     $helpBlock = $this->createBlock('HelpBlock');
     $helpBlock->setData(['content' => $this->__('<p>On this step you should specify main settings according to which your Items will be sold - Price-,
             Quantity-related configurations, etc.</p><br>
             <p>More detailed information you can find <a href="%url%" target="_blank">here</a>.</p>', $this->getHelper('Module\\Support')->getDocumentationUrl(NULL, NULL, 'x/9gItAQ'))]);
     $this->setChild('help', $helpBlock);
     // ---------------------------------------
     // ---------------------------------------
     $data = array('template_nick' => \Ess\M2ePro\Model\Ebay\Template\Manager::TEMPLATE_SELLING_FORMAT);
     $switcherBlock = $this->createBlock('Ebay\\Listing\\Template\\Switcher');
     $switcherBlock->setData($data);
     $this->setChild('selling_format', $switcherBlock);
     // ---------------------------------------
     // ---------------------------------------
     $data = array('template_nick' => \Ess\M2ePro\Model\Ebay\Template\Manager::TEMPLATE_DESCRIPTION);
     $switcherBlock = $this->createBlock('Ebay\\Listing\\Template\\Switcher');
     $switcherBlock->setData($data);
     $this->setChild('description', $switcherBlock);
     // ---------------------------------------
     return $this;
 }
Exemplo n.º 7
0
 protected function _prepareLayout()
 {
     $this->setChild('tabs', $this->createBlock('Amazon\\Template\\Description\\Edit\\Tabs'));
     return parent::_prepareLayout();
 }