Exemplo n.º 1
0
 public function __construct()
 {
     parent::__construct();
     // Initialization block
     //------------------------------
     $this->setId('ebayListingCategoryMode');
     //------------------------------
     //------------------------------
     $listingId = $this->getRequest()->getParam('listing_id');
     $listing = Mage::helper('M2ePro/Component_Ebay')->getCachedObject('Listing', $listingId);
     $listingAdditionalData = $listing->getData('additional_data');
     $listingAdditionalData = json_decode($listingAdditionalData, true);
     //------------------------------
     $this->_headerText = Mage::helper('M2ePro')->__('Set Your eBay Categories');
     $url = $this->getUrl('*/adminhtml_ebay_listing_productAdd', array('step' => 2, '_current' => true));
     if (Mage::helper('M2ePro/View_Ebay')->isSimpleMode()) {
         $url = $this->getUrl('*/adminhtml_ebay_listing_productAdd/deleteAll', array('_current' => true));
     }
     $productAddSessionData = Mage::helper('M2ePro/Data_Session')->getValue('ebay_listing_product_add');
     if (isset($productAddSessionData['show_settings_step'])) {
         !(bool) $productAddSessionData['show_settings_step'] && ($url = $this->getUrl('*/adminhtml_ebay_listing_productAdd/deleteAll', array('_current' => true)));
     } elseif (isset($listingAdditionalData['show_settings_step'])) {
         !(bool) $listingAdditionalData['show_settings_step'] && ($url = $this->getUrl('*/adminhtml_ebay_listing_productAdd/deleteAll', array('_current' => true)));
     }
     $this->_addButton('back', array('label' => Mage::helper('M2ePro')->__('Back'), 'class' => 'back', 'onclick' => 'setLocation(\'' . $url . '\');'));
     $this->_addButton('next', array('label' => Mage::helper('M2ePro')->__('Continue'), 'class' => 'scalable next', 'onclick' => "\$('categories_mode_form').submit();"));
     $this->setTemplate('M2ePro/ebay/listing/category/mode.phtml');
 }
Exemplo n.º 2
0
 public function __construct()
 {
     parent::__construct();
     // Initialization block
     //------------------------------
     $this->setId('orderLog');
     $this->_blockGroup = 'M2ePro';
     $this->_controller = 'adminhtml_order_log';
     //------------------------------
     //------------------------------
     $this->setTemplate('M2ePro/common/log/log.phtml');
     //------------------------------
     // Set header text
     //------------------------------
     $this->_headerText = Mage::helper('M2ePro')->__('Orders Log');
     //------------------------------
     // 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'))) {
         $backUrl = Mage::helper('M2ePro')->getBackUrl('*/adminhtml_common_order/index');
         $this->_addButton('back', array('label' => Mage::helper('M2ePro')->__('Back'), 'onclick' => 'CommonHandlerObj.back_click(\'' . $backUrl . '\')', 'class' => 'back'));
     }
     $this->_addButton('goto_orders', array('label' => Mage::helper('M2ePro')->__('Orders'), 'onclick' => 'setLocation(\'' . $this->getUrl('*/adminhtml_common_order/index') . '\')', 'class' => 'button_link'));
     //------------------------------
 }
Exemplo n.º 3
0
 public function __construct()
 {
     parent::__construct();
     // Initialization block
     //------------------------------
     $this->setId('config');
     $this->_blockGroup = 'M2ePro';
     $this->_controller = 'adminhtml_config';
     //------------------------------
     // Set header text
     //------------------------------
     if (Mage::helper('M2ePro')->getGlobalValue('config_mode') == 'ess') {
         $this->_headerText = Mage::helper('M2ePro')->__('ESS Config Data');
     } else {
         $this->_headerText = Mage::helper('M2ePro')->__('M2ePro Config Data');
     }
     //------------------------------
     // Set buttons actions
     //------------------------------
     $this->removeButton('back');
     $this->removeButton('reset');
     $this->removeButton('delete');
     $this->removeButton('add');
     $this->removeButton('save');
     $this->removeButton('edit');
     //------------------------------
 }
