View Single Post
  #8  
Old 03-20-2007, 02:28 PM
  n00bert's Avatar 
n00bert n00bert is offline
 

Advanced Member
  
Join Date: Feb 2007
Posts: 46
 

Default Re: Last Item Added in mini-cart

I was checking out the smarty manual for array_reverse. I applied the sample code to the {foreach} in minicart.tpl.

I changed this line:

Code:
{foreach from=$minicart_contents item=item}

to this:

Code:
{foreach from=$minicart_contents|@array_reverse:true item=item}

Seems to be working fine.

Is there any disadvantage to using smarty rather than PHP? Is it more server-intensive?

thanks,
n00bert
__________________
Version 4.1.6 Gold

urban-kings.com
urbanwear and street fashion specialist
Reply With Quote