public function getAmazonTabHtml() { $tutorialShown = Mage::helper('M2ePro/Module')->getConfig()->getGroupValue('/view/common/amazon/listing/', 'tutorial_shown'); if (!$tutorialShown) { return parent::getAmazonTabHtml(); } $javascript = ''; if ($this->getRequest()->isXmlHttpRequest()) { $javascript = $this->getAmazonTabBlock()->getTemplatesButtonJavascript(); } return $javascript . $this->getLayout()->createBlock('M2ePro/adminhtml_common_amazon_listing_filter')->toHtml() . parent::getAmazonTabHtml(); }
public function getAmazonTabHtml() { $helpBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_common_amazon_order_help'); $javascript = $this->getHelpBlockJavascript($helpBlock->getContainerId()); return $javascript . $helpBlock->toHtml() . $this->getAmazonTabBlockFilterHtml() . parent::getAmazonTabHtml(); }
public function getAmazonTabHtml() { /** @var $helper Ess_M2ePro_Helper_Data */ $helper = Mage::helper('M2ePro'); $componentMode = Ess_M2ePro_Helper_Component_Amazon::NICK; $prepareData = $this->getUrl('*/adminhtml_listing_other_moving/prepareMoveToListing'); $createDefaultListingUrl = $this->getUrl('*/adminhtml_listing_other_moving/createDefaultListing'); $getMoveToListingGridHtml = $this->getUrl('*/adminhtml_listing_other_moving/moveToListingGrid'); $getFailedProductsGridHtml = $this->getUrl('*/adminhtml_listing_other_moving/getFailedProductsGrid'); $tryToMoveToListing = $this->getUrl('*/adminhtml_listing_other_moving/tryToMoveToListing'); $moveToListing = $this->getUrl('*/adminhtml_listing_other_moving/moveToListing'); $mapAutoToProductUrl = $this->getUrl('*/adminhtml_listing_other_mapping/autoMap'); $removingProductsUrl = $this->getUrl('*/adminhtml_common_listing_other/removing'); $unmappingProductsUrl = $this->getUrl('*/adminhtml_listing_other_mapping/unmapping'); $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($helper->__($someProductsWereNotMappedMessage)); $successfullyMappedMessage = $helper->escapeJs($helper->__('Product was successfully mapped.')); $createListing = $helper->escapeJs($helper->__('Listings, which have the same Marketplace and Account were not found.')); $createListing .= $helper->escapeJs($helper->__('Would you like to create one with default settings ?')); $popupTitle = $helper->escapeJs($helper->__('Moving Amazon Items.')); $failedProductsPopupTitle = $helper->escapeJs($helper->__('Products failed to move')); $confirmMessage = $helper->escapeJs($helper->__('Are you sure?')); $successfullyMovedMessage = $helper->escapeJs($helper->__('Product(s) was successfully moved.')); $productsWereNotMovedMessage = $helper->escapeJs($helper->__('Products were not moved. <a target="_blank" href="%url%">View log</a> for details.')); $someProductsWereNotMovedMessage = $helper->escapeJs($helper->__('Some of the products were not moved. <a target="_blank" href="%url%">View log</a> for details.')); $notEnoughDataMessage = $helper->escapeJs($helper->__('Not enough data')); $successfullyUnmappedMessage = $helper->escapeJs($helper->__('Product(s) was successfully unmapped.')); $successfullyRemovedMessage = $helper->escapeJs($helper->__('Product(s) was successfully removed.')); $viewAllProductLogMessage = $helper->escapeJs($helper->__('View All Product Log.')); $selectItemsMessage = $helper->escapeJs($helper->__('Please select the products you want to perform the action on.')); $selectActionMessage = $helper->escapeJs($helper->__('Please select action.')); $processingDataMessage = $helper->escapeJs($helper->__('Processing %product_title% product(s).')); $autoMapProgressTitle = $helper->escapeJs($helper->__('Map Item(s) to Products')); $selectOnlyMapped = $helper->escapeJs($helper->__('Only mapped products must be selected.')); $selectTheSameTypeProducts = $helper->escapeJs($helper->__('Selected items must belong to the same Account and Marketplace.')); $successWord = $helper->escapeJs($helper->__('Success')); $noticeWord = $helper->escapeJs($helper->__('Notice')); $warningWord = $helper->escapeJs($helper->__('Warning')); $errorWord = $helper->escapeJs($helper->__('Error')); $closeWord = $helper->escapeJs($helper->__('Close')); $javascriptsMain = <<<JAVASCRIPT <script type="text/javascript"> M2eProAmazon = {}; M2eProAmazon.url = {}; M2eProAmazon.formData = {}; M2eProAmazon.customData = {}; M2eProAmazon.text = {}; M2eProAmazon.url.prepareData = '{$prepareData}'; M2eProAmazon.url.createDefaultListing = '{$createDefaultListingUrl}'; M2eProAmazon.url.getGridHtml = '{$getMoveToListingGridHtml}'; M2eProAmazon.url.getFailedProductsGridHtml = '{$getFailedProductsGridHtml}'; M2eProAmazon.url.tryToMoveToListing = '{$tryToMoveToListing}'; M2eProAmazon.url.moveToListing = '{$moveToListing}'; M2eProAmazon.url.mapAutoToProduct = '{$mapAutoToProductUrl}'; M2eProAmazon.url.removingProducts = '{$removingProductsUrl}'; M2eProAmazon.url.unmappingProducts = '{$unmappingProductsUrl}'; M2eProAmazon.text.create_listing = '{$createListing}'; M2eProAmazon.text.popup_title = '{$popupTitle}'; M2eProAmazon.text.failed_products_popup_title = '{$failedProductsPopupTitle}'; M2eProAmazon.text.confirm = '{$confirmMessage}'; M2eProAmazon.text.successfully_moved = '{$successfullyMovedMessage}'; M2eProAmazon.text.products_were_not_moved = '{$productsWereNotMovedMessage}'; M2eProAmazon.text.some_products_were_not_moved = '{$someProductsWereNotMovedMessage}'; M2eProAmazon.text.not_enough_data = '{$notEnoughDataMessage}'; M2eProAmazon.text.successfully_unmapped = '{$successfullyUnmappedMessage}'; M2eProAmazon.text.successfully_removed = '{$successfullyRemovedMessage}'; M2eProAmazon.text.select_items_message = '{$selectItemsMessage}'; M2eProAmazon.text.select_action_message = '{$selectActionMessage}'; M2eProAmazon.text.automap_progress_title = '{$autoMapProgressTitle}'; M2eProAmazon.text.processing_data_message = '{$processingDataMessage}'; M2eProAmazon.text.successfully_mapped = '{$successfullyMappedMessage}'; M2eProAmazon.text.failed_mapped = '{$someProductsWereNotMappedMessage}'; M2eProAmazon.text.select_only_mapped_products = '{$selectOnlyMapped}'; M2eProAmazon.text.select_the_same_type_products = '{$selectTheSameTypeProducts}'; M2eProAmazon.text.view_all_product_log_message = '{$viewAllProductLogMessage}'; M2eProAmazon.text.success_word = '{$successWord}'; M2eProAmazon.text.notice_word = '{$noticeWord}'; M2eProAmazon.text.warning_word = '{$warningWord}'; M2eProAmazon.text.error_word = '{$errorWord}'; M2eProAmazon.text.close_word = '{$closeWord}'; M2eProAmazon.customData.componentMode = '{$componentMode}'; M2eProAmazon.customData.gridId = 'amazonListingOtherGrid'; var init = function () { AmazonListingOtherGridHandlerObj = new AmazonListingOtherGridHandler('amazonListingOtherGrid'); AmazonListingOtherMappingHandlerObj = new ListingOtherMappingHandler( AmazonListingOtherGridHandlerObj, 'amazon' ); AmazonListingOtherGridHandlerObj.movingHandler.setOptions(M2eProAmazon); AmazonListingOtherGridHandlerObj.autoMappingHandler.setOptions(M2eProAmazon); AmazonListingOtherGridHandlerObj.removingHandler.setOptions(M2eProAmazon); AmazonListingOtherGridHandlerObj.unmappingHandler.setOptions(M2eProAmazon); } if (\$\$('.tabs-horiz').first()) { var amazonTabId = \$\$('.tabs-horiz').first().id + '_amazon'; \$(amazonTabId).observe('click', init); } {$this->isAjax} ? init() : Event.observe(window, 'load', init); </script> JAVASCRIPT; $helpBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_common_amazon_listing_other_help'); return $javascriptsMain . $helpBlock->toHtml() . $this->getAmazonTabBlockFilterHtml() . parent::getAmazonTabHtml(); }
public function getAmazonTabHtml() { return $this->getAmazonTabBlockFilterHtml() . parent::getAmazonTabHtml(); }
public function getAmazonTabHtml() { $helpBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_common_amazon_synchronization_help'); return $helpBlock->toHtml() . parent::getAmazonTabHtml(); }
public function getAmazonTabHtml() { return $this->getLayout()->createBlock('M2ePro/adminhtml_common_amazon_listing_filter')->toHtml() . parent::getAmazonTabHtml(); }