Exemplo n.º 4
0
 public function __construct()
 {
     $this->_setHeaderText();
     $block_module_groupname = "ReverbSync";
     $this->_objectId = 'reverb_product_sync_container';
     $this->setTemplate('widget/view/container.phtml');
     parent::__construct();
     $bulk_sync_process_button = array('action_url' => Mage::getModel('adminhtml/url')->getUrl('adminhtml/ReverbSync_listings_sync/bulkSync'), 'label' => 'Bulk Product Sync');
     $clear_all_tasks_button = array('action_url' => Mage::getModel('adminhtml/url')->getUrl('adminhtml/ReverbSync_listings_sync/clearAllTasks'), 'label' => 'Clear All Sync Tasks');
     $clear_successful_tasks_button = array('action_url' => Mage::getModel('adminhtml/url')->getUrl('adminhtml/ReverbSync_listings_sync/clearSuccessfulTasks'), 'label' => 'Clear Successful Sync Tasks');
     $action_buttons_array['bulk_product_sync'] = $bulk_sync_process_button;
     $action_buttons_array['clear_all_sync_tasks'] = $clear_all_tasks_button;
     $action_buttons_array['clear_successful_sync_tasks'] = $clear_successful_tasks_button;
     foreach ($action_buttons_array as $button_id => $button_data) {
         $button_action_url = isset($button_data['action_url']) ? $button_data['action_url'] : '';
         if (empty($button_action_url)) {
             // Require label to be defined
             continue;
         }
         $button_label = isset($button_data['label']) ? $button_data['label'] : '';
         if (empty($button_label)) {
             // Require label to be defined
             continue;
         }
         $this->_addButton($button_id, array('label' => Mage::helper($block_module_groupname)->__($button_label), 'onclick' => "document.location='" . $button_action_url . "'", 'level' => -1));
     }
 }
 public function __construct()
 {
     $this->_controller = 'adminhtml_printbarcode';
     $this->_blockGroup = 'inventorybarcode';
     $this->_headerText = Mage::helper('inventorybarcode')->__('Print Barcodes');
     parent::__construct();
 }
 /**
  * Initializes the block
  */
 public function __construct()
 {
     parent::__construct();
     $this->_controller = 'adminhtml_productattributes';
     $this->_removeButton('add');
     $this->setTemplate('listrak/remarketing/productattributes.phtml');
 }
Exemplo n.º 7
0
 public function __construct()
 {
     parent::__construct();
     // Initialization block
     //------------------------------
     $this->setId('supportContainer');
     $this->_blockGroup = 'M2ePro';
     $this->_controller = 'adminhtml';
     $this->_mode = 'support';
     //------------------------------
     // Set header text
     //------------------------------
     $this->_headerText = Mage::helper('M2ePro')->__('Support');
     //------------------------------
     // Set template
     //------------------------------
     $this->setTemplate('M2ePro/support.phtml');
     //------------------------------
     // Set buttons actions
     //------------------------------
     $this->removeButton('back');
     $this->removeButton('reset');
     $this->removeButton('delete');
     $this->removeButton('add');
     $this->removeButton('save');
     $this->removeButton('edit');
     $this->_addButton('goto_cmd', array('label' => 'CMD', 'onclick' => 'setLocation(\'' . $this->getUrl('*/adminhtml_cmd/index') . '\')', 'class' => 'button_link cmd', 'style' => is_null($this->getRequest()->getParam('show_cmd')) ? 'display: none;' : ''));
     $this->_addButton('goto_about', array('label' => Mage::helper('M2ePro')->__('About'), 'onclick' => 'setLocation(\'' . $this->getUrl('*/adminhtml_about/index') . '\')', 'class' => 'button_link'));
     $videoLink = Mage::helper('M2ePro/Module')->getConfig()->getGroupValue('/video_tutorials/', 'baseurl');
     $this->_addButton('goto_video_tutorials', array('label' => Mage::helper('M2ePro')->__('Video Tutorials'), 'onclick' => 'window.open(\'' . $videoLink . '\', \'_blank\'); return false;', 'class' => 'button_link'));
     $docsLink = Mage::helper('M2ePro/Module')->getConfig()->getGroupValue('/documentation/', 'baseurl');
     $this->_addButton('goto_docs', array('label' => Mage::helper('M2ePro')->__('Documentation'), 'onclick' => 'window.open(\'' . $docsLink . '\', \'_blank\'); return false;', 'class' => 'button_link'));
     $this->_addButton('reset', array('label' => Mage::helper('M2ePro')->__('Refresh'), 'onclick' => 'SupportHandlerObj.reset_click()', 'class' => 'reset'));
     //------------------------------
 }
 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('searchindex/validation/container.phtml');
     $this->_controller = 'adminhtml_validation';
     $this->_headerText = $this->__('Search Validation');
 }
