2

I try to create custom grid with orders shipped by some shipping method (for example TNT). Here is a method where should be a filter:

protected function _prepareCollection()
{
    $collection = Mage::getResourceModel($this->_getCollectionClass());
    $this->setCollection($collection);
    return parent::_prepareCollection();
}

I'm going to use something like addFieldToFilter(), but I don't know field name. Could you help me?

4

2 回答 2

1

How about "shipping_method" or "shipping_description". this fields are from "sales_flat_order"

于 2011-05-11T13:46:41.427 回答
0

I've made this extension which allows you to filter the admin orders grid by shipping and payment methods. give it a try :)

于 2011-05-11T14:13:15.743 回答