コード例 #1
0
ファイル: Account.php プロジェクト: Doability/magento2dev
 protected function _construct()
 {
     parent::_construct();
     $this->_controller = 'adminhtml_ebay_account';
     $this->buttonList->update('add', 'label', $this->__('Add Account'));
     $this->buttonList->update('add', 'onclick', 'setLocation(\'' . $this->getUrl('*/ebay_account/new') . '\');');
 }
コード例 #2
0
ファイル: Category.php プロジェクト: Doability/magento2dev
 public function _construct()
 {
     parent::_construct();
     // Initialization block
     // ---------------------------------------
     $this->setId('ebayListingCategory');
     $this->_controller = 'adminhtml_ebay_listing_product_category_settings_mode_category';
     // ---------------------------------------
     // Set buttons actions
     // ---------------------------------------
     $this->removeButton('back');
     $this->removeButton('reset');
     $this->removeButton('delete');
     $this->removeButton('add');
     $this->removeButton('save');
     $this->removeButton('edit');
     // ---------------------------------------
     // ---------------------------------------
     $this->_headerText = $this->__('Set eBay Categories (Based On Magento Categories)');
     // ---------------------------------------
     // ---------------------------------------
     $url = $this->getUrl('*/*/', array('step' => 1, '_current' => true));
     $this->addButton('back', array('label' => $this->__('Back'), 'class' => 'back', 'onclick' => 'setLocation(\'' . $url . '\');'));
     // ---------------------------------------
     // ---------------------------------------
     $this->addButton('next', array('id' => 'ebay_listing_category_continue_btn', 'label' => $this->__('Continue'), 'class' => 'action-primary forward', 'onclick' => "EbayListingProductCategorySettingsModeCategoryGridObj.validate()"));
     // ---------------------------------------
 }
コード例 #3
0
ファイル: Product.php プロジェクト: Doability/magento2dev
 public function _construct()
 {
     parent::_construct();
     // Initialization block
     // ---------------------------------------
     $this->setId('ListingAddFromProductList');
     $this->_controller = 'adminhtml_amazon_listing_product_add_sourceMode_product';
     // ---------------------------------------
     // Set buttons actions
     // ---------------------------------------
     $this->removeButton('back');
     $this->removeButton('reset');
     $this->removeButton('delete');
     $this->removeButton('add');
     $this->removeButton('save');
     $this->removeButton('edit');
     // ---------------------------------------
     // ---------------------------------------
     if (is_null($this->getRequest()->getParam('back'))) {
         $url = $this->getUrl('*/amazon_listing_product_add/index', array('id' => $this->getRequest()->getParam('id')));
     } else {
         $url = $this->getHelper('Data')->getBackUrl('*/adminhtml_amazon_listing/index');
     }
     $this->addButton('back', array('label' => $this->__('Back'), 'onclick' => 'ListingProductGridObj.backClick(\'' . $url . '\')', 'class' => 'back'));
     // ---------------------------------------
     $this->addButton('auto_action', array('label' => $this->__('Auto Add/Remove Rules'), 'onclick' => 'ListingAutoActionObj.loadAutoActionHtml();', 'class' => 'action-primary'));
     // ---------------------------------------
     // ---------------------------------------
     $this->addButton('save_and_go_to_listing_view', array('label' => $this->__('Continue'), 'onclick' => 'ListingProductGridObj.saveClick(\'view\')', 'class' => 'action-primary forward'));
     // ---------------------------------------
 }
コード例 #4
0
ファイル: Manual.php プロジェクト: Doability/magento2dev
 public function _construct()
 {
     parent::_construct();
     // Initialization block
     // ---------------------------------------
     $this->setId('newAsinDescriptionTemplateManual');
     // ---------------------------------------
     // Set header text
     // ---------------------------------------
     $this->_controller = 'adminhtml_amazon_listing_product_add_newAsin_manual';
     // ---------------------------------------
     // Set buttons actions
     // ---------------------------------------
     $this->removeButton('back');
     $this->removeButton('reset');
     $this->removeButton('delete');
     $this->removeButton('add');
     $this->removeButton('save');
     $this->removeButton('edit');
     // ---------------------------------------
     // ---------------------------------------
     $url = $this->getUrl('*/*/resetNewAsin', array('_current' => true));
     $this->addButton('back', array('label' => $this->__('Back'), 'onclick' => 'ListingGridHandlerObj.backClick(\'' . $url . '\')', 'class' => 'back'));
     // ---------------------------------------
     $url = $this->getUrl('*/*/index', array('_current' => true, 'step' => 5));
     // ---------------------------------------
     $this->addButton('save_and_go_to_listing_view', array('label' => $this->__('Continue'), 'onclick' => 'ListingGridHandlerObj.checkManualProducts(\'' . $url . '\')', 'class' => 'action-primary forward'));
     // ---------------------------------------
 }
