many thanks. it's working seamlessly now
http://www.yamiya.com.my
Quote:
Originally Posted by kube
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.
|