/** * Block constructor */ public function __construct() { $this->_controller = 'sitemap'; $this->_headerText = Mage::helper('sitemap')->__('Google Sitemap'); $this->_addButtonLabel = Mage::helper('sitemap')->__('Add Sitemap'); parent::__construct(); }
public function __construct() { $this->_controller = 'customer'; $this->_headerText = Mage::helper('Mage_Customer_Helper_Data')->__('Manage Customers'); $this->_addButtonLabel = Mage::helper('Mage_Customer_Helper_Data')->__('Add New Customer'); parent::__construct(); }
/** * Block constructor */ public function __construct() { $this->_controller = 'system_variable'; $this->_headerText = Mage::helper('adminhtml')->__('Custom Variables'); parent::__construct(); $this->_updateButton('add', 'label', Mage::helper('adminhtml')->__('Add New Variable')); }
public function __construct() { $this->_controller = 'promo_quote'; $this->_headerText = Mage::helper('salesrule')->__('Shopping Cart Price Rules'); $this->_addButtonLabel = Mage::helper('salesrule')->__('Add New Rule'); parent::__construct(); }
public function __construct() { parent::__construct(); // Initialization block // --------------------------------------- $this->setId('ebayListingOther'); $this->_blockGroup = 'M2ePro'; $this->_controller = 'adminhtml_ebay_listing_other'; // --------------------------------------- // 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'); // --------------------------------------- $url = $this->getUrl('*/adminhtml_ebay_log/listingOther'); $this->_addButton('view_log', array('label' => Mage::helper('M2ePro')->__('View Log'), 'onclick' => 'window.open(\'' . $url . '\',\'_blank\')', 'class' => 'button_link')); // --------------------------------------- // --------------------------------------- $url = $this->getUrl('*/adminhtml_ebay_listing_other_synchronization/edit'); $this->_addButton('goto_listing_other_synchronization', array('label' => Mage::helper('M2ePro')->__('Synchronization Settings'), 'onclick' => 'window.open(\'' . $url . '\', \'_blank\'); return false;', 'class' => 'button_link')); // --------------------------------------- }
public function __construct() { $this->_controller = 'catalog_product_attribute'; $this->_headerText = AO::helper('catalog')->__('Manage Attributes'); $this->_addButtonLabel = AO::helper('catalog')->__('Add New Attribute'); parent::__construct(); }
public function __construct() { parent::__construct(); // Initialization block //------------------------------ $this->setId('ebayFeedback'); $this->_blockGroup = 'M2ePro'; $this->_controller = 'adminhtml_ebay_feedback'; //------------------------------ // Set header text //------------------------------ $accountTitle = ''; $accountId = $this->getRequest()->getParam('account'); if (!is_null($accountId)) { $accountTitle = Mage::getModel('M2ePro/Account')->load((int) $accountId)->getTitle(); } $this->_headerText = Mage::helper('M2ePro')->__('Feedback for account "%s"', $accountTitle); //------------------------------ // Set buttons actions //------------------------------ $this->removeButton('back'); $this->removeButton('reset'); $this->removeButton('delete'); $this->removeButton('add'); $this->removeButton('save'); $this->removeButton('edit'); $this->_addButton('goto_orders', array('label' => Mage::helper('M2ePro')->__('Orders'), 'onclick' => 'setLocation(\'' . $this->getUrl('*/adminhtml_ebay_order/index') . '\')', 'class' => 'button_link')); $this->_addButton('goto_accounts', array('label' => Mage::helper('M2ePro')->__('Accounts'), 'onclick' => 'setLocation(\'' . $this->getUrl('*/adminhtml_ebay_account/index') . '\')', 'class' => 'button_link')); $this->_addButton('reset', array('label' => Mage::helper('M2ePro')->__('Refresh'), 'onclick' => 'EbayFeedbackHandlerObj.reset_click()', 'class' => 'reset')); //------------------------------ }
/** * Construct */ public function __construct() { $this->_controller = 'permissions_block'; $this->_headerText = Mage::helper('adminhtml')->__('Blocks'); $this->_addButtonLabel = Mage::helper('adminhtml')->__('Add New Block'); parent::__construct(); }
public function __construct() { $this->_controller = 'adminhtml_registries'; $this->_blockGroup = 'webengage_coup'; $this->_headerText = Mage::helper('webengage_coup')->__('Webengage coup'); parent::__construct(); }
public function __construct() { parent::__construct(); // Initialization block //------------------------------ $this->setId('aboutManageDbTable'); $this->_blockGroup = 'M2ePro'; $this->_controller = 'adminhtml_about_ManageDbTable'; //------------------------------ // Set header text //------------------------------ $this->_headerText = Mage::helper('M2ePro')->__('Manage DB Table "' . Mage::registry('M2ePro_data_table') . '"'); //------------------------------ // 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' => 'setLocation(\'' . $this->getUrl('*/*/index', array('show_manage_db_table' => true)) . '\')', 'class' => 'back')); $this->_addButton('goto_about', array('label' => Mage::helper('M2ePro')->__('About'), 'onclick' => 'setLocation(\'' . $this->getUrl('*/*/index') . '\')', 'class' => 'button_link')); $this->_addButton('delete_all', array('label' => Mage::helper('M2ePro')->__('Clear Table'), 'onclick' => 'deleteConfirm(\'' . Mage::helper('M2ePro')->__('Are you sure?') . '\', \'' . $this->getUrl('*/*/deleteDbTableAll', array('table' => Mage::registry('M2ePro_data_table'), 'model' => Mage::registry('M2ePro_data_model'))) . '\')', 'class' => 'delete_all')); $this->_addButton('reset', array('label' => Mage::helper('M2ePro')->__('Refresh'), 'onclick' => 'CommonHandlersObj.reset_click()', 'class' => 'reset')); //------------------------------ }
public function __construct() { parent::__construct(); $this->listing = Mage::helper('M2ePro/Data_Global')->getValue('temp_data'); // Initialization block //------------------------------ $this->setId('ebayListingView'); $this->_blockGroup = 'M2ePro'; $this->_controller = 'adminhtml_ebay_listing_view_' . $this->getViewMode(); //------------------------------ // Set buttons actions //------------------------------ $this->removeButton('back'); $this->removeButton('reset'); $this->removeButton('delete'); $this->removeButton('add'); $this->removeButton('save'); $this->removeButton('edit'); //------------------------------ //------------------------------ $this->_headerText = Mage::helper('M2ePro')->__('View Listing'); //------------------------------ //------------------------------ $url = $this->getUrl('*/adminhtml_ebay_log/listing', array('id' => $this->listing->getId())); $this->_addButton('view_log', array('label' => Mage::helper('M2ePro')->__('View Log'), 'onclick' => 'window.open(\'' . $url . '\',\'_blank\')', 'class' => 'button_link')); //------------------------------ //------------------------------ $this->_addButton('edit_templates', array('label' => Mage::helper('M2ePro')->__('Edit Listing Settings'), 'onclick' => '', 'class' => 'drop_down edit_default_settings_drop_down')); //------------------------------ //------------------------------ $this->_addButton('add_products', array('label' => Mage::helper('M2ePro')->__('Add Products'), 'onclick' => '', 'class' => 'add drop_down add_products_drop_down')); //------------------------------ }
public function __construct() { $this->_controller = 'cms_block'; $this->_headerText = Mage::helper('Mage_Cms_Helper_Data')->__('Static Blocks'); $this->_addButtonLabel = Mage::helper('Mage_Cms_Helper_Data')->__('Add New Block'); parent::__construct(); }
public function __construct() { $this->_addButtonLabel = Mage::helper('review')->__('Add New Review'); parent::__construct(); $this->_controller = 'review'; // lookup customer, if id is specified $customerId = $this->getRequest()->getParam('customerId', false); $customerName = ''; if ($customerId) { $customer = Mage::getModel('customer/customer')->load($customerId); $customerName = $customer->getFirstname() . ' ' . $customer->getLastname(); $customerName = $this->escapeHtml($customerName); } if (Mage::registry('usePendingFilter') === true) { if ($customerName) { $this->_headerText = Mage::helper('review')->__('Pending Reviews of Customer `%s`', $customerName); } else { $this->_headerText = Mage::helper('review')->__('Pending Reviews'); } $this->_removeButton('add'); } else { if ($customerName) { $this->_headerText = Mage::helper('review')->__('All Reviews of Customer `%s`', $customerName); } else { $this->_headerText = Mage::helper('review')->__('All Reviews'); } } }
public function __construct() { parent::__construct(); // Initialization block // --------------------------------------- $this->setId('ebayListingCategory'); $this->_blockGroup = 'M2ePro'; $this->_controller = 'adminhtml_ebay_listing_category_category'; // --------------------------------------- // --------------------------------------- // Set buttons actions // --------------------------------------- $this->removeButton('back'); $this->removeButton('reset'); $this->removeButton('delete'); $this->removeButton('add'); $this->removeButton('save'); $this->removeButton('edit'); // --------------------------------------- // --------------------------------------- $this->_headerText = Mage::helper('M2ePro')->__('Set eBay Categories (Based On Magento Categories)'); // --------------------------------------- // --------------------------------------- $url = $this->getUrl('*/*/', array('step' => 1, '_current' => true)); $this->_addButton('back', array('label' => Mage::helper('M2ePro')->__('Back'), 'class' => 'back', 'onclick' => 'setLocation(\'' . $url . '\');')); // --------------------------------------- // --------------------------------------- $this->_addButton('next', array('id' => 'ebay_listing_category_continue_btn', 'label' => Mage::helper('M2ePro')->__('Continue'), 'class' => 'scalable next', 'onclick' => "EbayListingCategoryCategoryGridHandlerObj.validate()")); // --------------------------------------- }
public function __construct() { $this->_controller = 'report_product_ordered'; $this->_headerText = Mage::helper('reports')->__('Bestsellers'); parent::__construct(); $this->_removeButton('add'); }
public function __construct() { $this->_controller = 'api_user'; $this->_headerText = Mage::helper('adminhtml')->__('Users'); $this->_addButtonLabel = Mage::helper('adminhtml')->__('Add New User'); parent::__construct(); }
public function __construct() { $this->_controller = 'catalog_search'; $this->_headerText = Mage::helper('catalog')->__('Search'); $this->_addButtonLabel = Mage::helper('catalog')->__('Add New Search Term'); parent::__construct(); }
public function __construct() { $this->_controller = 'api_role'; $this->_headerText = Mage::helper('Mage_Adminhtml_Helper_Data')->__('Roles'); $this->_addButtonLabel = Mage::helper('Mage_Adminhtml_Helper_Data')->__('Add New Role'); parent::__construct(); }
public function __construct() { $this->_controller = 'adminhtml_menu'; $this->_blockGroup = 'menu_manager'; $this->_headerText = Mage::helper('menu_manager')->__('Manage Menus'); parent::__construct(); }
public function __construct() { $this->_controller = 'tag_tag'; $this->_headerText = Mage::helper('tag')->__('Manage Tags'); $this->_addButtonLabel = Mage::helper('tag')->__('Add New Tag'); parent::__construct(); }
public function __construct() { parent::__construct(); // Initialization block // --------------------------------------- $this->setId('ebayConfigurationCategory'); $this->_blockGroup = 'M2ePro'; $this->_controller = 'adminhtml_ebay_configuration_category'; // --------------------------------------- // Set header text // --------------------------------------- $this->_headerText = ''; // --------------------------------------- // Set buttons actions // --------------------------------------- $this->removeButton('back'); $this->removeButton('reset'); $this->removeButton('delete'); $this->removeButton('save'); $this->removeButton('edit'); $this->removeButton('add'); // --------------------------------------- // Set template // --------------------------------------- $this->setTemplate('M2ePro/widget/grid/container/only_content.phtml'); // --------------------------------------- }
public function __construct() { $this->_controller = 'adminhtml_rate_earn'; $this->_blockGroup = 'points'; $this->_headerText = Mage::helper('points')->__('Earning Points'); parent::__construct(); }
public function __construct() { $this->_controller = 'report_shopcart_customer'; $this->_headerText = Mage::helper('reports')->__('Customers'); parent::__construct(); $this->_removeButton('add'); }
public function __construct() { $this->_controller = 'adminhtml_page'; $this->_blockGroup = 'searchlandingpage'; $this->_headerText = Mage::helper('searchlandingpage')->__('Landing Pages'); parent::__construct(); }
/** * Modify header & button labels * */ public function __construct() { $this->_controller = 'customer_group'; $this->_headerText = Mage::helper('customer')->__('Customer Groups'); $this->_addButtonLabel = Mage::helper('customer')->__('Add New Customer Group'); parent::__construct(); }
public function __construct() { $this->_controller = 'system_convert_gui'; $this->_headerText = Mage::helper('adminhtml')->__('Profiles'); $this->_addButtonLabel = Mage::helper('adminhtml')->__('Add New Profile'); parent::__construct(); }
public function __construct() { $this->_controller = 'sales_invoice'; $this->_headerText = Mage::helper('sales')->__('Invoices'); parent::__construct(); $this->_removeButton('add'); }
public function __construct() { $this->_controller = 'report_product_lowstock'; $this->_headerText = Mage::helper('reports')->__('Low stock'); parent::__construct(); $this->_removeButton('add'); }
public function __construct() { $this->_controller = 'report_review_product'; $this->_headerText = Mage::helper('reports')->__('Products Reviews'); parent::__construct(); $this->_removeButton('add'); }
public function __construct() { $this->_controller = 'report_tag_popular'; $this->_headerText = Mage::helper('reports')->__('Popular Tags'); parent::__construct(); $this->_removeButton('add'); }