/** * Prepare and add columns to grid * * @return Mage_Adminhtml_Block_Widget_Grid */ protected function _prepareColumns() { if ($this->_getHelper()->moduleIsActive()) { $this->addColumn('zitec_dpd_manifest', array('header' => $this->_getHelper()->__('Manifest'), 'index' => 'zitec_manifest_id', 'type' => 'text', 'renderer' => 'Zitec_Dpd_Block_Adminhtml_Sales_Shipment_Grid_Renderer_Manifest', 'filter_condition_callback' => array($this, '_filterManifesto'))); $this->addColumnsOrder('zitec_dpd_manifest_closed', 'total_qty'); /* * removed column from frontend temporary * $this->addColumn('zitec_dpd_pickup_time', array( 'header' => $this->_getHelper()->__('DPD Pickup'), 'index' => 'zitec_dpd_pickup_time', 'type' => 'text', )); $this->addColumnsOrder('zitec_dpd_pickup_time', 'zitec_dpd_manifest'); */ } return parent::_prepareColumns(); }
/** * Prepare and add columns to grid * * @return Mage_Adminhtml_Block_Widget_Grid */ protected function _prepareColumns() { if ($vendor = Mage::helper('smvendors')->getVendorLogin()) { $this->addColumn('increment_id', array('header' => Mage::helper('sales')->__('Shipment #'), 'index' => 'increment_id', 'filter_index' => 'main_table.increment_id', 'type' => 'text')); $this->addColumn('created_at', array('header' => Mage::helper('sales')->__('Date Shipped'), 'index' => 'created_at', 'type' => 'datetime')); $this->addColumn('order_increment_id', array('header' => Mage::helper('sales')->__('Order #'), 'index' => 'vendor_increment_id', 'filter_index' => 'smo.increment_id', 'type' => 'text')); $this->addColumn('order_created_at', array('header' => Mage::helper('sales')->__('Order Date'), 'index' => 'order_created_at', 'type' => 'datetime')); $this->addColumn('shipping_name', array('header' => Mage::helper('sales')->__('Ship to Name'), 'index' => 'shipping_name')); $this->addColumn('total_qty', array('header' => Mage::helper('sales')->__('Total Qty'), 'index' => 'total_qty', 'type' => 'number')); $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_shipment/view'), 'field' => 'shipment_id', 'params' => array('come_from' => 'shipment'))), 'filter' => false, 'sortable' => false, 'is_system' => true)); $this->addExportType('*/*/exportCsv', Mage::helper('sales')->__('CSV')); $this->addExportType('*/*/exportExcel', Mage::helper('sales')->__('Excel XML')); $this->sortColumnsByOrder(); return $this; } else { $this->sortColumnsByOrder(); return parent::_prepareColumns(); } }
/** * Adds two more columns to shipment grid view (status + download pdf) * * @return Dhl_Intraship_Block_Adminhtml_Sales_Shipment_Grid $this */ protected function _prepareColumns() { parent::_prepareColumns(); $this->addColumn('intraship_status', array('header' => Mage::helper('intraship')->__('Intraship Status'), 'index' => 'status', 'type' => 'options', 'options' => Mage::getSingleton('intraship/shipment')->getStatuses(), 'filter' => version_compare(Mage::getVersion(), '1.4.2.0', '>=') ? null : false, 'sortable' => version_compare(Mage::getVersion(), '1.4.2.0', '>='), 'is_system' => false)); $this->addColumn('label', array('header' => Mage::helper('intraship')->__('PDF'), 'width' => '50px', 'type' => 'action', 'getter' => 'getShipmentId', 'actions' => array(array('caption' => Mage::helper('sales')->__('PDF'), 'url' => array('base' => 'intraship/shipment/pdf'), 'field' => 'id', 'popup' => true)), 'filter' => false, 'sortable' => false, 'is_system' => false, 'renderer' => 'intraship/adminhtml_sales_shipment_grid_renderer_action')); return $this; }
protected function _prepareColumns() { $this->addImportType('shipments'); return parent::_prepareColumns(); }