View Single Post
  #2  
Old 04-25-2008, 03:47 PM
  kube's Avatar 
kube kube is offline
 

X-Adept
  
Join Date: Sep 2005
Location: London: a small place East of Wales
Posts: 529
 

Default Re: Numbering in Bestseller

hi yamiya,

You can either add a name to the foreach and count the iterations like so...

{foreach from=$bestsellers item=bestseller name=thisloop}
{$smarty.foreach.thisloop.iteration}.
{/foreach}

or you could use {counter}.

Hope this helps.
__________________
Doms
kube v4.1.9
Reply With Quote