'table table-striped order-history']; public $defaultOrderBy = 'Transaction.added DESC'; protected function _initColumns() { $this->addColumn('text', 'id', ['title' => '#', 'orderBy' => 'id']) ->addColumn('submitted', 'submitted', ['title' => 'Submitted', 'orderBy' => 'added']) ->addColumn('customerName', 'customerName', ['title' => 'User', 'orderBy' => 'billingLastName']) ->addColumn('money', 'total', ['title' => 'Total', 'orderBy' => 'total']) ->addColumn('paid', 'paid', ['title' => 'Paid', 'orderBy' => 'paid']) ->addColumn('order-status', 'status', ['title' => 'Status', 'orderBy' => 'status']) ->addColumn('text', 'delivery', ['title' => 'Shipping', 'orderBy' => 'delivery', 'defaultText' => '—']); return $this; } }