public function prepareGridColumns(Mzax_Emarketing_Block_Filter_Object_Grid $grid) { $grid->addColumn('name', array('header' => Mage::helper('mzax_emarketing')->__('Name'), 'index' => 'name')); $grid->addColumn('email', array('header' => Mage::helper('mzax_emarketing')->__('Email'), 'index' => 'email')); $grid->addColumn('city', array('header' => Mage::helper('mzax_emarketing')->__('City'), 'index' => 'city')); $grid->addColumn('postcode', array('header' => Mage::helper('mzax_emarketing')->__('Postcode'), 'index' => 'postcode')); }
public function prepareGridColumns(Mzax_Emarketing_Block_Filter_Object_Grid $grid) { $grid->addColumn('sent_at', array('header' => Mage::helper('sales')->__('Sent at'), 'index' => 'sent_at', 'type' => 'datetime', 'width' => '150px')); $grid->addColumn('object_id', array('header' => Mage::helper('sales')->__('Object ID'), 'index' => 'object_id', 'type' => 'number')); $grid->addColumn('campaign_id', array('header' => Mage::helper('sales')->__('Campaign ID'), 'index' => 'campaign_id', 'type' => 'number')); $grid->addColumn('variation_id', array('header' => Mage::helper('sales')->__('Variation ID'), 'index' => 'variation_id', 'type' => 'number')); }
public function prepareGridColumns(Mzax_Emarketing_Block_Filter_Object_Grid $grid) { if (!Mage::app()->isSingleStoreMode()) { $grid->addColumn('store_id', array('header' => Mage::helper('sales')->__('Purchased From (Store)'), 'index' => 'store_id', 'type' => 'store', 'store_view' => true, 'display_deleted' => true, 'width' => '20%')); } $grid->addColumn('customer_id', array('header' => $this->__('Customer ID'), 'id_field' => 'customer_id', 'label_field' => 'customer_id', 'is_system' => true, 'width' => '50px', 'renderer' => 'mzax_emarketing/recipients_column_renderer_object', 'object' => Mage::getSingleton('mzax_emarketing/object_customer'))); $grid->addColumn('created_at', array('header' => Mage::helper('sales')->__('Purchased On'), 'index' => 'created_at', 'type' => 'datetime', 'width' => '100px')); $grid->addColumn('status', array('header' => Mage::helper('sales')->__('Status'), 'index' => 'status', 'type' => 'options', 'width' => '70px', 'options' => Mage::getSingleton('sales/order_config')->getStatuses())); }
public function prepareGridColumns(Mzax_Emarketing_Block_Filter_Object_Grid $grid) { foreach (Mage::getSingleton('catalog/product_type')->getOptions() as $option) { $productTypes[$option['value']] = $option['label']; } $grid->addColumn('product_type', array('header' => $this->__('Product Type'), 'index' => 'product_type', 'type' => 'options', 'options' => $productTypes)); /* $grid->addColumn('product', array( 'header' => $this->__('Product SKU'), 'is_system' => true, 'width' => '25%', 'id_field' => 'product_id', 'label_field' => 'sku', 'renderer' => 'mzax_emarketing/recipients_column_renderer_subject', 'object' => Mage::getSingleton('mzax_emarketing/object_product'), )); */ $grid->addColumn('sku', array('header' => Mage::helper('sales')->__('SKU'), 'index' => 'sku', 'width' => '30%')); $grid->addColumn('name', array('header' => Mage::helper('sales')->__('Name'), 'index' => 'name')); }
public function prepareGridColumns(Mzax_Emarketing_Block_Filter_Object_Grid $grid) { $grid->addColumn('name', array('header' => Mage::helper('mzax_emarketing')->__('Name'), 'index' => 'name')); $grid->addColumn('email', array('header' => Mage::helper('mzax_emarketing')->__('Email'), 'index' => 'email')); $grid->addColumn('newsletter_status', array('header' => $this->__('Newsletter'), 'width' => '80px', 'index' => 'newsletter_status', 'align' => 'center', 'type' => 'options', 'options' => array_map('ucwords', array(Mage_Newsletter_Model_Subscriber::STATUS_SUBSCRIBED => $this->__('subscribed'), Mage_Newsletter_Model_Subscriber::STATUS_UNSUBSCRIBED => $this->__('unsubscribed'), Mage_Newsletter_Model_Subscriber::STATUS_NOT_ACTIVE => $this->__('not activated'), Mage_Newsletter_Model_Subscriber::STATUS_UNCONFIRMED => $this->__('unconfirmed'))))); }