Exemplo n.º 9
0
 public function __construct()
 {
     parent::__construct();
     $this->_controller = 'productqa';
     $this->_headerText = Mage::helper('pws_productqa')->__('Manage Product Q&A');
     $this->setTemplate('widget/grid/container.phtml');
 }
 public function __construct()
 {
     $this->_controller = 'adam_contact_form_plus';
     $this->_headerText = Mage::helper('adam_contact_form_plus')->__('Contacts');
     parent::__construct();
     $this->setTemplate('widget/grid/container.phtml');
 }
Exemplo n.º 11
0
 public function __construct()
 {
     $this->_setHeaderText();
     $block_module_groupname = "ReverbSync";
     $this->_objectId = 'reverb_orders_sync_container';
     parent::__construct();
     $this->setTemplate('ReverbSync/sales/order/index/container.phtml');
     $bulk_orders_sync_process_button = array('action_url' => Mage::getModel('adminhtml/url')->getUrl('adminhtml/ReverbSync_orders_sync/bulkSync'), 'label' => $this->_retrieveAndProcessTasksButtonLabel());
     $process_downloaded_tasks_button = array('action_url' => Mage::getModel('adminhtml/url')->getUrl('adminhtml/ReverbSync_orders_sync/syncDownloaded'), 'label' => $this->_processDownloadedTasksButtonLabel());
     $action_buttons_array['bulk_orders_sync'] = $bulk_orders_sync_process_button;
     $action_buttons_array['sync_downloaded_tasks'] = $process_downloaded_tasks_button;
     foreach ($action_buttons_array as $button_id => $button_data) {
         $button_action_url = isset($button_data['action_url']) ? $button_data['action_url'] : '';
         if (empty($button_action_url)) {
             // Require label to be defined
             continue;
         }
         $button_label = isset($button_data['label']) ? $button_data['label'] : '';
         if (empty($button_label)) {
             // Require label to be defined
             continue;
         }
         $this->_addButton($button_id, array('label' => Mage::helper($block_module_groupname)->__($button_label), 'onclick' => "document.location='" . $button_action_url . "'", 'level' => -1));
     }
 }
Exemplo n.º 12
0
 public function __construct()
 {
     $this->_controller = "adminhtml_chart";
     $this->_blockGroup = "watchlog";
     parent::__construct();
     $this->setTemplate('watchlog/chart.phtml');
 }
 /**
  * Initialize button
  */
 public function __construct()
 {
     $this->_controller = 'adminhtml_urlrewrite';
     $this->_headerText = $this->__('URL Redirect');
     parent::__construct();
     $this->_addButton('back', array('label' => $this->__('Back'), 'onclick' => sprintf("setLocation('%s')", $this->getBackUrl()), 'class' => 'back'), -1);
 }
Exemplo n.º 14
0
 public function __construct()
 {
     parent::__construct();
     // Initialization block
     //------------------------------
     $this->setId('buyListingAddStepFourCategory');
     $this->_blockGroup = 'M2ePro';
     $this->_controller = 'adminhtml_buy_listing';
     //------------------------------
     $this->setTemplate('widget/view/container.phtml');
     // Set header text
     //------------------------------
     if (count(Mage::helper('M2ePro/Component')->getActiveComponents()) > 1) {
         $componentName = ' ' . Mage::helper('M2ePro')->__(Ess_M2ePro_Helper_Component_Buy::TITLE);
     } else {
         $componentName = '';
     }
     $this->_headerText = Mage::helper('M2ePro')->__("Add%s Listing [Select Categories]", $componentName);
     //------------------------------
     // Set buttons actions
     //------------------------------
     $this->removeButton('back');
     $this->removeButton('reset');
     $this->removeButton('delete');
     $this->removeButton('add');
     $this->removeButton('save');
     $this->removeButton('edit');
     $this->_addButton('back', array('label' => Mage::helper('M2ePro')->__('Back'), 'onclick' => 'BuyListingCategoryHandlerObj.back_click(\'' . $this->getUrl('*/adminhtml_buy_listing/add', array('step' => '3')) . '\')', 'class' => 'back'));
     $this->_addButton('reset', array('label' => Mage::helper('M2ePro')->__('Refresh'), 'onclick' => 'BuyListingCategoryHandlerObj.reset_click()', 'class' => 'reset'));
     $this->_addButton('save_and_next', array('label' => Mage::helper('M2ePro')->__('Next'), 'onclick' => 'BuyListingCategoryHandlerObj.save_click(\'' . $this->getUrl('*/adminhtml_buy_listing/add', array('step' => '4', 'remember_categories' => 'yes')) . '\')', 'class' => 'next save_and_next_button'));
     $this->_addButton('save_and_go_to_listings_list', array('label' => Mage::helper('M2ePro')->__('Save'), 'onclick' => 'BuyListingCategoryHandlerObj.save_click(\'' . $this->getUrl('*/adminhtml_buy_listing/add', array('step' => '4', 'save' => 'yes', 'back' => 'list')) . '\')', 'class' => 'save save_and_go_to_listings_list_button'));
     $this->_addButton('save_and_go_to_listing_view', array('label' => Mage::helper('M2ePro')->__('Save And View Listing'), 'onclick' => 'BuyListingCategoryHandlerObj.save_click(\'' . $this->getUrl('*/adminhtml_buy_listing/add', array('step' => '4', 'save' => 'yes', 'back' => 'view')) . '\')', 'class' => 'save save_and_go_to_listing_view_button'));
     //------------------------------
 }
