Exemplo n.º 1
0
 public function __construct()
 {
     parent::__construct();
     // Set header text
     // ---------------------------------------
     $this->_headerText = '';
     // ---------------------------------------
     $this->setTemplate(NULL);
     // 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 = Mage::helper('M2ePro')->getBackUrl('*/adminhtml_common_listing/index');
         $this->_addButton('back', array('label' => Mage::helper('M2ePro')->__('Back'), 'onclick' => 'CommonHandlerObj.back_click(\'' . $url . '\')', 'class' => 'back'));
         // ---------------------------------------
     }
     // ---------------------------------------
     $url = $this->getUrl('*/adminhtml_common_log/listingOther');
     $this->_addButton('view_log', array('label' => Mage::helper('M2ePro')->__('View Log'), 'onclick' => 'viewAllChannelLogs(\'' . $url . '\')', 'class' => 'button_link'));
     // ---------------------------------------
     // ---------------------------------------
     $this->tabsContainerId = 'listings_other_tabs_container';
     $this->useAjax = true;
     $this->tabsAjaxUrls = array(self::TAB_ID_AMAZON => $this->getUrl('*/adminhtml_common_amazon_listing_other/index'), self::TAB_ID_BUY => $this->getUrl('*/adminhtml_common_buy_listing_other/index'));
     $this->isAjax = json_encode($this->getRequest()->isXmlHttpRequest());
     // ---------------------------------------
 }
Exemplo n.º 2
0
 public function __construct()
 {
     parent::__construct();
     // Initialization block
     //------------------------------
     $this->setId('marketplace');
     $this->_blockGroup = 'M2ePro';
     $this->_controller = 'adminhtml_common_marketplace';
     //------------------------------
     // Form id of marketplace_general_form
     //------------------------------
     $this->tabsContainerId = 'edit_form';
     //------------------------------
     // Set header text
     //------------------------------
     $this->_headerText = Mage::helper('M2ePro')->__('Marketplaces');
     //------------------------------
     if ((bool) $this->getRequest()->getParam('wizard', false)) {
         $this->activeWizardNick = Mage::helper('M2ePro/Module_Wizard')->getNick(Mage::helper('M2ePro/Module_Wizard')->getActiveWizard(Ess_M2ePro_Helper_View_Common::NICK));
         $this->setEnabledTab($this->getTabIdByWizardNick($this->activeWizardNick));
         //------------------------------
         $this->_addButton('reset', array('label' => Mage::helper('M2ePro')->__('Refresh'), 'onclick' => 'MarketplaceHandlerObj.reset_click()', 'class' => 'reset'));
         //------------------------------
         //------------------------------
         $this->_addButton('close', array('label' => Mage::helper('M2ePro')->__('Save And Complete This Step'), 'onclick' => 'MarketplaceHandlerObj.completeStep();', 'class' => 'close'));
         //------------------------------
     } else {
         //------------------------------
         $this->_addButton('reset', array('label' => Mage::helper('M2ePro')->__('Refresh'), 'onclick' => 'MarketplaceHandlerObj.reset_click()', 'class' => 'reset'));
         //------------------------------
         //------------------------------
         $this->_addButton('run_synch_now', array('label' => Mage::helper('M2ePro')->__('Save And Update'), 'onclick' => 'MarketplaceHandlerObj.saveSettings(\'runSynchNow\');', 'class' => 'save save_and_update_marketplaces'));
         //------------------------------
     }
 }
Exemplo n.º 3
0
 public function __construct()
 {
     parent::__construct();
     // Set header text
     //------------------------------
     $this->_headerText = Mage::helper('M2ePro')->__('Listings');
     //------------------------------
     //------------------------------
     if (!is_null($this->getRequest()->getParam('back'))) {
         $url = Mage::helper('M2ePro')->getBackUrl('*/adminhtml_common_listing/index');
         $this->_addButton('back', array('label' => Mage::helper('M2ePro')->__('Back'), 'onclick' => 'CommonHandlerObj.back_click(\'' . $url . '\')', 'class' => 'back'));
     }
     //------------------------------
     //------------------------------
     $backUrl = Mage::helper('M2ePro')->makeBackUrlParam('*/adminhtml_common_listing/index');
     //------------------------------
     //------------------------------
     $url = $this->getUrl('*/adminhtml_common_log/listing', array('back' => $backUrl));
     $this->_addButton('general_log', array('label' => Mage::helper('M2ePro')->__('General Log'), 'onclick' => 'setLocation(\'' . $url . '\')', 'class' => 'button_link'));
     //------------------------------
     //------------------------------
     $url = $this->getUrl('*/adminhtml_common_listing/search', array('back' => $backUrl));
     $this->_addButton('search_products', array('label' => Mage::helper('M2ePro')->__('Search Products'), 'onclick' => 'setLocation(\'' . $url . '\')', 'class' => 'button_link search'));
     //------------------------------
     //------------------------------
     $this->_addButton('reset', array('label' => Mage::helper('M2ePro')->__('Refresh'), 'onclick' => 'CommonHandlerObj.reset_click()', 'class' => 'reset'));
     //------------------------------
     //------------------------------
     $this->useAjax = true;
     $this->tabsAjaxUrls = array(self::TAB_ID_AMAZON => $this->getUrl('*/adminhtml_common_amazon_listing/index'), self::TAB_ID_BUY => $this->getUrl('*/adminhtml_common_buy_listing/index'), self::TAB_ID_PLAY => $this->getUrl('*/adminhtml_common_play_listing/index'));
     //------------------------------
 }
