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