时间戳列的日期部分滤波器我有在网格下列柱:Magento的1.7 - 在电网
$this->addColumn('order_date',
array(
'header'=> $this->__('Date'),
'align' =>'left',
'width' => '100px',
'index' => 'order_date',
'type' => 'date',
'filter_index' => 'orders_alias.created_at'
)
);
实施例的数据看起来像这样:http://imageshack.us/photo/my-images/502/scr028.jpg/
当日期13 Oct 2012
没有行滤波被发现。这是有道理的,因为它是一个时间戳列。 http://imageshack.us/photo/my-images/29/scr029.jpg/
如何使用Magento日期从/到选择器并选择13/10/2012
并显示所有行与此日期的行 而不考虑时间部分?
看看app/code/core/Mage/Adminhtml/Block/Widget/Grid/Column/Filter/Date.php,它可以给你一些线索 – ivantedja
我会看看那个。 – Guus
外部链接不再工作-.- – Phil