View Single Post
  #11  
Old 02-07-2006, 06:24 PM
  2coolbaby's Avatar 
2coolbaby 2coolbaby is offline
 

eXpert
  
Join Date: Sep 2004
Location: TN moving to FL
Posts: 265
 

Default

Actually that wasn't right. What we are trying to do is add actual cart product details into the minicart. Your code took that out. I figured out what to do. Here is how I coded minicart.tpl:

After the first line replace the rest of the code with this:

Quote:
<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}
</TD>
<TD class="VertMenuItems">{if $minicart_total_items > 0}{$lng.lbl_items}: </TD>
<TD class="VertMenuItems" color="#0000ff">{$minicart_total_items}{else}<CENT ER>{$lng.lbl_cart_is_empty}</CENTER>{/if}</TD>
</TR>
<TR>
<TD class="VertMenuItems">{if $minicart_total_items > 0}{$lng.lbl_total}: </TD>
<TD class="VertMenuItems">{include file="currency.tpl" value=$minicart_total_cost}{/if}</TD>
</TR>
</TABLE>
{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}
</table>
{/if}
<HR size="1" NOSHADE class="VertMenuHr">

Be sire to add the the line to the minicart.php as stated in the original post.
__________________
Mary Lee
-------------------
Dinner and a Murder Mystery Games
http://www.dinnerandamurder.com

x-cart version 4.7.5 / Mac OS 10.10.5 and Windows 8/10 sometimes - Ideal Responsive Template
Reply With Quote