View Single Post
  #3  
Old 04-25-2008, 10:29 PM
  yamiya's Avatar 
yamiya yamiya is offline
 

Member
  
Join Date: Aug 2007
Posts: 24
 

Thumbs up Re: Numbering in Bestseller

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.
__________________
Yamiya Yam
http://www.yamiya.com.my
---------------------------------------
X-Cart Gold v4.1.8 (UNIX)
Reply With Quote