Exemplo n.º 4
0
 public function __construct()
 {
     parent::__construct();
     // Initialization block
     //------------------------------
     $this->setId('synchronization');
     $this->_blockGroup = 'M2ePro';
     $this->_controller = 'adminhtml_common_synchronization';
     //------------------------------
     // Form id of marketplace_general_form
     //------------------------------
     $this->tabsContainerId = 'edit_form';
     //------------------------------
     // Set header text
     //------------------------------
     $this->_headerText = Mage::helper('M2ePro')->__('Synchronization');
     //------------------------------
     // Set buttons actions
     //------------------------------
     $this->removeButton('back');
     $this->removeButton('reset');
     $this->removeButton('delete');
     $this->removeButton('add');
     $this->removeButton('save');
     $this->removeButton('edit');
     //------------------------------
     if (!(bool) $this->getRequest()->getParam('wizard', false)) {
         //------------------------------
         $url = $this->getUrl('*/adminhtml_common_account/index');
         $this->_addButton('goto_accounts', array('label' => Mage::helper('M2ePro')->__('Accounts'), 'onclick' => 'setLocation(\'' . $url . '\')', 'class' => 'button_link'));
         //------------------------------
         //------------------------------
         $url = $this->getUrl('*/adminhtml_common_log/synchronization');
         $this->_addButton('view_log', array('label' => Mage::helper('M2ePro')->__('View Log'), 'onclick' => 'window.open(\'' . $url . '\')', 'class' => 'button_link'));
         //------------------------------
         //------------------------------
         $this->_addButton('reset', array('label' => Mage::helper('M2ePro')->__('Refresh'), 'onclick' => 'SynchronizationHandlerObj.reset_click()', 'class' => 'reset'));
         //------------------------------
         //------------------------------
         $params = Mage::helper('M2ePro')->escapeHtml(json_encode(Mage::helper('M2ePro/View_Common_Component')->getActiveComponents()));
         $this->_addButton('run_all_enabled_now', array('label' => Mage::helper('M2ePro')->__('Run Enabled Now'), 'onclick' => 'SynchronizationHandlerObj.saveSettings(\'runAllEnabledNow\', ' . $params . ');', 'class' => 'save'));
         //------------------------------
         //------------------------------
         $this->_addButton('save', array('label' => Mage::helper('M2ePro')->__('Save Settings'), 'onclick' => 'SynchronizationHandlerObj.saveSettings(\'\', ' . $params . ')', 'class' => 'save'));
         //------------------------------
     } else {
         $activeWizardNick = Mage::helper('M2ePro/Module_Wizard')->getNick(Mage::helper('M2ePro/Module_Wizard')->getActiveWizard(Ess_M2ePro_Helper_View_Common::NICK));
         $this->setEnabledTab($activeWizardNick);
         //------------------------------
         $escapedWizardNick = Mage::helper('M2ePro')->escapeHtml("'" . $activeWizardNick . "'");
         $this->_addButton('save', array('label' => Mage::helper('M2ePro')->__('Save Settings'), 'onclick' => 'SynchronizationHandlerObj.saveSettings(\'\',' . $escapedWizardNick . ')', 'class' => 'save'));
         //------------------------------
         //------------------------------
         $this->_addButton('close', array('label' => Mage::helper('M2ePro')->__('Complete This Step'), 'onclick' => 'SynchronizationHandlerObj.completeStep();', 'class' => 'close'));
         //------------------------------
     }
 }
