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 _prepareColumns() { if (Mage::helper('smvendors')->getVendorLogin()) { $this->addColumn('real_order_id', array('header' => Mage::helper('sales')->__('Order #'), 'width' => '120px', 'type' => 'text', 'index' => 'vendor_increment_id', 'filter_index' => 'smo.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' => 'vendor_grand_total', 'type' => 'currency', 'currency' => 'base_currency_code')); $this->addColumn('grand_total', array('header' => Mage::helper('sales')->__('G.T. (Purchased)'), 'index' => 'vendor_grand_total', 'type' => 'currency', 'currency' => 'order_currency_code')); $this->addColumn('status', array('header' => Mage::helper('sales')->__('Status'), 'index' => 'vendor_status', 'filter_index' => 'smo.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' => '*/vendors_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')); Mage::dispatchEvent('smvendors_sales_order_grid_prepare_columns', array('order_grid' => $this)); $this->addExportType('*/*/exportCsv', Mage::helper('sales')->__('CSV')); $this->addExportType('*/*/exportExcel', Mage::helper('sales')->__('Excel XML')); $this->sortColumnsByOrder(); return $this; } else { return parent::_prepareColumns(); } }
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 _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 _prepareColumns() { $this->addImportType('orders'); parent::_prepareColumns(); if (Mage::helper('wsacommon')->isModuleEnabled('Webshopapps_Ordermanager', 'order_export/export_orders/active') && Mage::helper('wsacommon')->getNewVersion() >= 8) { $this->addColumn('exported', array('header' => Mage::helper('sales')->__('Exported'), 'index' => 'exported', 'type' => 'options', 'width' => '10px', 'options' => Mage::getSingleton('ordermanager/options_exported')->toOptionArray())); } return; }
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(); } }
/** * Ajout de la nouvelle colonne * */ protected function _prepareColumns() { parent::_prepareColumns(); //Colonne pour les commentaires $this->addAfterColumn('increment_id', array('header' => Mage::helper('Organizer')->__('Organizer'), 'renderer' => 'MDN_Organizer_Block_Widget_Column_Renderer_Comments', 'align' => 'center', 'entity' => 'order'), 'real_order_id'); //Colonne status paiement $this->addAfterColumn('payment_validated', array('header' => Mage::helper('purchase')->__('Payment validated'), 'width' => '40px', 'index' => 'payment_validated', 'align' => 'center', 'type' => 'options', 'options' => array('1' => Mage::helper('purchase')->__('Yes'), '0' => Mage::helper('purchase')->__('No'))), 'status'); $this->addAfterColumn('planning', array('header' => Mage::helper('purchase')->__('Planning'), 'index' => 'planning', 'renderer' => 'MDN_Purchase_Block_Widget_Column_Renderer_OrderPlanning', 'align' => 'center', 'filter' => false, 'sortable' => false), 'payment_validated'); }
/** * * * @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 _prepareColumns() { parent::_prepareColumns(); $this->addColumn('ordercomment', array('header' => Mage::helper('ordercomment')->__('Order Comment'), 'index' => 'ordercomment', 'filter_index' => 'ordercomment_table.comment')); foreach ($this->_ambiguousColumns as $index) { if (isset($this->_columns[$index])) { $this->_columns[$index]->setFilterIndex('main_table.' . $index); } } 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(); $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; }
/** * Prepare grid columns * * @return Magemaven_OrderComment_Block_Adminhtml_Sales_Order_Grid */ protected function _prepareColumns() { parent::_prepareColumns(); // Add order comment to grid $this->addColumn('ordercomment', array('header' => Mage::helper('ordercomment')->__('Last 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 _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; }
protected function _prepareColumns() { if (!Mage::helper("iwd_ordermanager")->enableCustomGrid()) { return parent::_prepareColumns(); } else { $helper = Mage::helper('iwd_ordermanager'); $grid = Mage::getModel('iwd_ordermanager/order_grid')->prepareColumns($this); $grid = Mage::getModel('iwd_ordermanager/order_grid')->addHiddenColumnWithStatus($grid); $grid->addRssList('rss/order/new', $helper->__('New Order RSS')); $grid->addExportType('*/*/exportCsv', $helper->__('CSV')); $grid->addExportType('*/*/exportExcel', $helper->__('Excel XML')); $grid->sortColumnsByOrder(); return $grid; } }
/** * @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; }
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(); }
protected function _prepareColumns() { parent::_prepareColumns(); $actionsColumn = null; if (isset($this->_columns['action'])) { $actionsColumn = $this->_columns['action']; unset($this->_columns['action']); } $attachments = Mage::getModel('amorderattach/field')->getCollection(); $attachments->addFieldToFilter('show_on_grid', 1); $attachments->load(); if ($attachments->getSize()) { foreach ($attachments as $attachment) { switch ($attachment->getType()) { case 'date': $this->addColumn($attachment->getFieldname(), array('header' => $this->__($attachment->getLabel()), 'type' => 'date', 'align' => 'center', 'index' => $attachment->getFieldname(), 'filter_index' => 'attachments.' . $attachment->getFieldname(), 'gmtoffset' => false)); break; case 'text': case 'string': $this->addColumn($attachment->getFieldname(), array('header' => $this->__($attachment->getLabel()), 'index' => $attachment->getFieldname(), 'filter_index' => 'attachments.' . $attachment->getFieldname(), 'filter' => 'adminhtml/widget_grid_column_filter_text', 'sortable' => true)); break; case 'select': $selectOptions = array(); $options = explode(',', $attachment->getOptions()); $options = array_map('trim', $options); if ($options) { foreach ($options as $option) { $selectOptions[$option] = $option; } } $this->addColumn($attachment->getFieldname(), array('header' => $this->__($attachment->getLabel()), 'index' => $attachment->getFieldname(), 'filter_index' => 'attachments.' . $attachment->getFieldname(), 'type' => 'options', 'options' => $selectOptions)); break; } } } if ($actionsColumn) { $this->_columns['action'] = $actionsColumn; } return $this; }
protected function _prepareColumns() { if (Mage::getStoreConfig('Iways_GridPlus/Order/ShippingMethod')) { // TODO: to be tested and optioned in configuration with default $this->addColumnAfter('shipping_method', array('header' => Mage::helper('sales')->__('Shipping Method'), 'index' => 'shipping_description', 'filter_index' => 'shipping_description', 'width' => '70px'), 'shipping_name'); } if (Mage::getStoreConfig('Iways_GridPlus/Order/PaymentMethod')) { $active_methods = Mage::getSingleton('payment/config')->getActiveMethods(); $payment_methods = array(); foreach ($active_methods as $payment_code => $payment_model) { $payment_title = Mage::getStoreConfig('payment/' . $payment_code . '/title'); $payment_methods[$payment_code] = $payment_title; } $this->addColumnAfter('method', array('header' => Mage::helper('sales')->__('Payment Method'), 'index' => 'method', 'filter_index' => 'method', 'type' => 'options', 'width' => '70px', 'options' => $payment_methods), 'shipping_name'); } parent::_prepareColumns(); if (!Mage::getStoreConfig('Iways_GridPlus/Order/Base')) { $this->removeColumn('base_grand_total'); } $this->addColumn('real_order_id', array('header' => Mage::helper('sales')->__('Order #'), 'width' => '80px', 'type' => 'text', 'index' => 'increment_id', 'filter_index' => 'sales_flat_order.increment_id')); $this->addExportType('*/gridplus/exportPdf', Mage::helper('sales')->__('PDF file')); }
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_firstname', array( 'header' => Mage::helper('sales')->__('Bill to First name'), 'index' => 'billing_firstname', )); $this->addColumn('billing_lastname', array( 'header' => Mage::helper('sales')->__('Bill to Last name'), 'index' => 'billing_lastname', ));*/ $this->addColumn('billing_name', array('header' => Mage::helper('sales')->__('Bill to Name'), 'index' => 'billing_name')); /*$this->addColumn('shipping_firstname', array( 'header' => Mage::helper('sales')->__('Ship to First name'), 'index' => 'shipping_firstname', )); $this->addColumn('shipping_lastname', array( 'header' => Mage::helper('sales')->__('Ship to Last name'), 'index' => 'shipping_lastname', ));*/ $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())); 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' => '*/*/view'), 'field' => 'order_id')), 'filter' => false, 'sortable' => false, 'index' => 'stores', 'is_system' => true)); } $this->addRssList('rss/order/new', Mage::helper('sales')->__('New Order RSS')); return parent::_prepareColumns(); }
protected function _prepareColumns() { $return = parent::_prepareColumns(); $this->addAfterColumn('fraud_score', array('header' => Mage::helper('sales')->__('Fraud<br/>Estimation (%)'), 'width' => '15px', 'type' => 'number', 'index' => 'fraud_score', 'filter_condition_callback' => array($this, '_filterFraudScore'), 'align' => 'center', 'filter' => 'adminhtml/widget_grid_column_filter_range', 'renderer' => 'Directshop_FraudDetection_Block_Adminhtml_Widget_Grid_Column_Renderer_Fraudscore'), 'status'); return $return; }
protected function _prepareColumns() { return parent::_prepareColumns(); }
/** * {@inheritdoc} */ protected function _prepareColumns() { $result = parent::_prepareColumns(); Mage::dispatchEvent('adminhtml_sales_order_grid_prepare_columns', array('block' => $this)); return $result; }
/** * Modify real order id column. * * @see app/code/core/Mage/Adminhtml/Block/Sales/Order/Mage_Adminhtml_Block_Sales_Order_Grid#_prepareColumns() * @return Dhl_Intraship_Block_Adminhtml_Sales_Order_Grid */ protected function _prepareColumns() { parent::_prepareColumns(); $this->addColumn('real_order_id', array('header' => Mage::helper('sales')->__('Order #'), 'width' => '110px', 'index' => 'increment_id', 'renderer' => 'intraship/adminhtml_sales_order_grid_renderer_icon')); return $this; }
protected function _prepareColumns() { parent::_prepareColumns(); $this->addColumn('postcode', array('header' => Mage::helper('sales')->__('Postcode'), 'index' => 'postcode')); }