// removing cookie from product customization
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7680 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -62,7 +62,7 @@ class SearchControllerCore extends FrontController
|
||||
Module::hookExec('search', array('expr' => $query, 'total' => $search['total']));
|
||||
$nbProducts = $search['total'];
|
||||
$this->pagination($nbProducts);
|
||||
$this->smarty->assign(array(
|
||||
self::$smarty->assign(array(
|
||||
'products' => $search['result'], // DEPRECATED (since to 1.4), not use this: conflict with block_cart module
|
||||
'search_products' => $search['result'],
|
||||
'nbProducts' => $search['total'],
|
||||
@@ -79,7 +79,7 @@ class SearchControllerCore extends FrontController
|
||||
Module::hookExec('search', array('expr' => $query, 'total' => $search['total']));
|
||||
$nbProducts = $search['total'];
|
||||
$this->pagination($nbProducts);
|
||||
$this->smarty->assign(array(
|
||||
self::$smarty->assign(array(
|
||||
'products' => $search['result'], // DEPRECATED (since to 1.4), not use this: conflict with block_cart module
|
||||
'search_products' => $search['result'],
|
||||
'nbProducts' => $search['total'],
|
||||
@@ -92,7 +92,7 @@ class SearchControllerCore extends FrontController
|
||||
$this->pagination($nbProducts);
|
||||
$result = Search::searchTag((int)(self::$cookie->id_lang), $tag, false, $this->p, $this->n, $this->orderBy, $this->orderWay);
|
||||
Module::hookExec('search', array('expr' => $tag, 'total' => sizeof($result)));
|
||||
$this->smarty->assign(array(
|
||||
self::$smarty->assign(array(
|
||||
'search_tag' => $tag,
|
||||
'products' => $result, // DEPRECATED (since to 1.4), not use this: conflict with block_cart module
|
||||
'search_products' => $result,
|
||||
@@ -101,13 +101,13 @@ class SearchControllerCore extends FrontController
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->smarty->assign(array(
|
||||
self::$smarty->assign(array(
|
||||
'products' => array(),
|
||||
'search_products' => array(),
|
||||
'pages_nb' => 1,
|
||||
'nbProducts' => 0));
|
||||
}
|
||||
$this->smarty->assign('add_prod_display', Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY'));
|
||||
self::$smarty->assign('add_prod_display', Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY'));
|
||||
}
|
||||
|
||||
public function displayHeader()
|
||||
@@ -115,13 +115,13 @@ class SearchControllerCore extends FrontController
|
||||
if (!$this->instantSearch AND !$this->ajaxSearch)
|
||||
parent::displayHeader();
|
||||
else
|
||||
$this->smarty->assign('static_token', Tools::getToken(false));
|
||||
self::$smarty->assign('static_token', Tools::getToken(false));
|
||||
}
|
||||
|
||||
public function displayContent()
|
||||
{
|
||||
parent::displayContent();
|
||||
$this->smarty->display(_PS_THEME_DIR_.'search.tpl');
|
||||
self::$smarty->display(_PS_THEME_DIR_.'search.tpl');
|
||||
}
|
||||
|
||||
public function displayFooter()
|
||||
|
||||
Reference in New Issue
Block a user