Ejemplo n.º 1
0
 protected function _prepareColumns()
 {
     $this->addColumns();
     $this->addColumnAfter('name', array('header' => Mage::helper('M2ePro')->__('Product Title / SKU'), 'align' => 'left', 'type' => 'text', 'index' => 'name', 'filter_index' => 'name', 'frame_callback' => array($this, 'callbackColumnTitle'), 'filter_condition_callback' => array($this, 'callbackFilterTitle')), 'product_id');
     return parent::_prepareColumns();
 }
Ejemplo n.º 2
0
 protected function _prepareColumns()
 {
     $this->addColumns();
     $this->addColumnAfter('name', array('header' => Mage::helper('M2ePro')->__('Product Title / SKU / eBay Category'), 'align' => 'left', 'type' => 'text', 'index' => 'name', 'filter' => 'M2ePro/adminhtml_ebay_listing_view_settings_grid_column_filter_titleSkuCategory', 'frame_callback' => array($this, 'callbackColumnTitle'), 'filter_condition_callback' => array($this, 'callbackFilterTitle')), 'product_id');
     if ($this->isMotorsSpecificsAvailable() && $this->motorsSpecificsAttribute) {
         $this->addColumnAfter('motors_specifics_attribute_value', array('header' => Mage::helper('M2ePro')->__('Compatibility'), 'align' => 'left', 'width' => '100px', 'type' => 'options', 'index' => $this->motorsSpecificsAttribute->getAttributeCode(), 'sortable' => false, 'options' => array(1 => Mage::helper('M2ePro')->__('Filled'), 0 => Mage::helper('M2ePro')->__('Empty')), 'frame_callback' => array($this, 'callbackColumnMotorsSpecificsAttribute'), 'filter_condition_callback' => array($this, 'callbackFilterMotorsSpecificsAttribute')), 'name');
     }
     return parent::_prepareColumns();
 }