View Single Post
  #2  
Old 03-19-2007, 11:58 PM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default Re: Last Item Added in mini-cart

in minicart.php add the code below before "?>"
Code:
if (!empty($cart["products"]) and is_array($cart["products"])) { $smarty->assign("last_item_added", end($cart["products"])); }
and in minicart.tpl use $last_item_added and its associated values, ie: $last_item_added.productid


...however when you add a similar product it will not get updated, it requires a bit more code
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote