Пример #1
0
 /**
  * Apply sorting and filtering to collection
  *
  * @return $this
  */
 protected function _initSelect()
 {
     parent::_initSelect();
     $this->addFieldToSelect('entity_id')->addFieldToSelect('created_at')->addFieldToSelect('increment_id')->addFieldToSelect('order_currency_code')->addFieldToSelect('store_currency_code')->addFieldToSelect('base_currency_code')->addFieldToSelect('state')->addFieldToSelect('grand_total')->addFieldToSelect('base_grand_total')->addFieldToSelect('billing_name')->setOrderFilter($this->getOrder());
     return $this;
 }
Пример #2
0
 /**
  * Apply sorting and filtering to collection
  *
  * @return $this
  */
 protected function _initSelect()
 {
     parent::_initSelect()->setOrderFilter($this->getOrder());
     return $this;
 }