示例#1
0
 protected function _prepareColumns()
 {
     $this->addColumn('telephone', array('header' => Mage::helper('inventorycustomer')->__('Phone'), 'align' => 'left', 'index' => 'telephone', 'renderer' => 'inventorycustomer/adminhtml_returningcustomers_renderer_customerphone'));
     $this->addColumn('orders', array('header' => Mage::helper('inventorycustomer')->__('Orders'), 'align' => 'left', 'index' => 'entity_id', 'filter' => false, 'sortable' => false, 'renderer' => 'inventorycustomer/adminhtml_returningcustomers_renderer_orders'));
     $this->addColumn('ratio', array('header' => Mage::helper('inventorycustomer')->__('Ratio'), 'align' => 'left', 'index' => 'entity_id', 'filter' => false, 'sortable' => false, 'renderer' => 'inventorycustomer/adminhtml_returningcustomers_renderer_orderratio'));
     return parent::_prepareColumns();
 }
示例#2
0
 protected function _prepareColumns()
 {
     $this->addColumn('customer_interaction_id', array('header_css_class' => 'a-center', 'align' => 'center', 'width' => '25px', 'index' => 'customer_interaction_id', 'type' => 'checkbox', 'renderer' => 'inventorycustomer/adminhtml_todolist_renderer_checkstatus'));
     $this->addColumn('next_action', array('header' => Mage::helper('inventorycustomer')->__('Things To Do'), 'align' => 'left', 'index' => 'next_action', 'type' => 'options', 'options' => Mage::getSingleton('inventorycustomer/system_config_source_action')->getOptionArray(), 'renderer' => 'inventorycustomer/adminhtml_todolist_renderer_checkstatus'));
     $this->addColumn('telephone', array('header' => Mage::helper('inventorycustomer')->__('Customer'), 'align' => 'right', 'width' => '100px', 'index' => 'telephone', 'renderer' => 'inventorycustomer/adminhtml_todolist_renderer_checkstatus'));
     $this->addColumn('remind_at', array('header' => Mage::helper('inventorycustomer')->__('Due Date'), 'align' => 'right', 'width' => '150px', 'index' => 'remind_at', 'type' => 'date', 'renderer' => 'inventorycustomer/adminhtml_todolist_renderer_checkstatus'));
     $this->addCSVExport();
     return parent::_prepareColumns();
 }
示例#3
0
 protected function _prepareColumns()
 {
     $this->addColumn('action', array('header' => Mage::helper('inventorycustomer')->__('Action'), 'align' => 'left', 'index' => 'action', 'type' => 'options', 'options' => Mage::getSingleton('inventorycustomer/system_config_source_action')->getOptionArray()));
     $this->addColumn('telephone', array('header' => Mage::helper('inventorycustomer')->__('Customer'), 'align' => 'right', 'width' => '100px', 'index' => 'telephone', 'renderer' => 'inventorycustomer/adminhtml_manageinteractions_renderer_customertype'));
     $this->addColumn('result', array('header' => Mage::helper('inventorycustomer')->__('Result'), 'align' => 'left', 'index' => 'result', 'type' => 'options', 'options' => Mage::getSingleton('inventorycustomer/system_config_source_result')->getOptionArray()));
     $this->addColumn('date', array('header' => Mage::helper('inventorycustomer')->__('Date'), 'align' => 'right', 'width' => '150px', 'index' => 'interaction_created_at', 'filter_index' => 'main_table.created_at', 'type' => 'date', 'format' => 'd/M/Y'));
     $this->addCSVExport();
     return parent::_prepareColumns();
 }
示例#4
0
 protected function _prepareColumns()
 {
     $currencyCode = Mage::app()->getStore()->getBaseCurrency()->getCode();
     $this->addColumn('name', array('header' => Mage::helper('inventorycustomer')->__('Full Name'), 'align' => 'left', 'index' => 'name', 'renderer' => 'inventorycustomer/adminhtml_allcustomers_renderer_inline'));
     $this->addColumn('email', array('header' => Mage::helper('inventorycustomer')->__('Email'), 'align' => 'left', 'index' => 'email', 'renderer' => 'inventorycustomer/adminhtml_allcustomers_renderer_inline'));
     $this->addColumn('telephone', array('header' => Mage::helper('inventorycustomer')->__('Phone Number'), 'align' => 'left', 'index' => 'telephone', 'renderer' => 'inventorycustomer/adminhtml_allcustomers_renderer_inline'));
     $this->addColumn('created_at', array('header' => Mage::helper('inventorycustomer')->__('Created Date'), 'align' => 'left', 'index' => 'created_at', 'type' => 'date', 'format' => 'd/M/Y'));
     $this->addColumn('last_order_date', array('header' => Mage::helper('inventorycustomer')->__('Recent Ordered'), 'align' => 'left', 'index' => 'last_order_date', 'type' => 'date', 'format' => 'd/M/Y', 'filter_condition_callback' => array($this, '_filterDateCallback')));
     $this->addColumn('number_orders', array('header' => Mage::helper('inventorycustomer')->__('Num. Orders'), 'align' => 'left', 'index' => 'number_orders', 'type' => 'number', 'filter_condition_callback' => array($this, '_filterNumberCallback')));
     $this->addColumn('number_items', array('header' => Mage::helper('inventorycustomer')->__('Num. Items'), 'align' => 'left', 'index' => 'number_items', 'type' => 'number', 'filter_condition_callback' => array($this, '_filterNumberCallback')));
     $this->addColumn('total_value', array('header' => Mage::helper('inventorycustomer')->__('Total Value'), 'width' => '150px', 'align' => 'left', 'type' => 'price', 'currency_code' => $currencyCode, 'index' => 'total_value', 'filter_condition_callback' => array($this, '_filterNumberCallback')));
     $this->addColumn('customer_satisfaction_type', array('header' => Mage::helper('inventorycustomer')->__('Customer Type'), 'align' => 'center', 'width' => '80px', 'index' => 'customer_satisfaction_type', 'type' => 'options', 'options' => Mage::getSingleton('inventorycustomer/attribute_source_customer')->getOptionArray(), 'renderer' => 'inventorycustomer/adminhtml_allcustomers_renderer_customertype'));
     $this->addColumn('action', array('header' => Mage::helper('catalog')->__('Action'), 'width' => '50px', 'type' => 'action', 'actions' => array(array('caption' => Mage::helper('catalog')->__('Edit'), 'url' => array('base' => '*/*/edit'), 'field' => 'id')), 'filter' => false, 'sortable' => false, 'index' => 'entity_id'));
     $this->addCSVExport();
     return parent::_prepareColumns();
 }
 protected function _prepareColumns()
 {
     $this->addColumn('telephone', array('header' => Mage::helper('inventorycustomer')->__('Normal'), 'index' => 'telephone', 'header_css_class' => 'a-center', 'renderer' => 'inventorycustomer/adminhtml_customertypes_renderer_customertype'));
     return parent::_prepareColumns();
 }