コード例 #1
0
ファイル: Manual.php プロジェクト: Doability/magento2dev
    protected function _toHtml()
    {
        // TEXT
        $this->jsTranslator->addTranslations(['templateDescriptionPopupTitle' => $this->__('Assign Description Policy'), 'setDescriptionPolicy' => $this->__('Set Description Policy.'), 'Add New Description Policy' => $this->__('Add New Description Policy')]);
        // ---------------------------------------
        // URL
        $this->jsUrl->addUrls($this->getHelper('Data')->getControllerActions('Amazon\\Listing\\Product'));
        $this->jsUrl->addUrls($this->getHelper('Data')->getControllerActions('Amazon\\Listing\\Product\\Template\\Description'));
        $this->jsUrl->add($this->getUrl('*/amazon_listing_product_template_description/viewTemplateDescriptionsGrid', ['map_to_template_js_fn' => 'selectTemplateDescription']), 'amazon_listing_product_template_description/viewTemplateDescriptionsGrid');
        $this->jsUrl->add($this->getUrl('*/amazon_listing_product_add/checkNewAsinManualProducts', ['_current' => true]), 'amazon_listing_product_add/checkNewAsinManualProducts');
        // ---------------------------------------
        $this->js->add(<<<JS
    selectTemplateDescription = function (el, templateId, mapToGeneralId)
    {
        ListingGridHandlerObj.mapToTemplateDescription(el, templateId, mapToGeneralId);
    };

    require([
        'M2ePro/Amazon/Listing/Product/Add/NewAsin/Template/Description/Grid',
    ],function() {
        Common.prototype.scrollPageToTop = function() { return; }

        window.ListingGridHandlerObj = new AmazonListingProductAddNewAsinTemplateDescriptionGrid(
            '{$this->getChildBlock('grid')->getId()}',
            {$this->getRequest()->getParam('id')}
        );

        ListingGridHandlerObj.afterInitPage();
   
        ListingGridHandlerObj.actionHandler.setOptions(M2ePro);
    });
JS
);
        return '<div id="search_asin_products_container">' . parent::_toHtml() . '</div>';
    }
