public function getPlayTabHtml() { $helpBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_common_play_order_help'); $javascript = $this->getHelpBlockJavascript($helpBlock->getContainerId()); return $javascript . $helpBlock->toHtml() . $this->getPlayTabBlockFilterHtml() . parent::getPlayTabHtml(); }
public function getPlayTabHtml() { /** @var $helper Ess_M2ePro_Helper_Data */ $helper = Mage::helper('M2ePro'); $componentMode = Ess_M2ePro_Helper_Component_Play::NICK; $logViewUrl = $this->getUrl('*/adminhtml_common_log/listingOther', array('filter' => base64_encode('component_mode=' . Ess_M2ePro_Helper_Component_Play::NICK), 'back' => $helper->makeBackUrlParam('*/adminhtml_common_listing_other/index', array('tab' => Ess_M2ePro_Block_Adminhtml_Common_Component_Abstract::TAB_ID_PLAY)))); $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 Play.com 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).')); $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')); $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.')); $javascriptsMain = <<<JAVASCRIPT <script type="text/javascript"> M2eProPlay = {}; M2eProPlay.url = {}; M2eProPlay.formData = {}; M2eProPlay.customData = {}; M2eProPlay.text = {}; M2eProPlay.url.logViewUrl = '{$logViewUrl}'; M2eProPlay.url.prepareData = '{$prepareData}'; M2eProPlay.url.createDefaultListing = '{$createDefaultListingUrl}'; M2eProPlay.url.getGridHtml = '{$getMoveToListingGridHtml}'; M2eProPlay.url.getFailedProductsGridHtml = '{$getFailedProductsGridHtml}'; M2eProPlay.url.tryToMoveToListing = '{$tryToMoveToListing}'; M2eProPlay.url.moveToListing = '{$moveToListing}'; M2eProPlay.url.mapAutoToProduct = '{$mapAutoToProductUrl}'; M2eProPlay.url.removingProducts = '{$removingProductsUrl}'; M2eProPlay.url.unmappingProducts = '{$unmappingProductsUrl}'; M2eProPlay.text.create_listing = '{$createListing}'; M2eProPlay.text.popup_title = '{$popupTitle}'; M2eProPlay.text.failed_products_popup_title = '{$failedProductsPopupTitle}'; M2eProPlay.text.confirm = '{$confirmMessage}'; M2eProPlay.text.successfully_moved = '{$successfullyMovedMessage}'; M2eProPlay.text.products_were_not_moved = '{$productsWereNotMovedMessage}'; M2eProPlay.text.some_products_were_not_moved = '{$someProductsWereNotMovedMessage}'; M2eProPlay.text.not_enough_data = '{$notEnoughDataMessage}'; M2eProPlay.text.successfully_unmapped = '{$successfullyUnmappedMessage}'; M2eProPlay.text.successfully_removed = '{$successfullyRemovedMessage}'; M2eProPlay.text.select_items_message = '{$selectItemsMessage}'; M2eProPlay.text.select_action_message = '{$selectActionMessage}'; M2eProPlay.text.automap_progress_title = '{$autoMapProgressTitle}'; M2eProPlay.text.processing_data_message = '{$processingDataMessage}'; M2eProPlay.text.successfully_mapped = '{$successfullyMappedMessage}'; M2eProPlay.text.failed_mapped = '{$someProductsWereNotMappedMessage}'; M2eProPlay.text.select_only_mapped_products = '{$selectOnlyMapped}'; M2eProPlay.text.select_the_same_type_products = '{$selectTheSameTypeProducts}'; M2eProPlay.text.view_all_product_log_message = '{$viewAllProductLogMessage}'; M2eProPlay.text.success_word = '{$successWord}'; M2eProPlay.text.notice_word = '{$noticeWord}'; M2eProPlay.text.warning_word = '{$warningWord}'; M2eProPlay.text.error_word = '{$errorWord}'; M2eProPlay.text.close_word = '{$closeWord}'; M2eProPlay.customData.componentMode = '{$componentMode}'; M2eProPlay.customData.gridId = 'playListingOtherGrid'; var init = function () { PlayListingOtherGridHandlerObj = new PlayListingOtherGridHandler('playListingOtherGrid'); PlayListingOtherMappingHandlerObj = new ListingOtherMappingHandler( PlayListingOtherGridHandlerObj, 'play' ); PlayListingOtherGridHandlerObj.movingHandler.setOptions(M2eProPlay); PlayListingOtherGridHandlerObj.autoMappingHandler.setOptions(M2eProPlay); PlayListingOtherGridHandlerObj.removingHandler.setOptions(M2eProPlay); PlayListingOtherGridHandlerObj.unmappingHandler.setOptions(M2eProPlay); } if (\$\$('.tabs-horiz').first()) { var playTabId = \$\$('.tabs-horiz').first().id + '_play'; \$(playTabId).observe('click', init); } {$this->isAjax} ? init() : Event.observe(window, 'load', init); </script> JAVASCRIPT; $helpBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_common_play_listing_other_help'); return $javascriptsMain . $helpBlock->toHtml() . $this->getPlayTabBlockFilterHtml() . parent::getPlayTabHtml(); }
public function getPlayTabHtml() { return $this->getPlayTabBlockFilterHtml() . parent::getPlayTabHtml(); }
public function getPlayTabHtml() { $helpBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_common_play_synchronization_help'); return $helpBlock->toHtml() . parent::getPlayTabHtml(); }
public function getPlayTabHtml() { $tutorialShown = Mage::helper('M2ePro/Module')->getConfig()->getGroupValue('/view/common/play/listing/', 'tutorial_shown'); if (!$tutorialShown) { return parent::getPlayTabHtml(); } $javascript = ''; if ($this->getRequest()->isXmlHttpRequest()) { $javascript = $this->getPlayTabBlock()->getTemplatesButtonJavascript(); } return $javascript . $this->getLayout()->createBlock('M2ePro/adminhtml_common_play_listing_filter')->toHtml() . parent::getPlayTabHtml(); }
public function getPlayTabHtml() { return $this->getLayout()->createBlock('M2ePro/adminhtml_common_play_listing_filter')->toHtml() . parent::getPlayTabHtml(); }