示例#1
0
 /**
  * Process 'no action'
  *
  * @return void
  */
 protected function doNoAction()
 {
     parent::doNoAction();
     if (\XLite\Core\Request::getInstance()->fast_search) {
         // Refresh search parameters from the request
         \XLite\Core\Session::getInstance()->{\XLite\View\ItemsList\Model\Product\Admin\Search::getSessionCellName()} = $this->getSearchParams();
         // Get ItemsList widget
         $widget = new \XLite\View\ItemsList\Model\Product\Admin\Search();
         // Search for single product entity
         $entity = $widget->searchForSingleEntity();
         if ($entity && $entity instanceof \XLite\Model\Product) {
             // Prepare redirect to product page
             $url = $this->buildURL('product', '', array('product_id' => $entity->getProductId()));
             $this->setReturnURL($url);
         }
     }
 }
示例#2
0
 /**
  * doActionUpdate
  *
  * @return void
  */
 protected function doActionUpdate()
 {
     $list = new \XLite\View\ItemsList\Model\Product\Admin\Search();
     $list->processQuick();
 }