Jump to content

Afficher le nombre de nouveaux produits


Recommended Posts

Bonjour,

Je souhaitais afficher le nombre de nouveaux produits comme pour les différentes catégories

Alors 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:

18124_pb99s5zyEP8u54qce0cB_t

Link to comment
Share on other sites

  • 11 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...