Exemplo n.º 15
0
 public function __construct()
 {
     $this->_controller = 'system_store';
     $this->_headerText = Mage::helper('adminhtml')->__('Manage Stores');
     $this->setTemplate('system/store/container.phtml');
     parent::__construct();
 }
Exemplo n.º 16
0
 public function __construct()
 {
     parent::__construct();
     $this->_objectId = 'moderator_id';
     $this->_blockGroup = 'moderator';
     $this->_controller = 'adminhtml_moderators';
 }
Exemplo n.º 17
0
 public function __construct()
 {
     parent::__construct();
     // Initialization block
     //------------------------------
     $this->setId('wizardInstallation');
     $this->_blockGroup = 'M2ePro';
     $this->_controller = 'adminhtml';
     $this->_mode = 'installation';
     //------------------------------
     // Set header text
     //------------------------------
     $this->_headerText = Mage::helper('M2ePro')->__('Configuration Wizard');
     //------------------------------
     // Set buttons actions
     //------------------------------
     $this->removeButton('back');
     $this->removeButton('reset');
     $this->removeButton('delete');
     $this->removeButton('add');
     $this->removeButton('save');
     $this->removeButton('edit');
     $this->_addButton('goto_about', array('label' => Mage::helper('M2ePro')->__('About'), 'onclick' => 'setLocation(\'' . $this->getUrl('*/adminhtml_about/index') . '\')', 'class' => 'button_link'));
     $this->_addButton('goto_support', array('label' => Mage::helper('M2ePro')->__('Support'), 'onclick' => 'setLocation(\'' . $this->getUrl('*/adminhtml_support/index') . '\')', 'class' => 'button_link'));
     $docsLink = Mage::helper('M2ePro/Module')->getConfig()->getGroupValue('/documentation/', 'baseurl');
     $this->_addButton('goto_docs', array('label' => Mage::helper('M2ePro')->__('Documentation'), 'onclick' => 'window.open(\'' . $docsLink . '\', \'M2ePro Documentation \' + \'' . $docsLink . '\'); return false;', 'class' => 'button_link'));
     $this->_addButton('skip', array('label' => Mage::helper('M2ePro')->__('Skip Wizard'), 'onclick' => 'WizardHandlersObj.skip(\'' . $this->getUrl('*/*/skip') . '\')', 'class' => 'skip'));
     //------------------------------
     $this->setTemplate('widget/form/container.phtml');
 }
Exemplo n.º 18
0
 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('widget/view/container.phtml');
     $this->_addButton('back', array('label' => Mage::helper('adminhtml')->__('Back'), 'onclick' => 'window.location.href=\'' . $this->getUrl('*/*/') . '\'', 'class' => 'back'));
     $this->_addButton('edit', array('label' => Mage::helper('adminhtml')->__('Edit'), 'class' => 'edit', 'onclick' => 'window.location.href=\'' . $this->getEditUrl() . '\''));
 }
Exemplo n.º 19
0
 public function __construct()
 {
     parent::__construct();
     $this->_controller = 'adminhtml_logger_api';
     $this->_headerText = $this->__('Amazon API call');
     $this->setTemplate('creativestyle/checkoutbyamazon/logger/api/view.phtml');
     $this->_addButton('back', array('label' => Mage::helper('adminhtml')->__('Back'), 'onclick' => 'window.location.href=\'' . $this->getUrl('*/*/') . '\'', 'class' => 'back'));
 }
