/** * Define list columns * * @return array */ protected function defineColumns() { $result = parent::defineColumns(); $result['orderNumber'][static::COLUMN_TEMPLATE] = $this->getDir() . '/' . $this->getPageBodyDir() . '/order/cell.orderNumber_with_date.tpl'; unset($result['date']); $result['paymentStatus'] = array(static::COLUMN_NAME => static::t('Payment status'), static::COLUMN_LINK => 'order', static::COLUMN_TEMPLATE => $this->getDir() . '/' . $this->getPageBodyDir() . '/order/cell.payment_status.tpl', static::COLUMN_ORDERBY => 150); $result['shippingStatus'] = array(static::COLUMN_NAME => static::t('Shipping status'), static::COLUMN_LINK => 'order', static::COLUMN_TEMPLATE => $this->getDir() . '/' . $this->getPageBodyDir() . '/order/cell.shipping_status.tpl', static::COLUMN_ORDERBY => 160); $result['total'][static::COLUMN_TEMPLATE] = $this->getDir() . '/' . $this->getPageBodyDir() . '/order/cell.total-clean.tpl'; return $result; }
/** * Handles the request. * * @return void */ public function handleRequest() { $cellName = \XLite\View\ItemsList\Model\Order\Admin\Recent::getSessionCellName(); \XLite\Core\Session::getInstance()->{$cellName} = array(\XLite\Model\Repo\Order::P_DATE => array(LC_START_TIME - 86400, LC_START_TIME)); parent::handleRequest(); }
/** * Define the search params * * @return array */ protected function getSearchParams() { return \XLite\View\ItemsList\Model\Order\Admin\Recent::getSearchParams(); }