コード例 #2
0
 protected function _toHtml()
 {
     $helpBlock = $this->createBlock('HelpBlock', '', ['data' => ['content' => $this->__('
             <p>This grid displays Synchronization results - Quantity, Price, Details (M2E Pro Listings)<br>
             Synchronization, Orders updating, Marketplaces’ data Synchronization,
             3rd Party Listings Synchronization.</p><br>
             <p>The records about Orders, Inventory and 3rd party Listings Synchronization are 
             displayed<br> only in those cases when it results in warning or error messages.</p>', $this->getHelper('Module\\Support')->getDocumentationUrl(NULL, NULL, 'x/MAAJAQ#Logs.-SynchronizationLog'))]]);
     return $helpBlock->toHtml() . parent::_toHtml();
 }
コード例 #3
0
ファイル: Product.php プロジェクト: Doability/magento2dev
    protected function _toHtml()
    {
        $parentHtml = parent::_toHtml();
        $popupsHtml = $this->getPopupsHtml();
        return <<<HTML
<div id="products_progress_bar"></div>
<div id="products_container">{$parentHtml}</div>
<div style="display: none">{$popupsHtml}</div>
HTML;
    }
コード例 #4
0
ファイル: Search.php プロジェクト: Doability/magento2dev
 protected function _toHtml()
 {
     $marketplaceFilterBlock = $this->createBlock('Marketplace\\Switcher')->setData(['component_mode' => \Ess\M2ePro\Helper\View\Ebay::NICK, 'controller_name' => $this->getRequest()->getControllerName()]);
     $marketplaceFilterBlock->setUseConfirm(false);
     $accountFilterBlock = $this->createBlock('Account\\Switcher')->setData(['component_mode' => \Ess\M2ePro\Helper\View\Ebay::NICK, 'controller_name' => $this->getRequest()->getControllerName()]);
     $accountFilterBlock->setUseConfirm(false);
     $searchFilterBlockHtml = '';
     if ($this->getHelper('View\\Ebay')->is3rdPartyShouldBeShown()) {
         $searchFilterBlock = $this->createBlock('Listing\\Search\\Switcher')->setData(['controller_name' => $this->getRequest()->getControllerName()]);
         $searchFilterBlock->setUseConfirm(false);
         $searchFilterBlockHtml = $searchFilterBlock->toHtml();
     }
     return '<div class="page-main-actions"><div class="filter_block">' . $marketplaceFilterBlock->toHtml() . $accountFilterBlock->toHtml() . $searchFilterBlockHtml . '</div></div>' . parent::_toHtml();
 }
コード例 #5
0
ファイル: Log.php プロジェクト: Doability/magento2dev
 protected function _toHtml()
 {
     $componentNick = $this->getHelper('Data\\GlobalData')->getValue('component_nick');
     $marketplaceFilterBlock = $this->createBlock('Marketplace\\Switcher')->setData(['component_mode' => $componentNick, 'controller_name' => $this->getRequest()->getControllerName()]);
     $marketplaceFilterBlock->setUseConfirm(false);
     $accountFilterBlock = $this->createBlock('Account\\Switcher')->setData(['component_mode' => $componentNick, 'controller_name' => $this->getRequest()->getControllerName()]);
     $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();
 }
コード例 #6
0
ファイル: View.php プロジェクト: Doability/magento2dev
    protected function _toHtml()
    {
        $block = $this->createBlock('HelpBlock')->setData(['content' => $this->__('In this Section you can find all Item Variations with possibility to search, filter,
                sort etc.<br/><br/>

                You can add eBay Catalog Identifiers for each Variation separately.
                In case the Value of eBay Catalog Identifier
                is provided here it will be used in priority over eBay Catalog Identifiers
                Settings of Description Policy.<br/><br/>

                For Bundle Products and Simple Products with Custom Options Settings for
                eBay Catalog Identifiers can be
                provided only for each Variation separately here, as Description Policy Settings cannot be applied
                for them.<br/><br/>

                <strong>Note:</strong> markers <strong>"will be added"</strong> and <strong>"will be deleted"</strong>
                mean that Variation will be Added/Removed during the next Revise Action.')]);
        return $block->toHtml() . parent::_toHtml();
    }
コード例 #7
0
ファイル: Add.php プロジェクト: Doability/magento2dev
 protected function _toHtml()
 {
     return '<div id="add_products_progress_bar"></div>' . '<div id="add_products_container">' . parent::_toHtml() . '</div>' . $this->getAutoactionPopupHtml();
 }
コード例 #8
0
ファイル: Product.php プロジェクト: Doability/magento2dev
 protected function _toHtml()
 {
     return '<div id="add_products_progress_bar"></div>' . '<div id="add_products_container">' . parent::_toHtml() . '</div>';
 }
コード例 #9
0
ファイル: View.php プロジェクト: Doability/magento2dev
    protected function _toHtml()
    {
        /** @var $helper \Ess\M2ePro\Helper\Data */
        $helper = $this->getHelper('Data');
        $component = \Ess\M2ePro\Helper\Component\Ebay::NICK;
        $logViewUrl = $this->getUrl('*/ebay_listing_other_log/index', array('back' => $helper->makeBackUrlParam('*/listing_other/index')));
        $someProductsWereNotMappedMessage = 'No matches were found. Please change the Mapping Attributes in <strong>';
        $someProductsWereNotMappedMessage .= 'Configuration > Account > 3rd Party Listings</strong> ';
        $someProductsWereNotMappedMessage .= 'or try to map manually.';
        $someProductsWereNotMappedMessage = $helper->escapeJs($this->__($someProductsWereNotMappedMessage));
        // M2ePro_TRANSLATIONS
        // "%task_title%" Task has completed with warnings. <a target="_blank" href="%url%">View Log</a> for details.
        $temp = '"%task_title%" Task has completed with warnings. ';
        $temp .= '<a target="_blank" href="%url%">View Log</a> for details.';
        $taskCompletedWarningMessage = $this->__($temp);
        // M2ePro_TRANSLATIONS
        // "%task_title%" Task has completed with errors. <a target="_blank" href="%url%">View Log</a> for details.
        $temp = '"%task_title%" Task has completed with errors. ';
        $temp .= '<a target="_blank" href="%url%">View Log</a> for details.';
        $taskCompletedErrorMessage = $this->__($temp);
        $this->jsUrl->addUrls($helper->getControllerActions('Listing\\Other'));
        $this->jsUrl->addUrls(['ebay_listing_other_log/index' => $this->getUrl('*/ebay_listing_other_log/index'), 'listing_other_mapping/map' => $this->getUrl('*/listing_other_mapping/map'), 'logViewUrl' => $logViewUrl, 'getErrorsSummary' => $this->getUrl('*/listing_other/getErrorsSummary'), 'runReviseProducts' => $this->getUrl('*/ebay_listing_other/runReviseProducts'), 'runRelistProducts' => $this->getUrl('*/ebay_listing_other/runRelistProducts'), 'runStopProducts' => $this->getUrl('*/ebay_listing_other/runStopProducts'), 'mapAutoToProduct' => $this->getUrl('*/listing_other_mapping/autoMap'), 'prepareData' => $this->getUrl('*/listing_other_moving/prepareMoveToListing'), 'moveToListingGridHtml' => $this->getUrl('*/ebay_listing_other_moving/moveToListingGrid'), 'getFailedProductsGridHtml' => $this->getUrl('*/listing_other_moving/getFailedProductsGrid'), 'tryToMoveToListing' => $this->getUrl('*/listing_other_moving/tryToMoveToListing'), 'moveToListing' => $this->getUrl('*/listing_other_moving/moveToListing'), 'removingProducts' => $this->getUrl('*/ebay_listing_other/removing'), 'unmappingProducts' => $this->getUrl('*/listing_other_mapping/unmapping')]);
        $this->jsTranslator->addTranslations(['Map Item "%product_title%" with Magento Product' => $this->__('Map Item "%product_title%" with Magento Product'), 'Product does not exist.' => $this->__('Product does not exist.'), 'Please enter correct Product ID.' => $this->__('Please enter correct Product ID.'), 'Product(s) was successfully Mapped.' => $this->__('Product(s) was successfully Mapped.'), 'Please enter correct Product ID or SKU' => $this->__('Please enter correct Product ID or SKU'), 'failed_mapped' => $someProductsWereNotMappedMessage, 'successfully_mapped' => $this->__('Product was successfully Mapped.'), 'mapping_product_title' => $this->__('Mapping Product'), 'product_does_not_exist' => $this->__('Product does not exist.'), 'select_simple_product' => $this->__('Current eBay version only supports Simple Products in Mapping. Please, choose Simple Product.'), 'invalid_data' => $this->__('Please enter correct Product ID.'), 'enter_product_or_sku' => $this->__('Please enter correct Product ID or SKU'), 'automap_progress_title' => $this->__('Map Item(s) to Products'), 'processing_data_message' => $this->__('Processing %product_title% Product(s).'), 'popup_title' => $this->__('Moving eBay Items'), 'popup_title_single' => $this->__('Move Item "%product_title%" to the M2E Pro Listing'), 'failed_products_popup_title' => $this->__('Product(s) failed to move'), 'successfully_moved' => $this->__('Product(s) was successfully Moved.'), 'products_were_not_moved' => $this->__('Products were not Moved. <a target="_blank" href="%url%">View Log</a> for details.', $logViewUrl), 'some_products_were_not_moved' => $this->__('Some of the Products were not Moved. <a target="_blank" href="%url%">View Log</a> for details.', $logViewUrl), 'not_enough_data' => $this->__('Not enough data.'), 'successfully_unmapped' => $this->__('Product(s) was successfully Unmapped.'), 'successfully_removed' => $this->__('Product(s) was successfully Removed.'), 'task_completed_message' => $this->__('Task completed. Please wait ...'), 'task_completed_success_message' => $this->__('"%task_title%" Task has successfully completed.'), 'task_completed_warning_message' => $taskCompletedWarningMessage, 'task_completed_error_message' => $taskCompletedErrorMessage, 'sending_data_message' => $this->__('Sending %product_title% Product(s) data on eBay.'), 'view_all_product_log_message' => $this->__('View Full Product Log.'), 'listing_locked_message' => $this->__('The Listing was locked by another process. Please try again later.'), 'listing_empty_message' => $this->__('Listing is empty.'), 'listing_all_items_message' => $this->__('Listing All Items On eBay'), 'listing_selected_items_message' => $this->__('Listing Selected Items On eBay'), 'revising_selected_items_message' => $this->__('Revising Selected Items On eBay'), 'relisting_selected_items_message' => $this->__('Relisting Selected Items On eBay'), 'stopping_selected_items_message' => $this->__('Stopping Selected Items On eBay'), 'stopping_and_removing_selected_items_message' => $this->__('Stopping On eBay And Removing From Listing Selected Items'), 'select_items_message' => $this->__('Please select the Products you want to perform the Action on.'), 'select_action_message' => $this->__('Please select Action.'), 'select_only_mapped_products' => $this->__('Only Mapped Products must be selected.'), 'select_the_same_type_products' => $this->__('Selected Items must belong to the same Account and Site.')]);
        $this->js->addRequireJs(['jQuery' => 'jquery', 'p' => 'M2ePro/Plugin/ProgressBar', 'a' => 'M2ePro/Plugin/AreaWrapper', 'lm' => 'M2ePro/Listing/Moving', 'lom' => 'M2ePro/Listing/Other/Mapping', 'loa' => 'M2ePro/Listing/Other/AutoMapping', 'lor' => 'M2ePro/Listing/Other/Removing', 'lou' => 'M2ePro/Listing/Other/Unmapping', 'elog' => 'M2ePro/Ebay/Listing/Other/Grid', 'eloa' => 'M2ePro/Ebay/Listing/Other/Action'], <<<JS

        M2ePro.customData.componentMode = '{$component}';
        M2ePro.customData.gridId = 'ebayListingOtherGrid';

        window.ListingProgressBarObj = new ProgressBar('listing_other_progress_bar');
        window.GridWrapperObj = new AreaWrapper('listing_other_content_container');

        window.EbayListingOtherGridObj = new EbayListingOtherGrid('ebayListingOtherViewGrid');
        window.EbayListingOtherMappingObj = new ListingOtherMapping(EbayListingOtherGridObj,'ebay');

        EbayListingOtherGridObj.movingHandler.setOptions(M2ePro);
        EbayListingOtherGridObj.actionHandler.setOptions(M2ePro);
        EbayListingOtherGridObj.autoMappingHandler.setOptions(M2ePro);
        EbayListingOtherGridObj.removingHandler.setOptions(M2ePro);
        EbayListingOtherGridObj.unmappingHandler.setOptions(M2ePro);

        jQuery(function() {
            EbayListingOtherGridObj.afterInitPage();
        });
JS
);
        $mapToProductBlock = $this->createBlock('Listing\\Other\\Mapping');
        return $mapToProductBlock->toHtml() . '<div id="listing_other_progress_bar"></div>' . '<div id="listing_container_errors_summary" class="errors_summary" style="display: none;"></div>' . '<div id="listing_other_content_container">' . parent::_toHtml() . '</div>';
    }
コード例 #10
0
ファイル: View.php プロジェクト: Doability/magento2dev
 protected function _toHtml()
 {
     return '<div id="listing_view_progress_bar"></div>' . '<div id="listing_container_errors_summary" class="errors_summary" style="display: none;"></div>' . '<div id="listing_view_content_container">' . parent::_toHtml() . '</div>';
 }
コード例 #11
0
ファイル: View.php プロジェクト: Doability/magento2dev
    protected function _toHtml()
    {
        $componentMode = \Ess\M2ePro\Helper\Component\Amazon::NICK;
        $this->jsUrl->addUrls(['amazon_listing_other_log/index' => $this->getUrl('*/amazon_listing_other_log/index', array('back' => $this->getHelper('Data')->makeBackUrlParam('*/amazon_listing_other/index'))), 'listing_other_mapping/map' => $this->getUrl('*/listing_other_mapping/map'), 'prepareData' => $this->getUrl('*/listing_other_moving/prepareMoveToListing'), 'createDefaultListing' => $this->getUrl('*/listing_other_moving/createDefaultListing'), 'moveToListingGridHtml' => $this->getUrl('*/listing_other_moving/moveToListingGrid'), 'getFailedProductsGridHtml' => $this->getUrl('*/listing_other_moving/getFailedProductsGrid'), 'tryToMoveToListing' => $this->getUrl('*/listing_other_moving/tryToMoveToListing'), 'moveToListing' => $this->getUrl('*/listing_other_moving/moveToListing'), 'mapAutoToProduct' => $this->getUrl('*/listing_other_mapping/autoMap'), 'removingProducts' => $this->getUrl('*/amazon_listing_other/removing'), 'unmappingProducts' => $this->getUrl('*/listing_other_mapping/unmapping'), 'amazon_listing/getAFNQtyBySku' => $this->getUrl('*/amazon_listing/getAFNQtyBySku')]);
        $someProductsWereNotMappedMessage = 'No matches were found. Please change the Mapping Attributes in <strong>';
        $someProductsWereNotMappedMessage .= 'Configuration > Account > 3rd Party Listings</strong> ';
        $someProductsWereNotMappedMessage .= 'or try to map manually.';
        $someProductsWereNotMappedMessage = $this->__($someProductsWereNotMappedMessage);
        $createListing = $this->__('Listings, which have the same Marketplace and Account were not found.');
        $createListing .= $this->__('Would you like to create one with Default Settings ?');
        $this->jsTranslator->addTranslations(['Map Item "%product_title%" with Magento Product' => $this->__('Map Item "%product_title%" with Magento Product'), 'Product does not exist.' => $this->__('Product does not exist.'), 'Please enter correct Product ID.' => $this->__('Please enter correct Product ID.'), 'Product(s) was successfully Mapped.' => $this->__('Product(s) was successfully Mapped.'), 'Please enter correct Product ID or SKU' => $this->__('Please enter correct Product ID or SKU'), 'Current version only supports Simple Products. Please, choose Simple Product.' => $this->__('Current version only supports Simple Products. Please, choose Simple Product.'), 'Item was not Mapped as the chosen %product_id% Simple Product has Custom Options.' => $this->__('Item was not Mapped as the chosen %product_id% Simple Product has Custom Options.'), 'create_listing' => $createListing, 'popup_title' => $this->__('Moving Amazon Items'), 'popup_title_single' => $this->__('Move Item "%product_title%" to the M2E Pro Listing'), 'failed_products_popup_title' => $this->__('Products failed to move'), 'confirm' => $this->__('Are you sure?'), 'successfully_moved' => $this->__('Product(s) was successfully Moved.'), 'products_were_not_moved' => $this->__('Products were not Moved. <a target="_blank" href="%url%">View Log</a> for details.'), 'some_products_were_not_moved' => $this->__('Some of the Products were not Moved. <a target="_blank" href="%url%">View Log</a> for details.'), 'not_enough_data' => $this->__('Not enough data'), 'successfully_unmapped' => $this->__('Product(s) was successfully Unmapped.'), 'successfully_removed' => $this->__('Product(s) was successfully Removed.'), 'select_items_message' => $this->__('Please select the Products you want to perform the Action on.'), 'select_action_message' => $this->__('Please select Action.'), 'automap_progress_title' => $this->__('Map Item(s) to Products'), 'processing_data_message' => $this->__('Processing %product_title% Product(s).'), 'successfully_mapped' => $this->__('Product was successfully Mapped.'), 'failed_mapped' => $someProductsWereNotMappedMessage, 'select_only_mapped_products' => $this->__('Only Mapped Products must be selected.'), 'select_the_same_type_products' => $this->__('Selected Items must belong to the same Account and Marketplace.'), 'view_all_product_log_message' => $this->__('View Full Product Log.'), 'success_word' => $this->__('Success'), 'notice_word' => $this->__('Notice'), 'warning_word' => $this->__('Warning'), 'error_word' => $this->__('Error'), 'close_word' => $this->__('Close'), 'task_completed_message' => $this->__('Task completed. Please wait ...')]);
        $this->js->addRequireJs(['jQuery' => 'jquery', 'p' => 'M2ePro/Plugin/ProgressBar', 'a' => 'M2ePro/Plugin/AreaWrapper', 'lm' => 'M2ePro/Listing/Moving', 'lom' => 'M2ePro/Listing/Other/Mapping', 'loa' => 'M2ePro/Listing/Other/AutoMapping', 'lor' => 'M2ePro/Listing/Other/Removing', 'lou' => 'M2ePro/Listing/Other/Unmapping', 'elog' => 'M2ePro/Amazon/Listing/Other/Grid', 'eloa' => 'M2ePro/Amazon/Listing/AfnQty'], <<<JS

        M2ePro.customData.componentMode = '{$componentMode}';
        M2ePro.customData.gridId = 'amazonListingOtherGrid';

        window.ListingProgressBarObj = new ProgressBar('listing_other_progress_bar');
        window.GridWrapperObj = new AreaWrapper('listing_other_content_container');

        window.AmazonListingOtherGridObj    = new AmazonListingOtherGrid('amazonListingOtherGrid');
        window.AmazonListingOtherMappingObj = new ListingOtherMapping(AmazonListingOtherGridObj, 'amazon');

        AmazonListingOtherGridObj.movingHandler.setOptions(M2ePro);
        AmazonListingOtherGridObj.autoMappingHandler.setOptions(M2ePro);
        AmazonListingOtherGridObj.removingHandler.setOptions(M2ePro);
        AmazonListingOtherGridObj.unmappingHandler.setOptions(M2ePro);

        window.AmazonListingAfnQtyObj = new AmazonListingAfnQty();

        jQuery(function() {
            AmazonListingOtherGridObj.afterInitPage();
        });
JS
);
        return '<div id="listing_other_progress_bar"></div>' . '<div id="listing_container_errors_summary" class="errors_summary" style="display: none;"></div>' . '<div id="listing_other_content_container">' . parent::_toHtml() . '</div>';
    }
コード例 #12
0
ファイル: Variations.php プロジェクト: Doability/magento2dev
 protected function _toHtml()
 {
     return '<div id="listing_product_variation_progress_bar"></div>' . '<div id="listing_product_variation_action_messages_container"></div>' . '<div id="listing_product_variation_errors_summary_container" class="errors_summary" style="display: none;">
     </div>' . '<div id="listing_product_variation_content_container">' . parent::_toHtml() . '</div>';
 }
コード例 #13
0
ファイル: SearchAsin.php プロジェクト: Doability/magento2dev
    protected function _toHtml()
    {
        $createEmptyListingMessage = $this->__('Are you sure you want to create empty Listing?');
        $taskCompletedMessage = $this->__('Task completed. Please wait ...');
        $taskCompletedSuccessMessage = $this->__('"%task_title%" Task has successfully submitted to be processed.');
        $taskCompletedWarningMessage = $this->__('"%task_title%" Task has completed with warnings. <a target="_blank" href="%url%">View Log</a> for details.');
        $taskCompletedErrorMessage = $this->__('"%task_title%" Task has completed with errors. <a target="_blank" href="%url%">View Log</a> for details.');
        $sendingDataToAmazonMessage = $this->__('Sending %product_title% Product(s) data on Amazon.');
        $selectItemsMessage = $this->__('Please select the Products you want to perform the Action on.');
        $assignString = $this->__('Assign');
        $textConfirm = $this->__('Are you sure?');
        $enterProductSearchQueryMessage = $this->__('Please enter Product Title or ASIN/ISBN/UPC/EAN.');
        $autoMapAsinSearchProducts = $this->__('Search %product_title% Product(s) on Amazon.');
        $autoMapAsinProgressTitle = $this->__('Automatic Assigning ASIN/ISBN to Item(s)');
        $autoMapAsinErrorMessage = $this->__('Server is currently unavailable. Please try again later.');
        $newAsinNotAvailable = $this->__('The new ASIN/ISBN creation functionality is not available in %code% Marketplace yet.');
        $notSynchronizedMarketplace = $this->__('In order to use New ASIN/ISBN functionality, please re-synchronize Marketplace data.') . ' ' . $this->__('Press "Save And Update" Button after redirect on Marketplace Page.');
        $newAsinPopupTitle = $this->__('New ASIN/ISBN creation');
        $notCompletedPopupTitle = $this->__('Adding of New Products to the Listing was not competed');
        $notCompletedPopupText = $this->__('
            The Process of Adding new Products was not ended for this Listing.<br/><br/>
            To work with Products in Listing it is necessary to follow all the Steps of Adding Products.
            You should specify all Required Data to complete
            Adding Process and then press <strong>Continue</strong> Button.<br/><br/>
            In case you do not want to Add selected Products to the Listing,
            you can press <strong>Back</strong> Button and you will be able to manage your Listing.
        ');
        $variationManageMatchedAttributesErrorDuplicateSelection = $this->__('You can not choose the same Attribute twice.');
        $this->jsTranslator->addTranslations(['select_items_message' => $selectItemsMessage, 'create_empty_listing_message' => $createEmptyListingMessage, 'sending_data_message' => $sendingDataToAmazonMessage, 'new_asin_not_available' => $newAsinNotAvailable, 'not_synchronized_marketplace' => $notSynchronizedMarketplace, 'enter_productSearch_query' => $enterProductSearchQueryMessage, 'automap_asin_search_products' => $autoMapAsinSearchProducts, 'automap_asin_progress_title' => $autoMapAsinProgressTitle, 'automap_error_message' => $autoMapAsinErrorMessage, 'task_completed_message' => $taskCompletedMessage, 'task_completed_success_message' => $taskCompletedSuccessMessage, 'task_completed_warning_message' => $taskCompletedWarningMessage, 'task_completed_error_message' => $taskCompletedErrorMessage, 'assign' => $assignString, 'confirm' => $textConfirm, 'new_asin_popup_title' => $newAsinPopupTitle, 'not_completed_popup_title' => $notCompletedPopupTitle, 'not_completed_popup_text' => $notCompletedPopupText, 'variation_manage_matched_attributes_error_duplicate' => $variationManageMatchedAttributesErrorDuplicateSelection, 'Clear Search Results' => $this->__('Clear Search Results')]);
        $this->jsUrl->addUrls($this->getHelper('Data')->getControllerActions('Amazon\\Listing'));
        $this->jsUrl->addUrls($this->getHelper('Data')->getControllerActions('Amazon\\Listing\\Product'));
        $this->jsUrl->addUrls($this->getHelper('Data')->getControllerActions('Amazon\\Listing\\Product\\Add', ['wizard' => $this->getRequest()->getParam('wizard')]));
        $this->jsUrl->addUrls($this->getHelper('Data')->getControllerActions('Amazon\\Listing\\Product\\Search'));
        $this->jsUrl->addUrls(['back' => $this->getUrl('*/*/index')]);
        $this->js->add(<<<JS
    require([
        'M2ePro/Plugin/ProgressBar',
        'M2ePro/Plugin/AreaWrapper'
    ],function() {
        Common.prototype.scrollPageToTop = function() { return; }

        ListingProgressBarObj = new ProgressBar('search_asin_progress_bar');
        GridWrapperObj = new AreaWrapper('search_asin_products_container');
    });
JS
);
        return '<div id="search_asin_progress_bar"></div>' . '<div id="search_asin_products_container">' . parent::_toHtml() . '</div>';
    }