コード例 #5
0
 public function _construct()
 {
     parent::_construct();
     // Initialization block
     // ---------------------------------------
     $this->setId('synchronizationLog');
     $this->_controller = 'adminhtml_developers_tabs_synchronizationLog';
     // ---------------------------------------
     // Set header text
     // ---------------------------------------
     $this->_headerText = '';
     // ---------------------------------------
     // Set buttons actions
     // ---------------------------------------
     $this->removeButton('back');
     $this->removeButton('reset');
     $this->removeButton('delete');
     $this->removeButton('add');
     $this->removeButton('save');
     $this->removeButton('edit');
     // Set template
     // ---------------------------------------
     $this->setTemplate('Ess_M2ePro::magento/grid/container/only_content.phtml');
     // ---------------------------------------
 }
コード例 #6
0
ファイル: SearchAsin.php プロジェクト: Doability/magento2dev
 public function _construct()
 {
     parent::_construct();
     $this->listing = $this->getHelper('Data\\GlobalData')->getValue('listing_for_products_add');
     // Initialization block
     // ---------------------------------------
     $this->setId('searchAsinForListingProducts');
     // ---------------------------------------
     // Set header text
     // ---------------------------------------
     $this->_controller = 'adminhtml_amazon_listing_product_add_searchAsin';
     // ---------------------------------------
     // Set buttons actions
     // ---------------------------------------
     $this->removeButton('back');
     $this->removeButton('reset');
     $this->removeButton('delete');
     $this->removeButton('add');
     $this->removeButton('save');
     $this->removeButton('edit');
     // ---------------------------------------
     // ---------------------------------------
     $url = $this->getUrl('*/*/removeAddedProducts', array('id' => $this->listing['id'], '_current' => true));
     $this->addButton('back', array('label' => $this->__('Back'), 'onclick' => 'ListingGridHandlerObj.backClick(\'' . $url . '\')', 'class' => 'back'));
     // ---------------------------------------
     $this->addButton('auto_action', array('label' => $this->__('Edit Search Settings'), 'class' => 'action-primary next', 'onclick' => 'ListingGridHandlerObj.editSearchSettings(\'' . $this->__('Listing Search Settings') . '\' ,' . $this->listing['id'] . ');'));
     // ---------------------------------------
     // ---------------------------------------
     $this->addButton('save_and_go_to_listing_view', array('label' => $this->__('Continue'), 'onclick' => 'ListingGridHandlerObj.checkSearchResults(' . $this->listing['id'] . ')', 'class' => 'action-primary forward'));
     // ---------------------------------------
 }
コード例 #7
0
ファイル: Listing.php プロジェクト: Doability/magento2dev
 public function _construct()
 {
     parent::_construct();
     // Initialization block
     // ---------------------------------------
     $this->setId('ebayListing');
     $this->_controller = 'adminhtml_ebay_listing';
     // ---------------------------------------
 }
コード例 #8
0
ファイル: Listing.php プロジェクト: Doability/magento2dev
 public function _construct()
 {
     parent::_construct();
     $this->_controller = 'adminhtml_amazon_listing';
     // ---------------------------------------
     $url = $this->getUrl('*/amazon_listing_create/index', array('step' => '1', 'clear' => 'yes'));
     $this->addButton('add', array('label' => $this->__('Add Listing'), 'onclick' => 'setLocation(\'' . $url . '\')', 'class' => 'action-primary'));
     // ---------------------------------------
 }
コード例 #9
0
ファイル: Variations.php プロジェクト: Doability/magento2dev
 public function _construct()
 {
     parent::_construct();
     // Initialization block
     // ---------------------------------------
     $this->setId('amazonListingProductVariationManage');
     $this->_controller = 'adminhtml_amazon_listing_product_variation_manage_tabs_variations';
     // ---------------------------------------
     // Set buttons actions
     // ---------------------------------------
     $this->removeButton('add');
     // ---------------------------------------
 }
