From 6b0515db2d3d16ab7d4d0437ee3bde3121099615 Mon Sep 17 00:00:00 2001 From: dMetzger Date: Fri, 21 Sep 2012 10:05:07 +0000 Subject: [PATCH] [-] FO : instant search relevancy fixed #PSCFV-4267 --- controllers/front/SearchController.php | 2 +- modules/blocktopmenu/blocktopmenu.tpl | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/controllers/front/SearchController.php b/controllers/front/SearchController.php index b3ccbc4bf..665388b74 100644 --- a/controllers/front/SearchController.php +++ b/controllers/front/SearchController.php @@ -72,7 +72,7 @@ class SearchControllerCore extends FrontController $this->productSort(); $this->n = abs((int)(Tools::getValue('n', Configuration::get('PS_PRODUCTS_PER_PAGE')))); $this->p = abs((int)(Tools::getValue('p', 1))); - $search = Search::find($this->context->language->id, $query, $this->p, $this->n, $this->orderBy, $this->orderWay); + $search = Search::find($this->context->language->id, $query, 1, 10, 'position', 'desc'); Hook::exec('actionSearch', array('expr' => $query, 'total' => $search['total'])); $nbProducts = $search['total']; $this->pagination($nbProducts); diff --git a/modules/blocktopmenu/blocktopmenu.tpl b/modules/blocktopmenu/blocktopmenu.tpl index 65e1e540c..f85be7fa0 100644 --- a/modules/blocktopmenu/blocktopmenu.tpl +++ b/modules/blocktopmenu/blocktopmenu.tpl @@ -8,10 +8,12 @@ {if $MENU_SEARCH} {/if}