We needed our minicart to display more information than it currently does. I couldn't find a mod to do it, so here is what I did.
Added a line to minicart.php:
Code:
...
$smarty->assign("minicart_total_cost", $MINICART["total_cost"]);
$smarty->assign("minicart_total_items", $MINICART["total_items"]);
$smarty->assign("minicart_contents", $cart["products"]); //added this line
?>
Added a section to minicart.tpl:
Code:
...
{if $minicart_total_items > 0}
<table width="100%">
{foreach from=$minicart_contents item=item}
<tr><td>{$item.product|truncate:18:"...":true}</td><td>X {$item.amount}</td><td align="right">{$item.display_subtotal}</td></tr>
{/foreach}
<tr><td>Total</td><td></td><td align="right">{include file="currency.tpl" value=$minicart_total_cost}</td></tr>
</table>
{/if}
...
I didn't format the table much, so season to taste. The minicart now displays:
cartitem1___X2___5.00
cartitem2___X1___6.00
Total__________$11.00