[-] FO : fixed bug #PSCFI-2571 #PSCFI-2571
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17438 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
a5b4596cd7
commit
060ed4cce1
2 files changed
+6
-2
No files matched your search
@@ -121,7 +121,7 @@ class SearchControllerCore extends FrontController
|
|||||||
'pages_nb' => 1,
|
'pages_nb' => 1,
|
||||||
'nbProducts' => 0));
|
'nbProducts' => 0));
|
||||||
}
|
}
|
||||||
$this->context->smarty->assign('add_prod_display', Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY'));
|
$this->context->smarty->assign(array('add_prod_display' => Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY'), 'comparator_max_item' => Configuration::get('PS_COMPARATOR_MAX_ITEM')));
|
||||||
|
|
||||||
$this->setTemplate(_PS_THEME_DIR_.'search.tpl');
|
$this->setTemplate(_PS_THEME_DIR_.'search.tpl');
|
||||||
}
|
}
|
||||||
@@ -146,5 +146,8 @@ class SearchControllerCore extends FrontController
|
|||||||
|
|
||||||
if (!$this->instant_search && !$this->ajax_search)
|
if (!$this->instant_search && !$this->ajax_search)
|
||||||
$this->addCSS(_THEME_CSS_DIR_.'product_list.css');
|
$this->addCSS(_THEME_CSS_DIR_.'product_list.css');
|
||||||
|
|
||||||
|
if (Configuration::get('PS_COMPARATOR_MAX_ITEM'))
|
||||||
|
$this->addJS(_THEME_JS_DIR_.'products-comparison.js');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
</p>
|
</p>
|
||||||
{else}
|
{else}
|
||||||
<h3 class="nbresult"><span class="big">{if $nbProducts == 1}{l s='%d result has been found.' sprintf=$nbProducts|intval}{else}{l s='%d results have been found.' sprintf=$nbProducts|intval}{/if}</span></h3>
|
<h3 class="nbresult"><span class="big">{if $nbProducts == 1}{l s='%d result has been found.' sprintf=$nbProducts|intval}{else}{l s='%d results have been found.' sprintf=$nbProducts|intval}{/if}</span></h3>
|
||||||
|
{include file="./product-compare.tpl"}
|
||||||
{if !isset($instantSearch) || (isset($instantSearch) && !$instantSearch)}
|
{if !isset($instantSearch) || (isset($instantSearch) && !$instantSearch)}
|
||||||
<div class="sortPagiBar clearfix">
|
<div class="sortPagiBar clearfix">
|
||||||
{include file="$tpl_dir./product-sort.tpl"}
|
{include file="$tpl_dir./product-sort.tpl"}
|
||||||
@@ -54,4 +54,5 @@
|
|||||||
|
|
||||||
{include file="$tpl_dir./product-list.tpl" products=$search_products}
|
{include file="$tpl_dir./product-list.tpl" products=$search_products}
|
||||||
{if !isset($instantSearch) || (isset($instantSearch) && !$instantSearch)}{include file="$tpl_dir./pagination.tpl"}{/if}
|
{if !isset($instantSearch) || (isset($instantSearch) && !$instantSearch)}{include file="$tpl_dir./pagination.tpl"}{/if}
|
||||||
|
{include file="./product-compare.tpl"}
|
||||||
{/if}
|
{/if}
|
||||||
Reference in new issue
Block a user