Exemplo n.º 20
0
 public function __construct()
 {
     $this->_controller = 'adminhtml_tenbucks';
     $this->_blockGroup = 'tenbucks_connect';
     $this->_headerText = Mage::helper('tenbucks_connect')->__('My Applications');
     $this->_addButton('standalone', array('label' => Mage::helper('tenbucks_connect')->__('Standalone Mode'), 'onclick' => "window.open('" . $this->getIframeUrl(true) . "')", 'class' => 'add-widget'));
     parent::__construct();
 }
Exemplo n.º 21
0
 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('widget/grid/container.phtml');
     if ($this->_enabledAddNewButton() === true) {
         $this->_addButton('add', array('label' => $this->getAddButtonLabel(), 'onclick' => 'setLocation(\'' . $this->getCreateUrl() . '\')', 'class' => 'add'));
     }
 }
Exemplo n.º 22
0
 public function __construct()
 {
     $this->_controller = 'adminhtml_jirafe';
     $this->_blockGroup = 'foomanjirafe';
     $this->_headerText = Mage::helper('foomanjirafe')->__('Jirafe');
     parent::__construct();
     $this->_removeButton('add');
 }
Exemplo n.º 23
0
 public function __construct()
 {
     parent::__construct();
     // Initialization block
     //------------------------------
     $this->setId('ebayListingSearch');
     //------------------------------
 }
Exemplo n.º 24
0
 function __construct()
 {
     parent::__construct();
     if (!$this->hasData('template')) {
         $this->setTemplate('colorswatch/header.phtml');
     }
     $this->_headerText = Mage::helper('colorswatch')->__('Welcome to SMDesign ColorSwatch');
 }
Exemplo n.º 25
0
 /**
  * Adding two main buttons
  *
  * @return Enterprise_Cms_Block_Adminhtml_Cms_Page_Preview_Buttons
  */
 public function __construct()
 {
     parent::__construct();
     $this->_addButton('preview', array('id' => 'preview-buttons-preview', 'label' => 'Preview', 'class' => 'preview', 'onclick' => 'preview()'));
     if (Mage::getSingleton('enterprise_cms/config')->canCurrentUserPublishRevision()) {
         $this->_addButton('publish', array('id' => 'preview-buttons-publish', 'label' => 'Publish', 'class' => 'publish', 'onclick' => 'publish()'));
     }
 }
 public function __construct()
 {
     $this->_controller = 'adminhtml_searchbarcode';
     $this->_blockGroup = 'inventorybarcode';
     $this->_headerText = Mage::helper('inventorybarcode')->__('Search Barcodes');
     parent::__construct();
     $this->setTemplate('inventorybarcode/search/searchbarcode.phtml');
     $this->_removeButton('add');
 }
Exemplo n.º 27
0
 public function __construct()
 {
     parent::__construct();
     $this->_controller = 'faqArticles';
     $this->_headerText = Mage::helper('pws_faq')->__('Manage FAQ Articles');
     $this->_addButtonLabel = Mage::helper('pws_faq')->__('Add New Article');
     $this->setTemplate('widget/grid/container.phtml');
     $this->_addButton('add', array('label' => $this->getAddButtonLabel(), 'onclick' => 'setLocation(\'' . $this->getCreateUrl() . '\')', 'class' => 'add'));
 }
Exemplo n.º 28
0
 public function __construct()
 {
     parent::__construct();
     $this->_controller = 'adminhtml_logger_reports';
     $this->_headerText = $this->__('Report request');
     $this->setTemplate('creativestyle/checkoutbyamazon/logger/reports/view.phtml');
     $this->_addButton('back', array('label' => Mage::helper('adminhtml')->__('Back'), 'onclick' => 'window.location.href=\'' . $this->getUrl('*/*/') . '\'', 'class' => 'back'));
     $this->_addButton('content_button', array('label' => Mage::helper('checkoutbyamazon')->__('Show report content'), 'class' => 'scalable'));
 }
Exemplo n.º 29
0
 public function __construct()
 {
     parent::__construct();
     // Initialization block
     //------------------------------
     $this->setId('ebayListingViewListingSwitcher');
     //------------------------------
     $this->setTemplate('M2ePro/ebay/listing/view/listing_switcher.phtml');
 }
Exemplo n.º 30
0
 public function __construct()
 {
     parent::__construct();
     // Initialization block
     //------------------------------
     $this->setId('ebayListingHelp');
     //------------------------------
     $this->setTemplate('M2ePro/ebay/listing/help.phtml');
 }