Exemple #1
0
 public function view($status = '')
 {
     $orderList = new OrderList();
     if ($this->get('keywords')) {
         $orderList->setSearch($this->get('keywords'));
     }
     if ($status) {
         $orderList->setStatus($status);
     }
     $orderList->setItemsPerPage(20);
     $paginator = $orderList->getPagination();
     $pagination = $paginator->renderDefaultView();
     $this->set('orderList', $paginator->getCurrentPageResults());
     $this->set('pagination', $pagination);
     $this->set('paginator', $paginator);
     $this->set('orderStatuses', OrderStatus::getList());
     $this->requireAsset('css', 'vividStoreDashboard');
     $this->requireAsset('javascript', 'vividStoreFunctions');
     $this->set('statuses', OrderStatus::getAll());
 }
Exemple #2
0
 public function view($status = '')
 {
     $orderList = new OrderList();
     if ($this->get('keywords')) {
         $orderList->setSearch($this->get('keywords'));
     }
     if ($status) {
         $orderList->setStatus($status);
     }
     $orderList->setItemsPerPage(20);
     $paginator = $orderList->getPagination();
     $pagination = $paginator->renderDefaultView();
     $this->set('orderList', $paginator->getCurrentPageResults());
     $this->set('pagination', $pagination);
     $this->set('paginator', $paginator);
     $this->set('orderStatuses', OrderStatus::getList());
     $pkg = Package::getByHandle('vivid_store');
     $packagePath = $pkg->getRelativePath();
     $this->addHeaderItem(Core::make('helper/html')->css($packagePath . '/css/vividStoreDashboard.css'));
     $this->addFooterItem(Core::make('helper/html')->javascript($packagePath . '/js/vividStoreFunctions.js'));
     $this->set('statuses', OrderStatus::getAll());
 }