コード例 #10
0
ファイル: Add.php プロジェクト: Doability/magento2dev
 public function _construct()
 {
     parent::_construct();
     // Initialization block
     // ---------------------------------------
     $this->setId('ebayListingProduct');
     $this->_controller = 'adminhtml_ebay_listing_product_add_';
     $this->_controller .= $this->getRequest()->getParam('source');
     // ---------------------------------------
     // Set header text
     // ---------------------------------------
     $this->_headerText = $this->__('Select Products');
     // ---------------------------------------
 }
コード例 #11
0
ファイル: View.php プロジェクト: Doability/magento2dev
 public function _construct()
 {
     parent::_construct();
     $this->listing = $this->getHelper('Data\\GlobalData')->getValue('view_listing');
     // Initialization block
     // ---------------------------------------
     $this->setId('ebayListingView');
     $this->_controller = 'adminhtml_ebay_listing_view_' . $this->getViewMode();
     // ---------------------------------------
     // Set buttons actions
     // ---------------------------------------
     $this->removeButton('add');
     // ---------------------------------------
 }
コード例 #12
0
ファイル: Order.php プロジェクト: Doability/magento2dev
 public function _construct()
 {
     parent::_construct();
     $this->_controller = 'adminhtml_amazon_order';
     // Set buttons actions
     // ---------------------------------------
     $this->removeButton('back');
     $this->removeButton('reset');
     $this->removeButton('delete');
     $this->removeButton('add');
     $this->removeButton('save');
     $this->removeButton('edit');
     // ---------------------------------------
 }
コード例 #13
0
ファイル: Search.php プロジェクト: Doability/magento2dev
 public function _construct()
 {
     parent::_construct();
     $this->_controller = 'adminhtml_ebay_listing_search';
     // Initialization block
     // ---------------------------------------
     $this->setId('ebayListingSearch');
     // ---------------------------------------
     $this->buttonList->remove('back');
     $this->buttonList->remove('reset');
     $this->buttonList->remove('delete');
     $this->buttonList->remove('add');
     $this->buttonList->remove('save');
     $this->buttonList->remove('edit');
 }
コード例 #14
0
ファイル: Account.php プロジェクト: Doability/magento2dev
 protected function _construct()
 {
     parent::_construct();
     // Set buttons actions
     // ---------------------------------------
     $this->removeButton('back');
     $this->removeButton('reset');
     $this->removeButton('delete');
     $this->removeButton('save');
     $this->removeButton('edit');
     // ---------------------------------------
     $this->_controller = 'adminhtml_amazon_account';
     $url = $this->getUrl('*/amazon_account/new');
     $this->buttonList->update('add', 'label', $this->__('Add Account'));
     $this->buttonList->update('add', 'onclick', 'setLocation(\'' . $url . '\');');
 }
コード例 #15
0
ファイル: Log.php プロジェクト: Doability/magento2dev
 public function _construct()
 {
     parent::_construct();
     // Initialization block
     // ---------------------------------------
     $this->setId('listingLog');
     $this->_controller = 'adminhtml_amazon_listing_log';
     // ---------------------------------------
     // Set buttons actions
     // ---------------------------------------
     $this->removeButton('back');
     $this->removeButton('reset');
     $this->removeButton('delete');
     $this->removeButton('add');
     $this->removeButton('save');
     $this->removeButton('edit');
 }
コード例 #16
0
ファイル: Template.php プロジェクト: Doability/magento2dev
 public function _construct()
 {
     parent::_construct();
     // Initialization block
     // ---------------------------------------
     $this->setId('ebayTemplate');
     $this->_controller = 'adminhtml_ebay_template';
     // ---------------------------------------
     // Set buttons actions
     // ---------------------------------------
     $this->removeButton('back');
     $this->removeButton('reset');
     $this->removeButton('delete');
     $this->removeButton('save');
     $this->removeButton('edit');
     // ---------------------------------------
 }
