descriptive minicart
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:
... Added a section to minicart.tpl: Code:
... 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 |
Great Mod...thanks.
- Shannon |
thanks ..
|
thnx 8)
|
Brilliantly Simple mod.
Thanks very much! |
nice work - this works great in 4.0.17 with some very minor formatting -
but, is there any way to a) get the shipping cost to show up (like a product) to make the total make sense or b) have the subtotal show up in the minicart that does not include the shipping costs? we use flat rate shipping so the cost is already known when items are added to the cart. thanks! |
Can anyone give me the location of the minicart.tpl? I just can't find it.
|
skin1/customer/main
|
For some reason I have Total (with amount) showing up on the right side and the bottom and it is cramping the cart contents. I have looked at the code it doesn't look like that should be there so obviously I am missing something. Here is the code I have for in minicart.tpl:
<TABLE border="0" cellpadding="1" cellspacing="0"> <TR> <TD rowspan="2" width="23"> {if $minicart_total_items > 0}[img]{$ImagesDir}/cart_full.gif[/img]{else}[img]{$ImagesDir}/cart_empty.gif[/img]{/if} {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} </TD> 4.0.17 |
looks like your table/cell tags may be a bit off, try this
Code:
<TABLE border="0" cellpadding="1" cellspacing="0"> this works for me in 4.0.17 mike |
All times are GMT -8. The time now is 11:35 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.