public function dispShopSearch() { $product_repository = new ProductRepository(); $page = Context::get('page'); $search = Context::get('q'); $args = new stdClass(); $args->module_srl = $this->module_srl; FrontFilters::work($args); $args->sku = $search; $args->title = $search; $args->description = $search; $args->page = $page; $category_srl = Context::get('search_category_srl'); if($category_srl) $args->category_srls = array($category_srl); $output = $product_repository->getProductList($args); Context::set('products', $output->products); Context::set('page_navigation', $output->page_navigation); Context::set('search_value', $search); $this->loadShopCategoryTree(); $this->setTemplateFile("product_search.html"); }