コード例 #17
0
ファイル: Add.php プロジェクト: Doability/magento2dev
 public function _construct()
 {
     parent::_construct();
     $this->_controller = 'adminhtml_amazon_template_description_category_specific_add';
     // Initialization block
     // ---------------------------------------
     $this->setId('amazonTemplateDescriptionCategorySpecificAdd');
     // ---------------------------------------
     // Set buttons actions
     // ---------------------------------------
     $this->buttonList->remove('back');
     $this->buttonList->remove('reset');
     $this->buttonList->remove('delete');
     $this->buttonList->remove('add');
     $this->buttonList->remove('save');
     $this->buttonList->remove('edit');
     // ---------------------------------------
 }
コード例 #18
0
ファイル: Other.php プロジェクト: Doability/magento2dev
 public function _construct()
 {
     parent::_construct();
     // Initialization block
     // ---------------------------------------
     $this->setId('amazonListingOther');
     $this->_controller = 'adminhtml_amazon_listing_other';
     // ---------------------------------------
     // Set buttons actions
     // ---------------------------------------
     $this->buttonList->remove('back');
     $this->buttonList->remove('reset');
     $this->buttonList->remove('delete');
     $this->buttonList->remove('add');
     $this->buttonList->remove('save');
     $this->buttonList->remove('edit');
     // ---------------------------------------
     $this->isAjax = json_encode($this->getRequest()->isXmlHttpRequest());
 }
コード例 #19
0
ファイル: Template.php プロジェクト: Doability/magento2dev
 public function _construct()
 {
     parent::_construct();
     // Initialization block
     // ---------------------------------------
     $this->setId('amazonTemplate');
     $this->_controller = 'adminhtml_amazon_template';
     // ---------------------------------------
     // Set buttons actions
     // ---------------------------------------
     $this->buttonList->remove('back');
     $this->buttonList->remove('reset');
     $this->buttonList->remove('delete');
     $this->buttonList->remove('save');
     $this->buttonList->remove('edit');
     // ---------------------------------------
     // ---------------------------------------
     $this->buttonList->update('add', 'label', $this->__('Add Policy'));
     $this->buttonList->update('add', 'onclick', '');
     // ---------------------------------------
 }
コード例 #20
0
ファイル: Log.php プロジェクト: Doability/magento2dev
 public function _construct()
 {
     parent::_construct();
     // Initialization block
     // ---------------------------------------
     $this->setId('ebayListingOtherLog');
     $this->_controller = 'adminhtml_ebay_listing_other_log';
     // ---------------------------------------
     // ---------------------------------------
     if ($this->getListingOtherId()) {
         $this->setTemplate('Ess_M2ePro::magento/grid/container/only_content.phtml');
     }
     // ---------------------------------------
     // Set buttons actions
     // ---------------------------------------
     $this->removeButton('back');
     $this->removeButton('reset');
     $this->removeButton('delete');
     $this->removeButton('add');
     $this->removeButton('save');
     $this->removeButton('edit');
     // ---------------------------------------
 }
コード例 #21
0
ファイル: View.php プロジェクト: Doability/magento2dev
 public function _construct()
 {
     parent::_construct();
     // Initialization block
     // ---------------------------------------
     $this->setId('ebayListingOtherView');
     $this->_controller = 'adminhtml_ebay_listing_other_view';
     // ---------------------------------------
     // Set buttons actions
     // ---------------------------------------
     $this->buttonList->remove('back');
     $this->buttonList->remove('reset');
     $this->buttonList->remove('delete');
     $this->buttonList->remove('add');
     $this->buttonList->remove('save');
     $this->buttonList->remove('edit');
     // ---------------------------------------
     // ---------------------------------------
     if (!is_null($this->getRequest()->getParam('back'))) {
         $url = $this->getHelper('Data')->getBackUrl();
         $this->buttonList->add('back', array('label' => $this->__('Back'), 'onclick' => 'CommonObj.backClick(\'' . $url . '\')', 'class' => 'back'));
     }
     // ---------------------------------------
 }
コード例 #22
0
ファイル: Mapping.php プロジェクト: Doability/magento2dev
 public function _construct()
 {
     $this->_controller = 'adminhtml_listing_other_mapping';
     parent::_construct();
 }
コード例 #23
0
ファイル: View.php プロジェクト: Doability/magento2dev
 protected function _construct()
 {
     parent::_construct();
     $this->_controller = 'adminhtml_ebay_listing_variation_product_manage_view';
     $this->removeButton('add');
 }