Exemplo n.º 1
0
 protected function _prepareColumns()
 {
     $this->addColumn('epid', array('header' => Mage::helper('M2ePro')->__('ePID'), 'align' => 'left', 'type' => 'text', 'index' => 'epid', 'width' => '100px', 'frame_callback' => array($this, 'callbackColumnIdentifier')));
     $this->addColumn('product_type', array('header' => Mage::helper('M2ePro')->__('Type'), 'align' => 'left', 'type' => 'options', 'index' => 'product_type', 'options' => array(Ess_M2ePro_Helper_Component_Ebay_Motor_Compatibility::PRODUCT_TYPE_VEHICLE => Mage::helper('M2ePro')->__('Car / Truck'), Ess_M2ePro_Helper_Component_Ebay_Motor_Compatibility::PRODUCT_TYPE_MOTORCYCLE => Mage::helper('M2ePro')->__('Motorcycle'))));
     $this->addColumn('make', array('header' => Mage::helper('M2ePro')->__('Make'), 'align' => 'left', 'type' => 'text', 'index' => 'make', 'width' => '150px'));
     $this->addColumn('model', array('header' => Mage::helper('M2ePro')->__('Model'), 'align' => 'left', 'type' => 'text', 'index' => 'model', 'width' => '150px'));
     $this->addColumn('submodel', array('header' => Mage::helper('M2ePro')->__('Submodel'), 'align' => 'left', 'type' => 'text', 'index' => 'submodel', 'width' => '100px', 'frame_callback' => array($this, 'callbackNullableColumn')));
     $this->addColumn('year', array('header' => Mage::helper('M2ePro')->__('Year'), 'align' => 'left', 'type' => 'number', 'index' => 'year', 'width' => '100px'));
     $this->addColumn('trim', array('header' => Mage::helper('M2ePro')->__('Trim'), 'align' => 'left', 'type' => 'text', 'index' => 'trim', 'width' => '100px', 'frame_callback' => array($this, 'callbackNullableColumn')));
     $this->addColumn('engine', array('header' => Mage::helper('M2ePro')->__('Engine'), 'align' => 'left', 'type' => 'text', 'index' => 'engine', 'width' => '100px', 'frame_callback' => array($this, 'callbackNullableColumn')));
     return parent::_prepareColumns();
 }
Exemplo n.º 2
0
 protected function _prepareColumns()
 {
     $this->addColumn('ktype', array('header' => Mage::helper('M2ePro')->__('kType'), 'align' => 'left', 'type' => 'text', 'index' => 'ktype', 'width' => '100px', 'frame_callback' => array($this, 'callbackColumnIdentifier')));
     $this->addColumn('make', array('header' => Mage::helper('M2ePro')->__('Make'), 'align' => 'left', 'type' => 'text', 'index' => 'make', 'width' => '150px'));
     $this->addColumn('model', array('header' => Mage::helper('M2ePro')->__('Model'), 'align' => 'left', 'type' => 'text', 'index' => 'model', 'width' => '150px'));
     $this->addColumn('variant', array('header' => Mage::helper('M2ePro')->__('Variant'), 'align' => 'left', 'type' => 'text', 'index' => 'variant', 'width' => '150px'));
     $this->addColumn('body_style', array('header' => Mage::helper('M2ePro')->__('Body Style'), 'align' => 'left', 'type' => 'text', 'index' => 'body_style', 'width' => '150px'));
     $this->addColumn('type', array('header' => Mage::helper('M2ePro')->__('Type'), 'align' => 'left', 'type' => 'text', 'index' => 'type', 'width' => '150px'));
     $this->addColumn('year', array('header' => Mage::helper('M2ePro')->__('Year'), 'align' => 'left', 'type' => 'text', 'width' => '150px', 'frame_callback' => array($this, 'callbackYearColumn'), 'filter_condition_callback' => array($this, 'yearColumnFilter')));
     $this->addColumn('engine', array('header' => Mage::helper('M2ePro')->__('Engine'), 'align' => 'left', 'type' => 'text', 'index' => 'engine', 'width' => '100px', 'frame_callback' => array($this, 'callbackNullableColumn')));
     return parent::_prepareColumns();
 }