From 453a818c5562758d17451d4fb5b374e6a63cbea5 Mon Sep 17 00:00:00 2001 From: touffies Date: Wed, 6 Nov 2013 15:17:52 +0100 Subject: [PATCH] Display the number of results (Items) on the category page or search page --- templates/default/I18n/en_US.php | 4 ++ templates/default/I18n/es_ES.php | 4 ++ templates/default/I18n/fr_FR.php | 4 ++ templates/default/I18n/it_IT.php | 4 ++ templates/default/category.html | 2 +- templates/default/includes/toolbar.html | 2 +- templates/default/search.html | 3 +- templates/default/view_all.html | 53 ++++++++++--------------- 8 files changed, 41 insertions(+), 35 deletions(-) diff --git a/templates/default/I18n/en_US.php b/templates/default/I18n/en_US.php index 24bf81612..07b7e6411 100755 --- a/templates/default/I18n/en_US.php +++ b/templates/default/I18n/en_US.php @@ -156,6 +156,10 @@ return array ( 'List' => 'List', 'Next' => 'Next', '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', 'What\'s your name?' => 'What\'s your name?', diff --git a/templates/default/I18n/es_ES.php b/templates/default/I18n/es_ES.php index 427227f1c..a5c5950ee 100755 --- a/templates/default/I18n/es_ES.php +++ b/templates/default/I18n/es_ES.php @@ -156,6 +156,10 @@ return array ( 'List' => '', 'Next' => '', 'Previous' => '', + '%nb Items' => '', + '%nb Item' => '', + 'Latest products' => '', + 'Product Offers' => '', /* 'The page cannot be found' => '', 'What\'s your name?' => '', diff --git a/templates/default/I18n/fr_FR.php b/templates/default/I18n/fr_FR.php index b5f6a6290..3ed34e1f7 100755 --- a/templates/default/I18n/fr_FR.php +++ b/templates/default/I18n/fr_FR.php @@ -156,6 +156,10 @@ return array ( 'List' => 'Liste', 'Next' => 'Suivant', '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' => '', diff --git a/templates/default/I18n/it_IT.php b/templates/default/I18n/it_IT.php index 427227f1c..a5c5950ee 100755 --- a/templates/default/I18n/it_IT.php +++ b/templates/default/I18n/it_IT.php @@ -156,6 +156,10 @@ return array ( 'List' => '', 'Next' => '', 'Previous' => '', + '%nb Items' => '', + '%nb Item' => '', + 'Latest products' => '', + 'Product Offers' => '', /* 'The page cannot be found' => '', 'What\'s your name?' => '', diff --git a/templates/default/category.html b/templates/default/category.html index b47abd222..f89deef2c 100644 --- a/templates/default/category.html +++ b/templates/default/category.html @@ -19,7 +19,7 @@ {$product_order={$smarty.get.order|default:'alpha'}}
{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"}}}
    diff --git a/templates/default/includes/toolbar.html b/templates/default/includes/toolbar.html index c512ba90a..07733634b 100644 --- a/templates/default/includes/toolbar.html +++ b/templates/default/includes/toolbar.html @@ -1,7 +1,7 @@