Skip to main content

Magento add FROM-TO filter in column sales grigrid

Source Link
snh_nl
  • 5.5k
  • 13
  • 70
  • 135

Magento add FROM-TO filter in column sales gri

we added a custom column that has integer value. How can we now add a FROM-tO filter like below?

Is there a special command for this?

enter image description here

$this->addColumn('created_at', array(
    'header' => Mage::helper('sales')->__('Purchased On'),
    'index' => 'created_at',
    'type' => 'datetime',
    'width' => '100px',
    'filter_index' => 'main_table.created_at'
));