本文整理汇总了PHP中Mage_Adminhtml_Block_Widget_Grid_Container::getGridHtml方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Adminhtml_Block_Widget_Grid_Container::getGridHtml方法的具体用法?PHP Mage_Adminhtml_Block_Widget_Grid_Container::getGridHtml怎么用?PHP Mage_Adminhtml_Block_Widget_Grid_Container::getGridHtml使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Adminhtml_Block_Widget_Grid_Container
的用法示例。
在下文中一共展示了Mage_Adminhtml_Block_Widget_Grid_Container::getGridHtml方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getGridHtml
public function getGridHtml()
{
$needMigrate = (bool) Mage::helper('M2ePro/Module')->getConfig()->getGroupValue('/ebay/order/migration_to_v611/', 'is_need_migrate');
$isMigrationFinished = (bool) Mage::helper('M2ePro/Module')->getConfig()->getGroupValue('/ebay/order/migration_to_v611/', 'is_migration_finished');
if ($needMigrate && !$isMigrationFinished) {
/** @var Ess_M2ePro_Model_Upgrade_Migration_ToVersion611_OrdersData $migrationModel */
$migrationModel = Mage::getModel('M2ePro/Upgrade_Migration_ToVersion611_OrdersData');
$notMigratedOrdersCount = $migrationModel->getNotMigratedOrdersCount();
if ($notMigratedOrdersCount > 0) {
/** @var Ess_M2ePro_Block_Adminhtml_Ebay_Order_MigrationToV611 $migrationBlock */
$migrationBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_order_migrationToV611');
$migrationBlock->setNotMigratedOrdersCount($notMigratedOrdersCount);
return $migrationBlock->toHtml();
} else {
$migrationModel->finishMigration();
}
}
//------------------------------
$helpBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_order_help');
$editItemBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_order_item_edit');
//------------------------------
//------------------------------
$marketplaceFilterBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_marketplace_switcher', '', array('component_mode' => Ess_M2ePro_Helper_Component_Ebay::NICK, 'controller_name' => 'adminhtml_ebay_order'));
$marketplaceFilterBlock->setUseConfirm(false);
//------------------------------
//------------------------------
$accountFilterBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_account_switcher', '', array('component_mode' => Ess_M2ePro_Helper_Component_Ebay::NICK, 'controller_name' => 'adminhtml_ebay_order'));
$accountFilterBlock->setUseConfirm(false);
//------------------------------
//------------------------------
$orderStateSwitcherBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_order_notCreatedFilter', '', array('component_mode' => Ess_M2ePro_Helper_Component_Ebay::NICK, 'controller' => 'adminhtml_ebay_order'));
//------------------------------
return $helpBlock->toHtml() . '<div class="filter_block">' . $marketplaceFilterBlock->toHtml() . $accountFilterBlock->toHtml() . $orderStateSwitcherBlock->toHtml() . '</div>' . $editItemBlock->toHtml() . parent::getGridHtml();
}
示例2: getGridHtml
public function getGridHtml()
{
$listingId = (int) $this->getRequest()->getParam('listing_id');
$viewHeaderBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_listing_view_header', '', array('listing' => Mage::helper('M2ePro/Component_Ebay')->getCachedObject('Listing', $listingId)));
$helpBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_listing_settings_help');
return $viewHeaderBlock->toHtml() . $helpBlock->toHtml() . parent::getGridHtml();
}
示例3: getGridHtml
public function getGridHtml()
{
$helpBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_message_help');
$filtersBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_account_switcher', '', array('component_mode' => Ess_M2ePro_Helper_Component_Ebay::NICK, 'controller_name' => 'adminhtml_ebay_message'));
$filtersBlock->setUseConfirm(false);
$formBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_message_form');
return $helpBlock->toHtml() . $filtersBlock->toHtml() . $formBlock->toHtml() . parent::getGridHtml();
}
示例4: getGridHtml
public function getGridHtml()
{
$listing = Mage::helper('M2ePro/Component')->getCachedUnknownObject('Listing', $this->getRequest()->getParam('id'));
$viewHeaderBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_listing_view_header', '', array('listing' => $listing));
$helpBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_common_amazon_listing_add_searchAsin_help');
$productSearchBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_common_amazon_listing_productSearch_main');
return $helpBlock->toHtml() . $viewHeaderBlock->toHtml() . $productSearchBlock->toHtml() . parent::getGridHtml();
}
示例5: getGridHtml
public function getGridHtml()
{
//------------------------------
$listing = Mage::helper('M2ePro/Data_Global')->getValue('temp_data');
$header = $this->getLayout()->createBlock('M2ePro/adminhtml_listing_view_header', '', array('listing' => $listing));
//------------------------------
return $header->toHtml() . parent::getGridHtml();
}
示例6: getGridHtml
public function getGridHtml()
{
if ($this->getRequest()->isXmlHttpRequest()) {
return parent::getGridHtml();
}
$listing = Mage::helper('M2ePro/Component_Ebay')->getCachedObject('Listing', $this->getRequest()->getParam('listing_id'));
$viewHeaderBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_listing_view_header', '', array('listing' => $listing));
return $viewHeaderBlock->toHtml() . parent::getGridHtml();
}
示例7: getGridHtml
public function getGridHtml()
{
$accountId = $this->getRequest()->getParam('account');
//------------------------------
$viewHeaderBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_listing_other_view_header', '', array('account' => Mage::helper('M2ePro/Component_Buy')->getCachedObject('Account', $accountId), 'marketplace' => Mage::helper('M2ePro/Component_Buy')->getMarketplace()));
//------------------------------
$mapToProductBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_listing_other_mapping');
return $viewHeaderBlock->toHtml() . $mapToProductBlock->toHtml() . parent::getGridHtml();
}
示例8: getGridHtml
public function getGridHtml()
{
$listing = Mage::helper('M2ePro/Component')->getCachedUnknownObject('Listing', $this->getRequest()->getParam('id'));
$viewHeaderBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_listing_view_header', '', array('listing' => $listing));
$helpBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_common_amazon_listing_add_searchAsin_help');
$productSearchBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_common_amazon_listing_productSearch_main');
// ---------------------------------------
$data = array('id' => 'productSearch_cleanSuggest_button', 'label' => Mage::helper('M2ePro')->__('Search ASIN/ISBN Manually'), 'class' => 'productSearch_cleanSuggest_button', 'onclick' => 'ListingGridHandlerObj.productSearchHandler.clearSearchResultsAndManualSearch()');
$buttonResetBlock = $this->getLayout()->createBlock('adminhtml/widget_button')->setData($data);
$productSearchBlock->setChild('productSearch_cleanSuggest_button', $buttonResetBlock);
// ---------------------------------------
return $helpBlock->toHtml() . $viewHeaderBlock->toHtml() . $productSearchBlock->toHtml() . parent::getGridHtml();
}
示例9: getGridHtml
public function getGridHtml()
{
//------------------------------
$helpBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_order_help');
$editItemBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_order_item_edit');
//------------------------------
//------------------------------
$marketplaceFilterBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_marketplace_switcher', '', array('component_mode' => Ess_M2ePro_Helper_Component_Ebay::NICK, 'controller_name' => 'adminhtml_ebay_order'));
$marketplaceFilterBlock->setUseConfirm(false);
//------------------------------
//------------------------------
$accountFilterBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_account_switcher', '', array('component_mode' => Ess_M2ePro_Helper_Component_Ebay::NICK, 'controller_name' => 'adminhtml_ebay_order'));
$accountFilterBlock->setUseConfirm(false);
//------------------------------
//------------------------------
$orderStateSwitcherBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_order_notCreatedFilter', '', array('component_mode' => Ess_M2ePro_Helper_Component_Ebay::NICK, 'controller' => 'adminhtml_ebay_order'));
//------------------------------
return $helpBlock->toHtml() . '<div class="filter_block">' . $marketplaceFilterBlock->toHtml() . $accountFilterBlock->toHtml() . $orderStateSwitcherBlock->toHtml() . '</div>' . $editItemBlock->toHtml() . parent::getGridHtml();
}
示例10: getGridHtml
public function getGridHtml()
{
$listing = Mage::helper('M2ePro/Component')->getCachedUnknownObject('Listing', $this->getRequest()->getParam('id'));
$viewHeaderBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_listing_view_header', '', array('listing' => $listing));
$urls = Mage::helper('M2ePro')->getControllerActions('adminhtml_common_listing_autoAction', array('listing_id' => $this->getRequest()->getParam('id'), 'component' => $this->getData('component')));
$urls = json_encode($urls);
/** @var $helper Ess_M2ePro_Helper_Data */
$helper = Mage::helper('M2ePro');
$translations = json_encode(array('Auto Add/Remove Rules' => $helper->__('Auto Add/Remove Rules'), 'Based on Magento Categories' => $helper->__('Based on Magento Categories'), 'You must select at least 1 Category.' => $helper->__('You must select at least 1 Category.'), 'Rule with the same Title already exists.' => $helper->__('Rule with the same Title already exists.')));
$js = <<<HTML
<script type="text/javascript">
M2ePro.url.add({$urls});
M2ePro.translator.add({$translations});
ListingAutoActionHandlerObj = new ListingAutoActionHandler();
</script>
HTML;
return $viewHeaderBlock->toHtml() . parent::getGridHtml() . $js;
}
示例11: getGridHtml
public function getGridHtml()
{
/** @var $helper Ess_M2ePro_Helper_Data */
$helper = Mage::helper('M2ePro');
$component = Ess_M2ePro_Helper_Component_Buy::NICK;
$temp = $helper->getSessionValue('products_ids_for_list', true);
$productsIdsForList = empty($temp) ? '' : $temp;
$listingData = $helper->getGlobalValue('temp_data');
$gridId = 'buyListingViewGrid' . $listingData['id'];
$ignoreListings = json_encode(array($listingData['id']));
$logViewUrl = $this->getUrl('*/adminhtml_log/listing', array('id' => $listingData['id'], 'back' => $helper->makeBackUrlParam('*/adminhtml_buy_listing/view', array('id' => $listingData['id']))));
$checkLockListing = $this->getUrl('*/adminhtml_listing/checkLockListing', array('component' => $component));
$lockListingNow = $this->getUrl('*/adminhtml_listing/lockListingNow', array('component' => $component));
$unlockListingNow = $this->getUrl('*/adminhtml_listing/unlockListingNow', array('component' => $component));
$getErrorsSummary = $this->getUrl('*/adminhtml_listing/getErrorsSummary');
$runListProducts = $this->getUrl('*/adminhtml_buy_listing/runListProducts');
$runReviseProducts = $this->getUrl('*/adminhtml_buy_listing/runReviseProducts');
$runRelistProducts = $this->getUrl('*/adminhtml_buy_listing/runRelistProducts');
$runStopProducts = $this->getUrl('*/adminhtml_buy_listing/runStopProducts');
$runStopAndRemoveProducts = $this->getUrl('*/adminhtml_buy_listing/runStopAndRemoveProducts');
$prepareData = $this->getUrl('*/adminhtml_listing/prepareMoveToListing');
$getMoveToListingGridHtml = $this->getUrl('*/adminhtml_listing/moveToListingGrid');
$getFailedProductsGridHtml = $this->getUrl('*/adminhtml_listing/getFailedProductsGrid');
$tryToMoveToListing = $this->getUrl('*/adminhtml_buy_listing/tryToMoveToListing');
$moveToListing = $this->getUrl('*/adminhtml_buy_listing/moveToListing');
$tempDropDownHtml = $helper->escapeJs($this->getEditTemplateDropDownHtml());
$tempAddProductsDropDownHtml = $helper->escapeJs($this->getAddProductsDropDownHtml());
$popupTitle = $helper->escapeJs($helper->__('Moving Rakuten.com Items.'));
$failedProductsPopupTitle = $helper->escapeJs($helper->__('Products failed to move'));
$taskCompletedMessage = $helper->escapeJs($helper->__('Task completed. Please wait ...'));
$taskCompletedSuccessMessage = $helper->escapeJs($helper->__('"%s" task has successfully submitted to be processed.'));
$taskCompletedWarningMessage = $helper->escapeJs($helper->__('"%s" task has completed with warnings. <a href="%s">View log</a> for details.'));
$taskCompletedErrorMessage = $helper->escapeJs($helper->__('"%s" task has completed with errors. <a href="%s">View log</a> for details.'));
$lockedObjNoticeMessage = $helper->escapeJs($helper->__('Some Rakuten.com request(s) are being processed now.'));
$sendingDataToBuyMessage = $helper->escapeJs($helper->__('Sending %s product(s) data on Rakuten.com.'));
$viewAllProductLogMessage = $helper->escapeJs($helper->__('View All Product Log.'));
$listingLockedMessage = $helper->escapeJs($helper->__('The listing was locked by another process. Please try again later.'));
$listingEmptyMessage = $helper->escapeJs($helper->__('Listing is empty.'));
$listingAllItemsMessage = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('Listing All Items On Rakuten.com'));
$listingSelectedItemsMessage = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('Listing Selected Items On Rakuten.com'));
$revisingSelectedItemsMessage = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('Revising Selected Items On Rakuten.com'));
$relistingSelectedItemsMessage = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('Relisting Selected Items On Rakuten.com'));
$stoppingSelectedItemsMessage = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('Stopping Selected Items On Rakuten.com'));
$stoppingAndRemovingSelectedItemsMessage = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('Stopping On Rakuten.com And Removing From Listing Selected Items'));
$addNewSkuSelectedItemsMessage = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('Adding New SKU On Rakuten.com'));
$successfullyMovedMessage = $helper->escapeJs($helper->__('Product(s) was successfully moved.'));
$productsWereNotMovedMessage = $helper->escapeJs($helper->__('Product(s) was not moved. <a href="%s">View log</a> for details.'));
$someProductsWereNotMovedMessage = $helper->escapeJs($helper->__('Some product(s) was not moved. <a href="%s">View log</a> for details.'));
$selectItemsMessage = $helper->escapeJs($helper->__('Please select items.'));
$selectActionMessage = $helper->escapeJs($helper->__('Please select action.'));
$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'));
$naString = Mage::helper('M2ePro')->__('N/A');
$assignString = Mage::helper('M2ePro')->__('Assign Rakuten.com SKU');
$textConfirm = $helper->escapeJs($helper->__('Are you sure?'));
$searchBuyComSkuManual = $this->getUrl('*/adminhtml_buy_listing/searchBuyComSkuManual');
$suggestedBuyComSkuGridHmtl = $this->getUrl('*/adminhtml_buy_listing/getSuggestedBuyComSkuGrid');
$searchBuyComSkuAuto = $this->getUrl('*/adminhtml_buy_listing/searchBuyComSkuAuto');
$mapToBuyComSku = $this->getUrl('*/adminhtml_buy_listing/mapToBuyComSku');
$unmapFromBuyComSku = $this->getUrl('*/adminhtml_buy_listing/unmapFromBuyComSku');
$newGeneralId = $this->getUrl('*/adminhtml_buy_template_newProduct');
$marketplaceId = Mage::helper('M2ePro')->getGlobalValue('marketplace_id');
$marketplaceInstance = Mage::helper('M2ePro/Component_Buy')->getMarketplace($marketplaceId);
$marketplace = json_encode($marketplaceInstance->getData());
$isMarketplaceSynchronized = json_encode($marketplaceInstance->getChildObject()->isSynchronized());
$marketplaceSynchUrl = $this->getUrl('*/adminhtml_marketplace/index', array('tab' => Ess_M2ePro_Block_Adminhtml_Marketplace::TAB_ID_RAKUTEN));
$notSynchronizedMarketplace = $helper->escapeJs($helper->__('In order to use New SKU functionality, please re-synchronize marketplace data.') . ' ' . $helper->__('Press "Save And Update" button after redirect on marketplace page.'));
$enterProductSearchQueryMessage = $helper->escapeJs($helper->__('Please enter product name or Rakuten.com SKU/Seller SKU/ISBN/UPC.'));
$autoMapBuyComSkuProgressTitle = $helper->escapeJs($helper->__('Assign Rakuten.com SKU to Item(s)'));
$autoMapBuyComSkuErrorMessage = $helper->escapeJs($helper->__('Server is currently unavailable. Please try again later.'));
$javascriptsMain = <<<JAVASCRIPT
<script type="text/javascript">
if (typeof M2ePro == 'undefined') {
M2ePro = {};
M2ePro.url = {};
M2ePro.formData = {};
M2ePro.customData = {};
M2ePro.text = {};
}
M2ePro.productsIdsForList = '{$productsIdsForList}';
M2ePro.url.logViewUrl = '{$logViewUrl}';
M2ePro.url.checkLockListing = '{$checkLockListing}';
M2ePro.url.lockListingNow = '{$lockListingNow}';
M2ePro.url.unlockListingNow = '{$unlockListingNow}';
M2ePro.url.getErrorsSummary = '{$getErrorsSummary}';
M2ePro.url.runListProducts = '{$runListProducts}';
M2ePro.url.runReviseProducts = '{$runReviseProducts}';
M2ePro.url.runRelistProducts = '{$runRelistProducts}';
M2ePro.url.runStopProducts = '{$runStopProducts}';
M2ePro.url.runStopAndRemoveProducts = '{$runStopAndRemoveProducts}';
M2ePro.url.searchBuyComSkuManual = '{$searchBuyComSkuManual}';
M2ePro.url.searchBuyComSkuAuto = '{$searchBuyComSkuAuto}';
//.........这里部分代码省略.........
示例12: getGridHtml
public function getGridHtml()
{
$helpBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_common_listing_search_help');
return $helpBlock->toHtml() . parent::getGridHtml();
}
示例13: getGridHtml
public function getGridHtml()
{
if ($this->getRequest()->isXmlHttpRequest()) {
return parent::getGridHtml();
}
$listingData = Mage::helper('M2ePro/Data_Global')->getValue('temp_data');
/** @var $helper Ess_M2ePro_Helper_Data */
$helper = Mage::helper('M2ePro');
//------------------------------
$urls = $helper->getControllerActions('adminhtml_common_listing_autoAction', array('listing_id' => $this->getRequest()->getParam('id'), 'component' => Ess_M2ePro_Helper_Component_Amazon::NICK));
$showAutoAction = json_encode((bool) $this->getRequest()->getParam('auto_actions'));
$path = 'adminhtml_common_log/listingProduct';
$urls[$path] = $this->getUrl('*/' . $path, array('channel' => Ess_M2ePro_Helper_Component_Amazon::NICK, 'back' => $helper->makeBackUrlParam('*/adminhtml_common_amazon_listing/view', array('id' => $listingData['id']))));
$path = 'adminhtml_common_listing/duplicateProducts';
$urls[$path] = $this->getUrl('*/' . $path);
$urls = json_encode($urls);
//------------------------------
// todo next (change)
$component = Ess_M2ePro_Helper_Component_Amazon::NICK;
$temp = Mage::helper('M2ePro/Data_Session')->getValue('products_ids_for_list', true);
$productsIdsForList = empty($temp) ? '' : $temp;
$gridId = $this->getChild('grid')->getId();
$ignoreListings = json_encode(array($listingData['id']));
$marketplaceId = Mage::helper('M2ePro/Data_Global')->getValue('marketplace_id');
$marketplaceInstance = Mage::helper('M2ePro/Component_Amazon')->getCachedObject('Marketplace', $marketplaceId);
$marketplace = json_encode($marketplaceInstance->getData());
$isNewAsinAvailable = json_encode($marketplaceInstance->getChildObject()->isNewAsinAvailable());
$isMarketplaceSynchronized = json_encode($marketplaceInstance->getChildObject()->isSynchronized());
$logViewUrl = $this->getUrl('*/adminhtml_common_log/listing', array('id' => $listingData['id'], 'channel' => Ess_M2ePro_Block_Adminhtml_Common_Log_Tabs::TAB_ID_AMAZON, 'back' => $helper->makeBackUrlParam('*/adminhtml_common_amazon_listing/view', array('id' => $listingData['id']))));
$getErrorsSummary = $this->getUrl('*/adminhtml_listing/getErrorsSummary');
$runListProducts = $this->getUrl('*/adminhtml_common_amazon_listing/runListProducts');
$runReviseProducts = $this->getUrl('*/adminhtml_common_amazon_listing/runReviseProducts');
$runRelistProducts = $this->getUrl('*/adminhtml_common_amazon_listing/runRelistProducts');
$runStopProducts = $this->getUrl('*/adminhtml_common_amazon_listing/runStopProducts');
$runStopAndRemoveProducts = $this->getUrl('*/adminhtml_common_amazon_listing/runStopAndRemoveProducts');
$runDeleteAndRemoveProducts = $this->getUrl('*/adminhtml_common_amazon_listing/runDeleteAndRemoveProducts');
$prepareData = $this->getUrl('*/adminhtml_listing_moving/prepareMoveToListing');
$getMoveToListingGridHtml = $this->getUrl('*/adminhtml_listing_moving/moveToListingGrid');
$getFailedProductsGridHtml = $this->getUrl('*/adminhtml_listing_moving/getFailedProductsGrid');
$tryToMoveToListing = $this->getUrl('*/adminhtml_listing_moving/tryToMoveToListing');
$moveToListing = $this->getUrl('*/adminhtml_listing_moving/moveToListing');
$marketplaceSynchUrl = $this->getUrl('*/adminhtml_common_marketplace/index', array('tab' => Ess_M2ePro_Block_Adminhtml_Common_Component_Abstract::TAB_ID_AMAZON));
$getVariationEditPopupUrl = $this->getUrl('*/adminhtml_common_listing/getVariationEditPopup');
$getVariationManagePopupUrl = $this->getUrl('*/adminhtml_common_listing/getVariationManagePopup');
$variationEditActionUrl = $this->getUrl('*/adminhtml_common_listing/variationEdit');
$variationManageActionUrl = $this->getUrl('*/adminhtml_common_listing/variationManage');
$variationManageGenerateActionUrl = $this->getUrl('*/adminhtml_common_listing/variationManageGenerate');
$variationResetActionUrl = $this->getUrl('*/adminhtml_common_listing/variationReset');
$saveListingAdditionalDataActionUrl = $this->getUrl('*/adminhtml_listing/saveListingAdditionalData', array('id' => $listingData['id']));
$popupTitle = $helper->escapeJs($helper->__('Moving Amazon Items'));
$popupTitleSingle = $helper->escapeJs($helper->__('Moving Amazon Item'));
$failedProductsPopupTitle = $helper->escapeJs($helper->__('Products failed to move'));
$taskCompletedMessage = $helper->escapeJs($helper->__('Task completed. Please wait ...'));
$taskCompletedSuccessMessage = $helper->escapeJs($helper->__('"%task_title%" Task has successfully submitted to be processed.'));
$taskCompletedWarningMessage = $helper->escapeJs($helper->__('"%task_title%" Task has completed with warnings. <a target="_blank" href="%url%">View Log</a> for details.'));
$taskCompletedErrorMessage = $helper->escapeJs($helper->__('"%task_title%" Task has completed with errors. <a target="_blank" href="%url%">View Log</a> for details.'));
$lockedObjNoticeMessage = $helper->escapeJs($helper->__('Some Amazon request(s) are being processed now.'));
$sendingDataToAmazonMessage = $helper->escapeJs($helper->__('Sending %product_title% Product(s) data on Amazon.'));
$viewAllProductLogMessage = $helper->escapeJs($helper->__('View All Product Log.'));
$listingLockedMessage = $helper->escapeJs($helper->__('The Listing was locked by another process. Please try again later.'));
$listingEmptyMessage = $helper->escapeJs($helper->__('Listing is empty.'));
$listingAllItemsMessage = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('Listing All Items On Amazon'));
$listingSelectedItemsMessage = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('Listing Selected Items On Amazon'));
$revisingSelectedItemsMessage = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('Revising Selected Items On Amazon'));
$relistingSelectedItemsMessage = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('Relisting Selected Items On Amazon'));
$stoppingSelectedItemsMessage = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('Stopping Selected Items On Amazon'));
$stoppingAndRemovingSelectedItemsMessage = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('Stopping On Amazon And Removing From Listing Selected Items'));
$deletingAndRemovingSelectedItemsMessage = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('Removing From Amazon And Listing Selected Items'));
$successfullyMovedMessage = $helper->escapeJs($helper->__('Product(s) was successfully Moved.'));
$productsWereNotMovedMessage = $helper->escapeJs($helper->__('Product(s) was not Moved. <a target="_blank" href="%url%">View Log</a> for details.'));
$someProductsWereNotMovedMessage = $helper->escapeJs($helper->__('Some Product(s) was not Moved. <a target="_blank" href="%url%">View Log</a> for details.'));
$selectItemsMessage = $helper->escapeJs($helper->__('Please select the Products you want to perform the Action on.'));
$selectActionMessage = $helper->escapeJs($helper->__('Please select Action.'));
$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'));
$assignString = Mage::helper('M2ePro')->__('Assign');
$textConfirm = $helper->escapeJs($helper->__('Are you sure?'));
$searchAsinManual = $this->getUrl('*/adminhtml_common_amazon_listing/searchAsinManual');
$getSearchAsinMenu = $this->getUrl('*/adminhtml_common_amazon_listing/getSearchAsinMenu');
$suggestedAsinGridHmtl = $this->getUrl('*/adminhtml_common_amazon_listing/getSuggestedAsinGrid');
$getCategoriesByAsin = $this->getUrl('*/adminhtml_common_amazon_listing/getCategoriesByAsin');
$searchAsinAuto = $this->getUrl('*/adminhtml_common_amazon_listing/searchAsinAuto');
$getProductsSearchStatus = $this->getUrl('*/adminhtml_common_amazon_listing/getProductsSearchStatus');
$mapToAsin = $this->getUrl('*/adminhtml_common_amazon_listing/mapToAsin');
$unmapFromAsin = $this->getUrl('*/adminhtml_common_amazon_listing/unmapFromAsin');
$mapToNewAsin = $this->getUrl('*/adminhtml_common_amazon_listing/mapToNewAsin');
$variationProductManage = $this->getUrl('*/adminhtml_common_amazon_listing_variation_product_manage/index');
$variationProductSetGeneralIdOwner = $this->getUrl('*/adminhtml_common_amazon_listing_variation_product_manage/setGeneralIdOwner');
$variationProductSetVariationTheme = $this->getUrl('*/adminhtml_common_amazon_listing_variation_product_manage/setVariationTheme');
$variationProductSetMatchedAttributes = $this->getUrl('*/adminhtml_common_amazon_listing_variation_product_manage/setMatchedAttributes');
$variationProductSetListingProductSku = $this->getUrl('*/adminhtml_common_amazon_listing_variation_product_manage/setListingProductSku');
$manageVariationViewTemplateDescriptionsGrid = $this->getUrl('*/adminhtml_common_amazon_listing_variation_product_manage/viewTemplateDescriptionsGrid');
$manageVariationMapToTemplateDescription = $this->getUrl('*/adminhtml_common_amazon_listing_variation_product_manage/mapToTemplateDescription');
$viewVariationsSettingsAjax = $this->getUrl('*/adminhtml_common_amazon_listing_variation_product_manage/viewVariationsSettingsAjax');
$newAsinUrl = $this->getUrl('*/adminhtml_common_amazon_template_newProduct', array('marketplace_id' => Mage::helper('M2ePro/Data_Global')->getValue('marketplace_id')));
$mapToTemplateDescription = $this->getUrl('*/adminhtml_common_amazon_listing/mapToTemplateDescription');
$unmapFromTemplateDescription = $this->getUrl('*/adminhtml_common_amazon_listing/unmapFromTemplateDescription');
//.........这里部分代码省略.........
示例14: getGridHtml
public function getGridHtml()
{
if ($this->getRequest()->isXmlHttpRequest()) {
return parent::getGridHtml();
}
$html = '';
//------------------------------
$data = array('target_css_class' => 'edit_default_settings_drop_down', 'items' => $this->getDefaultSettingsButtonDropDownItems());
$templatesDropDownBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_widget_button_dropDown');
$templatesDropDownBlock->setData($data);
$html .= $templatesDropDownBlock->toHtml();
//------------------------------
//------------------------------
$listingSwitcher = $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_listing_view_listingSwitcher');
$html .= $listingSwitcher->toHtml();
//------------------------------
//------------------------------
$helpBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_listing_view_help');
$html .= $helpBlock->toHtml();
//------------------------------
//------------------------------
$viewHeaderBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_listing_view_header', '', array('listing' => Mage::helper('M2ePro/Data_Global')->getValue('temp_data')));
$html .= $viewHeaderBlock->toHtml();
//------------------------------
//------------------------------
if (Mage::helper('M2ePro/View_Ebay')->isSimpleMode()) {
if ($this->listing->getChildObject()->isEstimatedFeesObtainRequired()) {
$obtain = $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_listing_view_fee_obtain');
$obtain->setData('listing_id', $this->listing->getId());
$html .= $obtain->toHtml();
} elseif ($this->listing->getChildObject()->getEstimatedFees()) {
$preview = $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_listing_view_fee_preview');
$preview->setData('fees', $this->listing->getChildObject()->getEstimatedFees());
$preview->setData('product_name', $this->listing->getChildObject()->getEstimatedFeesSourceProductName());
$html .= $preview->toHtml();
}
}
//------------------------------
//------------------------------
$data = array('target_css_class' => 'add_products_drop_down', 'items' => $this->getAddProductsDropDownItems());
$addProductsDropDownBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_widget_button_dropDown');
$addProductsDropDownBlock->setData($data);
//------------------------------
/** @var $helper Ess_M2ePro_Helper_Data */
$helper = Mage::helper('M2ePro');
//------------------------------
$urls = json_encode(array_merge($helper->getControllerActions('adminhtml_ebay_listing', array('_current' => true)), $helper->getControllerActions('adminhtml_ebay_listing_autoAction', array('listing_id' => $this->getRequest()->getParam('id'))), $helper->getControllerActions('adminhtml_ebay_listing_transferring', array('listing_id' => $this->getRequest()->getParam('id'))), $helper->getControllerActions('adminhtml_ebay_account'), $helper->getControllerActions('adminhtml_ebay_listing_categorySettings'), $helper->getControllerActions('adminhtml_ebay_marketplace'), array('adminhtml_system_store/index' => Mage::helper('adminhtml')->getUrl('adminhtml/system_store/')), array('logViewUrl' => $this->getUrl('M2ePro/adminhtml_common_log/synchronization', array('back' => $helper->makeBackUrlParam('*/adminhtml_common_synchronization/index')))), array('runSynchNow' => $this->getUrl('M2ePro/adminhtml_common_marketplace/runSynchNow')), array('synchCheckProcessingNow' => $this->getUrl('M2ePro/adminhtml_common_synchronization/synchCheckProcessingNow'))));
//------------------------------
//------------------------------
$translations = json_encode(array('Auto Add/Remove Rules' => $helper->__('Auto Add/Remove Rules'), 'Based on Magento Categories' => $helper->__('Based on Magento Categories'), 'You must select at least 1 Category.' => $helper->__('You must select at least 1 Category.'), 'Rule with the same Title already exists.' => $helper->__('Rule with the same Title already exists.'), 'Compatibility Attribute' => $helper->__('Compatibility Attribute'), 'Sell on Another eBay Site' => $helper->__('Sell on Another eBay Site'), 'Product' => $helper->__('Product'), 'Translation Service' => $helper->__('Translation Service'), 'You must select at least 1 Listing.' => $helper->__('You must select at least 1 Listing.'), 'Data migration.' => $helper->__('Data migration...'), 'Creating Policies in process. Please wait...' => $helper->__('Creating Policies in process. Please wait...'), 'Creating Translation Account in process. Please wait...' => $helper->__('Creating Translation Account in process. Please wait...'), 'Creating Listing in process. Please wait...' => $helper->__('Creating Listing in process. Please wait...'), 'Adding Products in process. Please wait...' => $helper->__('Adding Products in process. Please wait...'), 'Products failed to add' => $helper->__('Failed Products'), 'Migration success.' => $helper->__('The Products have been successfully added into Destination Listing.'), 'Migration error.' => $helper->__('The Products have not been added into Destination Listing' . ' because Products with the same Magento Product IDs already exist there.'), 'Some Products Categories Settings are not set or Attributes for Title or Description are empty.' => $helper->__('Some Products Categories Settings are not set' . ' or Attributes for Title or Description are empty.'), 'Another Synchronization Is Already Running.' => $helper->__('Another Synchronization Is Already Running.'), 'Getting information. Please wait ...' => $helper->__('Getting information. Please wait ...'), 'Preparing to start. Please wait ...' => $helper->__('Preparing to start. Please wait ...'), 'Synchronization has successfully ended.' => $helper->__('Synchronization has successfully ended.'), 'Synchronization ended with warnings. <a target="_blank" href="%url%">View Log</a> for details.' => $helper->__('Synchronization ended with warnings. <a target="_blank" href="%url%">View Log</a> for details.'), 'Synchronization ended with errors. <a target="_blank" href="%url%">View Log</a> for details.' => $helper->__('Synchronization ended with errors. <a target="_blank" href="%url%">View Log</a> for details.')));
//------------------------------
$html .= <<<HTML
<script type="text/javascript">
M2ePro.url.add({$urls});
M2ePro.translator.add({$translations});
</script>
HTML;
$javascript = '';
if (!$this->getRequest()->isXmlHttpRequest()) {
$html .= <<<HTML
<script type="text/javascript">
ListingAutoActionHandlerObj = new EbayListingAutoActionHandler();
</script>
HTML;
}
//------------------------------
return $html . $addProductsDropDownBlock->toHtml() . parent::getGridHtml() . $javascript;
}
示例15: getGridHtml
public function getGridHtml()
{
return $this->getStoreSwitcherHtml() . parent::getGridHtml();
}