ChristopheS Posted February 2, 2010 Share Posted February 2, 2010 Bonjour,Je souhaitais afficher le nombre de nouveaux produits comme pour les différentes catégoriesAlors j'ai fait ça dans new-products.tpl ! C'est pour ceux que ça intéresse ! {capture name=path}{l s='New products'}{/capture} {include file=$tpl_dir./breadcrumb.tpl} {l s='News products'} <!-- ajout de cette ligne -->{$nbProducts|intval} {if $nbProducts>1}{l s='products'}{else}{l s='product'}{/if} {if $products} {include file=$tpl_dir./product-sort.tpl} {include file=$tpl_dir./product-list.tpl products=$products} {include file=$tpl_dir./pagination.tpl} {else} {l s='No new products.'} {/if} Si ça peut aider ! :exclaim: Link to comment Share on other sites More sharing options...
mks Posted February 2, 2010 Share Posted February 2, 2010 Merci pour cette nouvelle contribution.Je suis sûr que cela en aidera plus d'un. Link to comment Share on other sites More sharing options...
mehdi2405 Posted January 15, 2011 Share Posted January 15, 2011 bonsoirj'aimerais afficher le nombre total de produits sur la page d'accueilavez vous svp une idée ?Thk Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now