protected function _prepareMassaction() { parent::_prepareMassaction(); if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/cancel')) { $this->getMassactionBlock()->addItem('cancel_order_with_bcash', array('label' => $this->__('Cancelar com Bcash'), 'url' => $this->getUrl('bcash/admin_sales_order/masscanceltransaction/'))); } }
protected function _prepareColumns() { $this->addColumn('real_order_id', array('header' => Mage::helper('sales')->__('Order #'), 'width' => '80px', 'type' => 'text', 'index' => 'increment_id')); if (!Mage::app()->isSingleStoreMode()) { $this->addColumn('store_id', array('header' => Mage::helper('sales')->__('Purchased From (Store)'), 'index' => 'store_id', 'type' => 'store', 'store_view' => true, 'display_deleted' => true)); } $this->addColumn('created_at', array('header' => Mage::helper('sales')->__('Purchased On'), 'index' => 'created_at', 'type' => 'datetime', 'width' => '100px')); $this->addColumn('billing_name', array('header' => Mage::helper('sales')->__('Bill to Name'), 'index' => 'billing_name')); $this->addColumn('shipping_name', array('header' => Mage::helper('sales')->__('Ship to Name'), 'index' => 'shipping_name')); $this->addColumn('base_grand_total', array('header' => Mage::helper('sales')->__('G.T. (Base)'), 'index' => 'base_grand_total', 'type' => 'currency', 'currency' => 'base_currency_code')); $this->addColumn('grand_total', array('header' => Mage::helper('sales')->__('G.T. (Purchased)'), 'index' => 'grand_total', 'type' => 'currency', 'currency' => 'order_currency_code')); $payments = Mage::getSingleton('payment/config')->getActiveMethods(); $methods = array(); foreach ($payments as $paymentCode => $paymentModel) { $paymentTitle = Mage::getStoreConfig('payment/' . $paymentCode . '/title'); $methods[$paymentCode] = $paymentTitle; } $this->addColumn('method', array('header' => Mage::helper('sales')->__('Payment Method'), 'index' => 'method', 'filter_index' => 'payment.method', 'type' => 'options', 'width' => '70px', 'options' => $methods)); $this->addColumn('status', array('header' => Mage::helper('sales')->__('Status'), 'index' => 'status', 'type' => 'options', 'width' => '70px', 'options' => Mage::getSingleton('sales/order_config')->getStatuses())); if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/view')) { $this->addColumn('action', array('header' => Mage::helper('sales')->__('Action'), 'width' => '50px', 'type' => 'action', 'getter' => 'getId', 'actions' => array(array('caption' => Mage::helper('sales')->__('View'), 'url' => array('base' => '*/sales_order/view'), 'field' => 'order_id')), 'filter' => false, 'sortable' => false, 'index' => 'stores', 'is_system' => true)); } $this->addRssList('rss/order/new', Mage::helper('sales')->__('New Order RSS')); $this->addExportType('*/*/exportCsv', Mage::helper('sales')->__('CSV')); $this->addExportType('*/*/exportExcel', Mage::helper('sales')->__('Excel XML')); return parent::_prepareColumns(); }
protected function _prepareMassaction() { parent::_prepareMassaction(); if (Mage::getStoreConfig("order_export/export_orders/active")) { $this->getMassactionBlock()->addItem('ordermanager', array('label' => Mage::helper('sales')->__('Export orders'), 'url' => $this->getUrl('*/sales_order_export/csvexport'))); } }
protected function _prepareMassaction() { parent::_prepareMassaction(); if (Mage::getStoreConfig(self::XPATH_CONFIG_SETTINGS_IS_ACTIVE)) { $this->getMassactionBlock()->addItem('orders2csv', array('label' => Mage::helper('sales')->__('Orders2CSV'), 'url' => $this->getUrl('*/sales_order_orders2csv/makecsv'))); } }
protected function _prepareColumns() { $this->addColumn('real_order_id', array('header' => Mage::helper('sales')->__('Order #'), 'width' => '80px', 'type' => 'text', 'index' => 'increment_id')); if (!Mage::app()->isSingleStoreMode()) { $this->addColumn('store_id', array('header' => Mage::helper('sales')->__('Purchased From (Store)'), 'index' => 'store_id', 'type' => 'store', 'store_view' => true, 'display_deleted' => true)); } $this->addColumn('created_at', array('header' => Mage::helper('sales')->__('Purchased On'), 'index' => 'created_at', 'type' => 'datetime', 'width' => '100px')); $this->addColumn('billing_name', array('header' => Mage::helper('sales')->__('Bill to Name'), 'index' => 'billing_name')); $this->addColumn('shipping_name', array('header' => Mage::helper('sales')->__('Ship to Name'), 'index' => 'shipping_name')); $this->addColumn('base_grand_total', array('header' => Mage::helper('sales')->__('G.T. (Base)'), 'index' => 'base_grand_total', 'type' => 'currency', 'currency' => 'base_currency_code')); $this->addColumn('grand_total', array('header' => Mage::helper('sales')->__('G.T. (Purchased)'), 'index' => 'grand_total', 'type' => 'currency', 'currency' => 'order_currency_code')); $this->addColumn('status', array('header' => Mage::helper('sales')->__('Status'), 'index' => 'status', 'type' => 'options', 'width' => '70px', 'options' => Mage::getSingleton('sales/order_config')->getStatuses())); $this->addColumn('status_clearsale', array('header' => Mage::helper('sales')->__('Clearsale'), 'index' => 'status_clearsale', 'type' => 'options', 'width' => '70px', 'options' => Mage::getSingleton('sales/order_config')->getStatuses(), 'filter_index' => 'main_table.status')); if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/view')) { $this->addColumn('action', array('header' => Mage::helper('sales')->__('Action'), 'width' => '50px', 'type' => 'action', 'getter' => 'getId', 'actions' => array(array('caption' => Mage::helper('sales')->__('View'), 'url' => array('base' => '*/sales_order/view'), 'field' => 'order_id')), 'filter' => false, 'sortable' => false, 'index' => 'stores', 'is_system' => true)); } $this->addRssList('rss/order/new', Mage::helper('sales')->__('New Order RSS')); $this->addExportType('*/*/exportCsv', Mage::helper('sales')->__('CSV')); $this->addExportType('*/*/exportExcel', Mage::helper('sales')->__('Excel XML')); return parent::_prepareColumns(); /* $this->addColumnAfter('tipo_pagamento', array( 'header' => Mage::helper('sales')->__('Pagamento'), 'index' => 'tipo_pagamento', 'type' => 'options', 'width' => '100px', 'align' => 'center', 'options' => Mage::getModel('gwap/order')->getArrayTipoPagamentos(), ), 'base_grand_total'); */ }
protected function _prepareMassaction() { parent::_prepareMassaction(); if (intval(Mage::helper('fcontrol')->getConfig('type_service')) !== Buscape_Fcontrol_Model_Api::FRAME) { $this->getMassactionBlock()->addItem('sendlist_order', array('label' => Mage::helper('sales')->__('Enfileirar no F-Control'), 'url' => $this->getUrl('*/sales_order/sendlist'))); } }
protected function _prepareColumns() { /** * Prepare parent collection. * Then update the indexes of each column to explicitly use the main_table * Otherwise we get ambiguous SQL. * Ugly, but it works. */ parent::_prepareColumns(); $mainTableColumns = array('real_order_id' => true, 'store_id' => true, 'created_at' => true, 'billing_name' => true, 'shipping_name' => true, 'base_grand_total' => true, 'grand_total' => true, 'status' => true); foreach ($this->_columns as $id => $column) { if (isset($mainTableColumns[$id])) { $column->setIndex('main_table.' . $column->getIndex()); } } $filter = $this->getParam('filter'); $filter_data = Mage::helper('adminhtml')->prepareFilterString($filter); $this->addColumnAfter('name', array('header' => Mage::helper('sales')->__('Customer Name'), 'renderer' => 'ICC_Orderfiltering_Block_Adminhtml_Renderer_Customername', 'filter_condition_callback' => array($this, '_searchCustomerName')), 'created_at'); $this->addColumn('Producttypes', array('header' => Mage::helper('sales')->__('Product Types'), 'index' => 'item_type_values', 'type' => 'options', 'width' => '150px', 'options' => Mage::helper('icc_orderfiltering')->getTypes(), 'renderer' => 'ICC_Orderfiltering_Block_Adminhtml_Renderer_Producttype', 'filter_index' => 'eav_attribute_option_value.value')); $this->addColumn('old_order_id_a', array('header' => 'Old Order Id A', 'index' => 'old_order_id_a', 'type' => 'text', 'width' => '150px', 'value' => isset($filter_data['old_order_id_a']) ? $filter_data['old_order_id_a'] : '')); $this->addColumn('old_order_id_b', array('header' => 'Old Order Id B', 'index' => 'old_order_id_b', 'type' => 'text', 'width' => '150px', 'value' => isset($filter_data['old_order_id_b']) ? $filter_data['old_order_id_b'] : '')); // this is called in the parent, but we needed to call the parent above // so we call this again here after adding our columns $this->sortColumnsByOrder(); return $this; }
protected function _prepareMassaction() { parent::_prepareMassaction(); $this->getMassactionBlock()->addItem('seperator1', array('label' => Mage::helper('sales')->__('---------------'), 'url' => '')); $this->getMassactionBlock()->addItem('sendpin_order', array('label' => Mage::helper('sales')->__('Send PIN'), 'url' => $this->getUrl('pin/adminhtml_pin/massSendPin'))); return $this; }
protected function _prepareMassaction() { parent::_prepareMassaction(); if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/delete')) { $this->getMassactionBlock()->addItem('delete_order', array('label' => Mage::helper('sales')->__('Delete'), 'url' => $this->getUrl('orderseraser/adminhtml_orderseraser/massdelete'))); } return $this; }
protected function _prepareMassaction() { parent::_prepareMassaction(); $this->getMassactionBlock()->addItem('validate_payment', array('label' => Mage::helper('purchase')->__('Validate payment'), 'url' => $this->getUrl('Purchase/Misc/Validatepayment')))->addItem('cancel_payment', array('label' => Mage::helper('purchase')->__('Cancel payment'), 'url' => $this->getUrl('Purchase/Misc/Cancelpayment'))); //Modifie l'url pour l'annulation en masse des commandes $this->getMassactionBlock()->addItem('cancel_order', array('label' => Mage::helper('sales')->__('Cancel'), 'url' => $this->getUrl('Purchase/Misc/massCancel'))); return $this; }
protected function _prepareCollection() { $collection = Mage::getResourceModel($this->_getCollectionClass()); //we changed mysql query, we added inner join to order item table $collection->join('sales/order_item', 'order_id=entity_id', array('name' => 'name', 'sku' => 'sku', 'qty_ordered' => 'qty_ordered'), null, 'left'); $this->setCollection($collection); return parent::_prepareCollection(); }
protected function _prepareMassaction() { parent::_prepareMassaction(); $modules = (array) Mage::getConfig()->getNode('modules')->children(); if (isset($modules['EM_DeleteOrder']) && $modules['EM_DeleteOrder']->is('active')) { $this->getMassactionBlock()->addItem('delete_order', array('label' => Mage::helper('sales')->__('Delete order'), 'url' => $this->getUrl('*/sales_order/deleteorder'))); } return $this; }
protected function _prepareColumns() { if (Mage::getStoreConfig("scoreoptions/messages/activate")) { $this->addColumnAfter('recommendation', array('header' => Mage::helper('sales')->__('Recommendation'), 'index' => 'recommendation'), 'status'); return parent::_prepareColumns(); } else { return parent::_prepareColumns(); } }
public function __construct() { parent::__construct(); $this->setId('sales_order_grid'); $this->setUseAjax(true); $this->setDefaultSort('created_at'); $this->setDefaultDir('DESC'); $this->setSaveParametersInSession(true); }
public function getRowUrl($row) { if (Mage::helper('smvendors')->getVendorLogin()) { if (Mage::getSingleton('admin/session')->isAllowed('smvendors/vendors_orders/actions/view')) { return $this->getUrl('*/vendors_order/view', array('order_id' => $row->getId())); } return false; } else { return parent::getRowUrl($row); } }
/** * * * @param Mage_Sales_Model_Mysql4_Order_Grid_Collection $collection */ protected function _prepareColumns() { $res = parent::_prepareColumns(); $action = $this->_columns['action']; unset($this->_columns['action']); $this->addColumn('delivery_date', array('header' => Mage::helper('adjdeliverydate')->__('Delivery Date'), 'index' => 'delivery_date', 'renderer' => 'adminhtml/widget_grid_column_renderer_date', 'filter' => 'adjdeliverydate/adminhtml_filter_delivery', 'width' => '100px')); $this->_columns['action'] = $action; $this->_columns['action']->setId('action'); $this->_lastColumnId = 'action'; return $res; }
protected function _prepareMassaction() { // Let the base class do its work parent::_prepareMassaction(); if ($this->isExtensionActive('SLandsbek_SimpleOrderExport')) { $this->getMassactionBlock()->addItem('simpleorderexport', array('label' => $this->__('Export to .csv file'), 'url' => $this->getUrl('simpleorderexport/export_order/csvexport'))); } if ($this->isExtensionActive('BoutikCircus_DeleteOrders')) { $this->getMassactionBlock()->addItem('delete_order', array('label' => Mage::helper('sales')->__('Delete'), 'url' => $this->getUrl('*/*/deleteorders', array('_current' => true)))); } $this->getMassactionBlock()->addItem('amlist', array('label' => $this->__('Email to Customers'), 'url' => $this->getUrl('amemail/adminhtml_index/index', array()))); }
protected function _prepareColumns() { parent::_prepareColumns(); $role = Mage::getSingleton('aitpermissions/role'); if ($role->isPermissionsEnabled()) { $allowedStoreviews = $role->getAllowedStoreviewIds(); if (count($allowedStoreviews) <= 1 && isset($this->_columns['store_id'])) { unset($this->_columns['store_id']); } } return $this; }
/** * Update existing colums from Mage_Adminhtml_Block_Sales_Order_Grid * * @return Mage_Adminhtml_Block_Widget_Grid */ protected function _prepareColumns() { parent::_prepareColumns(); $this->addColumnAfter('autocancel_date', array('header' => Mage::helper('stockreleaser')->__('Canceled On'), 'index' => 'autocancel_date', 'type' => 'datetime', 'width' => '100px'), 'created_at'); if (version_compare(Mage::getVersion(), '1.6.0.0', '>=')) { $this->removeColumn('status'); } else { $this->removeColumnAlt('status'); } $this->_updateActions(); return Mage_Adminhtml_Block_Widget_Grid::_prepareColumns(); }
protected function _prepareColumns() { $this->addColumnAfter('shipping_description', array('header' => Mage::helper('sales')->__('Shipping Method'), 'index' => 'shipping_description'), 'shipping_name'); $this->addColumnAfter('method', array('header' => Mage::helper('sales')->__('Payment Method'), 'index' => 'method', 'type' => 'options', 'options' => Mage::helper('payment')->getPaymentMethodList()), 'shipping_description'); $this->addColumnAfter('shipping_city', array('header' => Mage::helper('sales')->__('Shipping City'), 'index' => 'shipping_city'), 'method'); $this->addColumnAfter('shipping_telephone', array('header' => Mage::helper('sales')->__('Shipping Telephone'), 'index' => 'shipping_telephone'), 'method'); $this->addColumnAfter('shipping_region', array('header' => Mage::helper('sales')->__('Shipping Region'), 'index' => 'shipping_region'), 'method'); $this->addColumnAfter('shipping_postcode', array('header' => Mage::helper('sales')->__('Shipping Postcode'), 'index' => 'shipping_postcode'), 'method'); $this->addColumnAfter('product_count', array('header' => Mage::helper('sales')->__('Product Count'), 'index' => 'product_count', 'type' => 'number'), 'increment_id'); $this->addColumnAfter('skus', array('header' => Mage::helper('sales')->__('Product Purchased'), 'index' => 'skus'), 'increment_id'); return parent::_prepareColumns(); }
protected function _prepareColumns() { parent::_prepareColumns(); // Add order comment to grid $this->addColumn('ordercomment', array('header' => Mage::helper('ordercomment')->__('Order Comment'), 'index' => 'ordercomment', 'filter_index' => 'ordercomment_table.comment')); // Fix integrity constraint violation in SELECT foreach ($this->_ambiguousColumns as $index) { if (isset($this->_columns[$index])) { $this->_columns[$index]->setFilterIndex('main_table.' . $index); } } return $this; }
protected function _prepareCollection() { if (Mage::helper('wsacommon')->getNewVersion() >= 8) { $collectionClass = $this->_getCollectionClass(); $collection = Mage::getResourceModel($collectionClass); //added this if (Mage::helper('wsacommon')->isModuleEnabled('Webshopapps_Ordermanager', 'order_export/export_orders/active')) { $collection->join('ordermanager/exported', 'entity_id=order_id', 'exported'); } $this->setCollection($collection); } return parent::_prepareCollection(); }
protected function _prepareColumns() { $this->addColumnAfter('email', array( 'header' => Mage::helper('CLS_EnhancedOrderExport')->__('Email'), 'index' => 'email', 'type' => 'text', 'filter' => false, ), 'shipping_name'); $this->addExportType('*/*/exportCsvEnhanced', Mage::helper('sales')->__('CSVe')); parent::_prepareColumns(); $this->removeColumn('billing_name'); $this->removeColumn('shipping_name'); return $this; }
public function _toHtml() { $fix_header = ""; if (Mage::getModel('iwd_ordermanager/order_grid')->isFixGridHeader()) { $fix_header = 'if($ji.isFunction($ji.fn.stickyTableHeaders)){$ji("#sales_order_grid_table").stickyTableHeaders();}'; } $script = '<script type="text/javascript"> if(typeof(jQueryIWD) == "undefined"){if(typeof(jQuery) != "undefined") {jQueryIWD = jQuery;}} $ji = jQueryIWD; if($ji("#sales_order_grid_table").length) { IWD.OrderManager.Grid.ColorGridRow(); ' . $fix_header . ' } </script>'; return parent::_toHtml() . $script . $this->updateFilters(); }
protected function _prepareMassaction() { parent::_prepareMassaction(); // Append new mass action option // $this->getMassactionBlock()->addItem( // 'pdfinvoiceplus', array('label' => $this->__('Print Order PDFInvoicePlus'), // 'url' => $this->getUrl('pdfinvoiceplus/adminhtml_order/printmass') //this should be the url where there will be mass operation // ) // ); if (Mage::helper('pdfinvoiceplus')->checkEnable()) { $this->getMassactionBlock()->addItem('pdforder', array('label' => $this->__('Print Orders via PDF Invoice+'), 'url' => $this->getUrl('pdfinvoiceplusadmin/adminhtml_order/printmassorder'))); $this->getMassactionBlock()->addItem('pdfinvoice', array('label' => $this->__('Print Invoices via PDF Invoice+'), 'url' => $this->getUrl('pdfinvoiceplusadmin/adminhtml_invoice/printmassinvoice'))); $this->getMassactionBlock()->addItem('pdfcreditmemo', array('label' => $this->__('Print Credit Memos via PDF Invoice+'), 'url' => $this->getUrl('pdfinvoiceplusadmin/adminhtml_creditmemo/printmasscreditmemo'))); } }
protected function _prepareMassaction() { $this->setMassactionIdField('entity_id'); $this->getMassactionBlock()->setFormFieldName('order_ids'); $this->getMassactionBlock()->setUseSelectAll(false); $templateCollection = Mage::getModel('eadesign/pdfgenerator')->getCollection(); $templateCollection->addFieldToSelect('*')->addFieldToFilter('pdft_is_active', 1); $templates[0] = Mage::helper('sales')->__('Select'); foreach ($templateCollection as $collection) { $templates[$collection->getData('pdftemplate_id')] = $collection->getData('pdftemplate_name'); } $this->getMassactionBlock()->addItem('pdforders_orderea', array('label' => Mage::helper('sales')->__('EaDesgin PDF Invoices'), 'url' => $this->getUrl('adminpdfgenerator/adminhtml_pdfgeneratorpdf/orderpdfmass', array('_current' => true)), 'additional' => array('visibility' => array('name' => 'template', 'type' => 'select', 'class' => 'required-entry', 'label' => Mage::helper('catalog')->__('Template to print'), 'values' => $templates)))); parent::_prepareMassaction(); return $this; }
/** * @return $this */ protected function _prepareColumns() { parent::_prepareColumns(); if (Mage::getStoreConfig(self::XML_PATH_RENDER_COLUMN) && !$this->_isExport) { // Specify table to fix ambiguous column errors foreach ($this->getColumns() as $column) { if ($column->getIndex()) { $column->setFilterIndex('main_table.' . $column->getIndex()); } } $this->addColumnAfter('skus', array('header' => Mage::helper('sales')->__('Products Ordered (%s)', Mage::getStoreConfig(self::XML_PATH_RENDER_COLUMN)), 'index' => 'skus', 'type' => 'text', 'filter_index' => 'soi.' . Mage::getStoreConfig(self::XML_PATH_FILTER_COLUMN), 'sortable' => FALSE, 'renderer' => 'Cm_OrderProducts_Block_Adminhtml_Sales_Order_Grid_Renderer_Products', 'render_column' => Mage::getStoreConfig(self::XML_PATH_RENDER_COLUMN)), 'shipping_name'); $this->sortColumnsByOrder(); } Mage::app()->dispatchEvent('cm_orderproducts_sales_order_grid_prepareColumns', ['block' => $this]); return $this; }
public function setCollection($collection) { // 1.6.1 if ($collection instanceof Mage_Sales_Model_Resource_Order_Grid_Collection) { $collection->getSelect()->joinLeft(array('frauddetection_data' => $collection->getTable('frauddetection/result')), 'frauddetection_data.order_id=main_table.entity_id', 'fraud_score'); } else { if ($collection instanceof Mage_Core_Model_Mysql4_Collection_Abstract) { $collection->getSelect()->joinLeft(array('frauddetection_data' => $collection->getTable('frauddetection/result')), 'frauddetection_data.order_id=main_table.entity_id', 'fraud_score'); } else { if ($collection instanceof Mage_Eav_Model_Entity_Collection_Abstract) { $collection->joinTable('frauddetection/result', 'order_id=entity_id', array("fraud_score" => "fraud_score"), null, "left"); } } } return parent::setCollection($collection); }
protected function _prepareColumns() { if (Mage::getModel('pointofsale/pointofsale')->getPlaces()->count() > 0) { $places = Mage::getModel('pointofsale/pointofsale')->getPlaces(); $inventories[0] = Mage::helper('advancedinventory')->__('Not Assigned'); foreach ($places as $p) { $inventories[$p->getPlaceId()] = $p->getName() . ' (' . $p->getStoreCode() . ')'; } $this->addColumn('assignation', array('header' => Mage::helper('sales')->__('Assigned to '), 'index' => 'assignation', 'type' => 'options', 'width' => '150px', 'options' => $inventories, 'renderer' => "Wyomind_Advancedinventory_Block_Renderer_Assignation")); //if(version_compare(Mage::getVersion(), '1.3.0', '>')) { $this->addColumnsOrder('assignation', 'status'); $this->sortColumnsByOrder(); //} } parent::_prepareColumns(); }
/** * Init sales archive massactions * * @return Enterprise_SalesArchive_Block_Adminhtml_Sales_Archive_Order_Grid */ protected function _prepareMassaction() { parent::_prepareMassaction(); $this->_rssLists = array(); if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/cancel')) { $this->getMassactionBlock()->addItem('cancel_order', array('label' => Mage::helper('sales')->__('Cancel'), 'url' => $this->getUrl('*/sales_archive/massCancel'))); } if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/hold')) { $this->getMassactionBlock()->addItem('hold_order', array('label' => Mage::helper('sales')->__('Hold'), 'url' => $this->getUrl('*/sales_archive/massHold'))); } if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/unhold')) { $this->getMassactionBlock()->addItem('unhold_order', array('label' => Mage::helper('sales')->__('Unhold'), 'url' => $this->getUrl('*/sales_archive/massUnhold'))); } if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/unhold')) { $this->getMassactionBlock()->addItem('unhold_order', array('label' => Mage::helper('sales')->__('Unhold'), 'url' => $this->getUrl('*/sales_archive/massUnhold'))); } if (Mage::getSingleton('admin/session')->isAllowed('sales/archive/order/remove')) { $this->getMassactionBlock()->addItem('remove_order_from_archive', array('label' => Mage::helper('enterprise_salesarchive')->__('Move to Orders Management'), 'url' => $this->getUrl('*/sales_archive/massRemove'))); } return $this; }