开发者

How to filter order list by shipping method?

开发者 https://www.devze.com 2023-03-04 22:28 出处:网络
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:

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()
{
    $co开发者_开发知识库llection = 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?


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消