Exemplo n.º 5
0
 public function __construct()
 {
     parent::__construct();
     // Set header text
     //------------------------------
     $this->_headerText = Mage::helper('M2ePro')->__('Orders');
     //------------------------------
     //------------------------------
     $url = $this->getUrl('*/adminhtml_common_account/index');
     $this->_addButton('accounts', array('label' => Mage::helper('M2ePro')->__('Accounts'), 'onclick' => 'setLocation(\'' . $url . '\')', 'class' => 'button_link'));
     //------------------------------
     //------------------------------
     $url = $this->getUrl('*/adminhtml_common_log/order');
     $this->_addButton('logs', array('label' => Mage::helper('M2ePro')->__('View Logs'), 'onclick' => 'window.open(\'' . $url . '\')', 'class' => 'button_link'));
     //------------------------------
     $this->useAjax = true;
     $this->tabsAjaxUrls = array(self::TAB_ID_AMAZON => $this->getUrl('*/adminhtml_common_amazon_order/index'), self::TAB_ID_BUY => $this->getUrl('*/adminhtml_common_buy_order/index'), self::TAB_ID_PLAY => $this->getUrl('*/adminhtml_common_play_order/index'));
 }
Exemplo n.º 6
0
 public function __construct()
 {
     parent::__construct();
     // Set header text
     // ---------------------------------------
     $this->_headerText = '';
     // ---------------------------------------
     $this->setTemplate(NULL);
     // ---------------------------------------
     $url = $this->getUrl('*/adminhtml_common_log/listing');
     $this->_addButton('view_log', array('label' => Mage::helper('M2ePro')->__('View Log'), 'onclick' => 'CommonListingObj.viewLogs(\'' . $url . '\')', 'class' => 'button_link'));
     // ---------------------------------------
     // ---------------------------------------
     $url = $this->getUrl('*/adminhtml_common_listing_create/index', array('step' => '1', 'clear' => 'yes'));
     $this->_addButton('add', array('label' => Mage::helper('M2ePro')->__('Add Listing'), 'onclick' => 'CommonListingObj.createListing(\'' . $url . '\')', 'class' => 'add'));
     // ---------------------------------------
     // ---------------------------------------
     $this->tabsContainerId = 'listings_tabs_container';
     $this->useAjax = true;
     $this->tabsAjaxUrls = array(self::TAB_ID_AMAZON => $this->getUrl('*/adminhtml_common_amazon_listing/index'), self::TAB_ID_BUY => $this->getUrl('*/adminhtml_common_buy_listing/index'));
     // ---------------------------------------
 }
 public function __construct()
 {
     parent::__construct();
     // Initialization block
     // ---------------------------------------
     $this->setId('marketplace');
     $this->_blockGroup = 'M2ePro';
     $this->_controller = 'adminhtml_common_marketplace';
     // ---------------------------------------
     // Form id of marketplace_general_form
     // ---------------------------------------
     $this->tabsContainerId = 'edit_form';
     // ---------------------------------------
     $this->_headerText = '';
     $this->setTemplate(NULL);
     // ---------------------------------------
     $this->addButton('run_update_all', array('label' => Mage::helper('M2ePro')->__('Update All Now'), 'onclick' => 'MarketplaceHandlerObj.updateAction()', 'class' => 'save update_all_marketplace'));
     // ---------------------------------------
     // ---------------------------------------
     $this->_addButton('run_synch_now', array('label' => Mage::helper('M2ePro')->__('Save'), 'onclick' => 'MarketplaceHandlerObj.saveAction();', 'class' => 'save save_and_update_marketplaces'));
     // ---------------------------------------
 }
