Display the number of results (Items) on the category page or search page
This commit is contained in:
@@ -156,6 +156,10 @@ return array (
|
|||||||
'List' => 'List',
|
'List' => 'List',
|
||||||
'Next' => 'Next',
|
'Next' => 'Next',
|
||||||
'Previous' => 'Previous',
|
'Previous' => 'Previous',
|
||||||
|
'%nb Items' => '%nb Items',
|
||||||
|
'%nb Item' => '%nb Item',
|
||||||
|
'Latest products' => 'Latest products',
|
||||||
|
'Product Offers' => 'Product Offers',
|
||||||
/*
|
/*
|
||||||
'The page cannot be found' => 'The page cannot be found',
|
'The page cannot be found' => 'The page cannot be found',
|
||||||
'What\'s your name?' => 'What\'s your name?',
|
'What\'s your name?' => 'What\'s your name?',
|
||||||
|
|||||||
@@ -156,6 +156,10 @@ return array (
|
|||||||
'List' => '',
|
'List' => '',
|
||||||
'Next' => '',
|
'Next' => '',
|
||||||
'Previous' => '',
|
'Previous' => '',
|
||||||
|
'%nb Items' => '',
|
||||||
|
'%nb Item' => '',
|
||||||
|
'Latest products' => '',
|
||||||
|
'Product Offers' => '',
|
||||||
/*
|
/*
|
||||||
'The page cannot be found' => '',
|
'The page cannot be found' => '',
|
||||||
'What\'s your name?' => '',
|
'What\'s your name?' => '',
|
||||||
|
|||||||
@@ -156,6 +156,10 @@ return array (
|
|||||||
'List' => 'Liste',
|
'List' => 'Liste',
|
||||||
'Next' => 'Suivant',
|
'Next' => 'Suivant',
|
||||||
'Previous' => 'Précédent',
|
'Previous' => 'Précédent',
|
||||||
|
'%nb Items' => '%nb produits',
|
||||||
|
'%nb Item' => '%nb produit',
|
||||||
|
'Latest products' => 'Derniers produits',
|
||||||
|
'Product Offers' => 'Produits en promotion',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
'The page cannot be found' => '',
|
'The page cannot be found' => '',
|
||||||
|
|||||||
@@ -156,6 +156,10 @@ return array (
|
|||||||
'List' => '',
|
'List' => '',
|
||||||
'Next' => '',
|
'Next' => '',
|
||||||
'Previous' => '',
|
'Previous' => '',
|
||||||
|
'%nb Items' => '',
|
||||||
|
'%nb Item' => '',
|
||||||
|
'Latest products' => '',
|
||||||
|
'Product Offers' => '',
|
||||||
/*
|
/*
|
||||||
'The page cannot be found' => '',
|
'The page cannot be found' => '',
|
||||||
'What\'s your name?' => '',
|
'What\'s your name?' => '',
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
{$product_order={$smarty.get.order|default:'alpha'}}
|
{$product_order={$smarty.get.order|default:'alpha'}}
|
||||||
<article class="col-main {$smarty.get.mode|default:"grid"}" role="main">
|
<article class="col-main {$smarty.get.mode|default:"grid"}" role="main">
|
||||||
{ifloop rel="product_list"}
|
{ifloop rel="product_list"}
|
||||||
{include file="includes/toolbar.html" toolbar="top" limit=$limit order=$product_order}
|
{include file="includes/toolbar.html" toolbar="top" limit=$limit order=$product_order amount={count type="product" category={category attr="id"}}}
|
||||||
<div id="category-products">
|
<div id="category-products">
|
||||||
<div class="products-content">
|
<div class="products-content">
|
||||||
<ul class="product-col-4">
|
<ul class="product-col-4">
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div class="toolbar toolbar-{$toolbar}" role="toolbar">
|
<div class="toolbar toolbar-{$toolbar}" role="toolbar">
|
||||||
{if $toolbar == "top" }
|
{if $toolbar == "top" }
|
||||||
<div class="sorter-container">
|
<div class="sorter-container">
|
||||||
{*<span class="amount">9 {intl l="Item(s)"}</span>*}
|
<span class="amount">{if ($amount > 1)}{intl l="%nb Items" nb="{$amount}"}{else}{intl l="%nb Item" nb="{$amount}"}{/if}</span>
|
||||||
|
|
||||||
<span class="limiter">
|
<span class="limiter">
|
||||||
<label for="limit-top">{intl l="Show"}</label>
|
<label for="limit-top">{intl l="Show"}</label>
|
||||||
|
|||||||
@@ -20,14 +20,13 @@
|
|||||||
<article class="col-main {$smarty.get.mode|default:"grid"}" role="main" aria-labelledby="main-label">
|
<article class="col-main {$smarty.get.mode|default:"grid"}" role="main" aria-labelledby="main-label">
|
||||||
|
|
||||||
<h1 id="main-label" class="page-header">{intl l="Search Result for"} <small>{$smarty.get.q}</small></h1>
|
<h1 id="main-label" class="page-header">{intl l="Search Result for"} <small>{$smarty.get.q}</small></h1>
|
||||||
{include file="includes/toolbar.html" toolbar="top" limit=$limit order=$product_order}
|
{include file="includes/toolbar.html" toolbar="top" limit=$limit order=$product_order amount={count type="product" title="{$smarty.get.q}"}}
|
||||||
<div id="category-products">
|
<div id="category-products">
|
||||||
<div class="products-content">
|
<div class="products-content">
|
||||||
{ifloop rel="product_list"}
|
{ifloop rel="product_list"}
|
||||||
<ul class="product-col-3">
|
<ul class="product-col-3">
|
||||||
{loop type="product" name="product_list" title="{$smarty.get.q}" limit=$limit page=$product_page order=$product_order}
|
{loop type="product" name="product_list" title="{$smarty.get.q}" limit=$limit page=$product_page order=$product_order}
|
||||||
{include file="includes/single-product.html" product_id=$ID hasBtn=true hasDescription=true width="369" height="247"}
|
{include file="includes/single-product.html" product_id=$ID hasBtn=true hasDescription=true width="369" height="247"}
|
||||||
{assign "products_count" $LOOP_TOTAL}
|
|
||||||
{/loop}
|
{/loop}
|
||||||
</ul>
|
</ul>
|
||||||
{/ifloop}
|
{/ifloop}
|
||||||
|
|||||||
@@ -13,43 +13,34 @@
|
|||||||
{block name="main-content"}
|
{block name="main-content"}
|
||||||
<div class="main">
|
<div class="main">
|
||||||
|
|
||||||
|
{* Parameters *}
|
||||||
{$limit={$smarty.get.limit|default:8}}
|
{$limit={$smarty.get.limit|default:8}}
|
||||||
{$product_page={$smarty.get.page|default:1}}
|
{$product_page={$smarty.get.page|default:1}}
|
||||||
{$product_order={$smarty.get.order|default:'alpha'}}
|
{$product_order={$smarty.get.order|default:'new'}}
|
||||||
|
{$product_type={$smarty.get.type|default:'new'}}
|
||||||
|
|
||||||
<article class="col-main {$smarty.get.mode|default:"grid"}" role="main" aria-labelledby="main-label">
|
<article class="col-main {$smarty.get.mode|default:"grid"}" role="main" aria-labelledby="main-label">
|
||||||
|
|
||||||
{if $smarty.get.type == "new"}
|
<h1 id="main-label" class="page-header">{if $product_type == "new"}{intl l="Latest products"}{elseif $product_type == "offers"}{intl l="Product Offers"}{/if}</h1>
|
||||||
<h1 id="main-label" class="page-header">{intl l="View all"} {$smarty.get.type} {intl l="products"}</h1>
|
|
||||||
{else}
|
{include file="includes/toolbar.html" toolbar="top" limit=$limit order=$product_order amount={count type="product" promo="{$product_type == "offers"}" new="{$product_type == "new"}"}}
|
||||||
<h1 id="main-label" class="page-header">{intl l="View all"} {intl l="offers"}</h1>
|
<div id="category-products">
|
||||||
{/if}
|
<div class="products-content">
|
||||||
{include file="includes/toolbar.html" toolbar="top" limit=$limit order=$product_order}
|
{ifloop rel="product_list"}
|
||||||
<div id="category-products">
|
<ul class="product-col-3">
|
||||||
<div class="products-content">
|
{loop type="product" promo="{$product_type == "offers"}" new="{$product_type == "new"}" name="product_list" limit=$limit page=$product_page order=$product_order}
|
||||||
{ifloop rel="product_list"}
|
|
||||||
<ul class="product-col-3">
|
|
||||||
{if $smarty.get.type == "new"}
|
|
||||||
{loop type="product" name="product_list" limit=$limit page=$product_page order=$product_order}
|
|
||||||
{include file="includes/single-product.html" product_id=$ID hasBtn=true hasDescription=true width="700" height="320"}
|
{include file="includes/single-product.html" product_id=$ID hasBtn=true hasDescription=true width="700" height="320"}
|
||||||
{/loop}
|
{/loop}
|
||||||
{else}
|
</ul>
|
||||||
{loop type="product" name="product_list" promo="yes" limit=$limit page=$product_page order=$product_order}
|
{/ifloop}
|
||||||
{include file="includes/single-product.html" product_id=$ID hasBtn=true hasDescription=true width="700" height="320"}
|
{elseloop rel="product_list"}
|
||||||
{/loop}
|
<h2 class="text-center">{intl l="No results found"} </h2>
|
||||||
{/if}
|
{/elseloop}
|
||||||
|
</div>
|
||||||
|
</div><!-- /#category-products -->
|
||||||
</ul>
|
{ifloop rel="product_list"}
|
||||||
{/ifloop}
|
{include file="includes/toolbar.html" toolbar="bottom"}
|
||||||
{elseloop rel="product_list"}
|
{/ifloop}
|
||||||
<h2 class="text-center">{intl l="No results found"} </h2>
|
|
||||||
{/elseloop}
|
|
||||||
</div>
|
|
||||||
</div><!-- /#category-products -->
|
|
||||||
{ifloop rel="product_list"}
|
|
||||||
{include file="includes/toolbar.html" toolbar="bottom"}
|
|
||||||
{/ifloop}
|
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
</div><!-- /.layout -->
|
</div><!-- /.layout -->
|
||||||
|
|||||||
Reference in New Issue
Block a user