Beispiel #1
0
 protected function _toHtml()
 {
     $helpBlock = $this->createBlock('HelpBlock')->setData(['content' => $this->__('<p>These Rules of automatic product adding and removal come into action when a 
                 Magento Product is added to the Website with regard to the Store View selected for 
                 the M2E Pro Listing. In other words, after a Magento Product is added to the 
                 selected Website, it can be automatically added to 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 
                 the Website, 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/_wItAQ'))]);
     $breadcrumb = $this->createBlock('Ebay\\Listing\\AutoAction\\Mode\\Breadcrumb', '', ['data' => ['id_prefix' => 'website']]);
     $breadcrumb->setSelectedStep(1);
     return $helpBlock->toHtml() . $breadcrumb->toHtml() . parent::_toHtml();
 }
Beispiel #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;
    }