Example #1
0
 protected function _toHtml()
 {
     $helpBlock = $this->createBlock('HelpBlock')->setData(['content' => $this->__('<p>These Rules of the automatic product adding and removal act globally for all Magento Catalog.
                 When a new Magento Product is added to Magento Catalog, it will be automatically added to
                 the current M2E Pro Listing if the settings are enabled.</p><br>
                 <p>Accordingly, if a Magento Product present in the the M2E Pro Listing is removed from 
                 Magento Catalog,  the Item will be removed from the Listing and its sale 
                 will be stopped on Channel.</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/_QItAQ'))]);
     $breadcrumb = $this->createBlock('Ebay\\Listing\\AutoAction\\Mode\\Breadcrumb', '', ['data' => ['id_prefix' => 'global']]);
     $breadcrumb->setSelectedStep(1);
     return $helpBlock->toHtml() . $breadcrumb->toHtml() . parent::_toHtml();
 }
Example #2
0
    protected function _beforeToHtml()
    {
        parent::_beforeToHtml();
        $this->jsPhp->addConstants($this->getHelper('Data')->getClassConstants('\\Ess\\M2ePro\\Model\\Amazon\\Listing'));
        $this->js->add(<<<JS

        ListingAutoActionObj.showCreateNewAsin = {$this->showCreateNewAsin};

        \$('auto_action_create_asin')
            .observe('change', ListingAutoActionObj.createAsinChange)
            .simulate('change');

        \$('adding_description_template_id').observe('change', function(el) {
            var options = \$(el.target).select('.empty');
            options.length > 0 && options[0].hide();
        });
JS
);
        return $this;
    }