Exemplo n.º 8
0
 public function __construct()
 {
     parent::__construct();
     // Initialization block
     //------------------------------
     $this->setId('synchronization');
     $this->_blockGroup = 'M2ePro';
     $this->_controller = 'adminhtml_common_synchronization';
     //------------------------------
     // Form id of marketplace_general_form
     //------------------------------
     $this->tabsContainerId = 'edit_form';
     //------------------------------
     $this->_headerText = '';
     if (!(bool) $this->getRequest()->getParam('wizard', false)) {
         $this->setTemplate(NULL);
         //------------------------------
         $params = Mage::helper('M2ePro')->escapeHtml(json_encode(Mage::helper('M2ePro/View_Common_Component')->getActiveComponents()));
         $this->_addButton('run_all_enabled_now', array('label' => Mage::helper('M2ePro')->__('Run Enabled Now'), 'onclick' => 'SynchronizationHandlerObj.saveSettings(\'runAllEnabledNow\', ' . $params . ');', 'class' => 'save'));
         //------------------------------
         //------------------------------
         $this->_addButton('save', array('label' => Mage::helper('M2ePro')->__('Save Settings'), 'onclick' => 'SynchronizationHandlerObj.saveSettings(\'\', ' . $params . ')', 'class' => 'save'));
         //------------------------------
     } else {
         // Set header text
         //------------------------------
         $this->_headerText = Mage::helper('M2ePro')->__('Synchronization');
         //------------------------------
         $activeWizardNick = Mage::helper('M2ePro/Module_Wizard')->getNick(Mage::helper('M2ePro/Module_Wizard')->getActiveWizard(Ess_M2ePro_Helper_View_Common::NICK));
         $this->setEnabledTab($activeWizardNick);
         //------------------------------
         $escapedWizardNick = Mage::helper('M2ePro')->escapeHtml("'" . $activeWizardNick . "'");
         $this->_addButton('save', array('label' => Mage::helper('M2ePro')->__('Save Settings'), 'onclick' => 'SynchronizationHandlerObj.saveSettings(\'\',' . $escapedWizardNick . ')', 'class' => 'save'));
         //------------------------------
         //------------------------------
         $this->_addButton('close', array('label' => Mage::helper('M2ePro')->__('Complete This Step'), 'onclick' => 'SynchronizationHandlerObj.completeStep();', 'class' => 'close'));
         //------------------------------
     }
 }
Exemplo n.º 9
0
 public function __construct()
 {
     parent::__construct();
     // Set header text
     //------------------------------
     $this->_headerText = Mage::helper('M2ePro')->__('3rd Party Listings');
     //------------------------------
     // 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 = Mage::helper('M2ePro')->getBackUrl('*/adminhtml_common_listing/index');
         $this->_addButton('back', array('label' => Mage::helper('M2ePro')->__('Back'), 'onclick' => 'CommonHandlerObj.back_click(\'' . $url . '\')', 'class' => 'back'));
         //------------------------------
     }
     //------------------------------
     $url = $this->getUrl('*/adminhtml_common_listing/index');
     $this->_addButton('goto_listings', array('label' => Mage::helper('M2ePro')->__('Listings'), 'onclick' => 'setLocation(\'' . $url . '\')', 'class' => 'button_link'));
     //------------------------------
     //------------------------------
     $url = $this->getUrl('*/adminhtml_common_log/listingOther');
     $this->_addButton('view_log', array('label' => Mage::helper('M2ePro')->__('View Log'), 'onclick' => 'window.open(\'' . $url . '\')', 'class' => 'button_link'));
     //------------------------------
     //------------------------------
     $this->_addButton('reset', array('label' => Mage::helper('M2ePro')->__('Refresh'), 'onclick' => 'CommonHandlerObj.reset_click()', 'class' => 'reset'));
     //------------------------------
     //------------------------------
     $this->useAjax = true;
     $this->tabsAjaxUrls = array(self::TAB_ID_AMAZON => $this->getUrl('*/adminhtml_common_amazon_listing_other/index'), self::TAB_ID_BUY => $this->getUrl('*/adminhtml_common_buy_listing_other/index'), self::TAB_ID_PLAY => $this->getUrl('*/adminhtml_common_play_listing_other/index'));
     $this->isAjax = json_encode($this->getRequest()->isXmlHttpRequest());
     //------------------------------
 }
 public function __construct()
 {
     parent::__construct();
     // Initialization block
     // ---------------------------------------
     $this->setId('synchronization');
     $this->_blockGroup = 'M2ePro';
     $this->_controller = 'adminhtml_common_synchronization';
     // ---------------------------------------
     // Form id of marketplace_general_form
     // ---------------------------------------
     $this->tabsContainerId = 'edit_form';
     // ---------------------------------------
     $this->_headerText = '';
     $this->setTemplate(NULL);
     // ---------------------------------------
     $params = Mage::helper('M2ePro')->escapeHtml(json_encode(Mage::helper('M2ePro/View_Common_Component')->getActiveComponents()));
     $this->_addButton('run_all_enabled_now', array('label' => Mage::helper('M2ePro')->__('Synchronize'), 'onclick' => 'SynchronizationHandlerObj.saveSettings(\'runAllEnabledNow\', ' . $params . ');', 'class' => 'save'));
     // ---------------------------------------
     // ---------------------------------------
     $this->_addButton('save', array('label' => Mage::helper('M2ePro')->__('Save'), 'onclick' => 'SynchronizationHandlerObj.saveSettings(\'\', ' . $params . ')', 'class' => 'save'));
     // ---------------------------------------
 }