Quote:
Originally Posted by WhiteDoveGifts
Thanks for this nice mod, just what I was looking for! One thing I do not seem to accomplish is how to change the "Items in Cart" and "Subtotal" language variables. I added both variables minicart_total_items and minicart_total_cost as both text and lbl but they still show up in English. Anyone can help out here?
|
In my example "Items in Cart" and "Subtotal" are hard-coded into minicart-box.tpl. You could make them language variables but I chose not to.
As for the other problem of having the cart say "1" is in the cart when the customer ordered 3 of the same item, I actually changed "Items in Cart" to "Unique Items" (again hard-coded). That way if the customer orders 3 of 1 item, 2 of another item, and 1 of a third item, it will say "Unique Items: 3". Not a perfect solution but without getting too complex it works. One thing I have found is that by high-lighting the "minicart box" in a contrasting color (in my case yellow) to the rest of your site, it draws attention to it, so the customer can see a visual difference and "knows" something is in the cart. You would be surprised how many times a customer will click "Add to Cart" if they are not directed to the cart (an option in x-cart to go or not).
You could actually change the minicart-box.tpl to
Code:
{* $Id: minicart-box.tpl,v 1.17 2006/03/28 08:21:07 max Exp $ *}
{* Mods - BG yellow if cart full - added text *}
{if $short_mode eq "short"}
{if $minicart_total_items > 0}
<a href="cart.php">
<TABLE width="155" border="0" cellpadding="1" cellspacing="0" bgcolor="yellow">
<tr>
<td align="center" nowrap="nowrap"><a href="cart.php"><img src="{$ImagesDir}/custom/top-cart-full.gif" alt="Your Shopping Cart" /><br />
<b>Items in Cart:<IMG src="{$ImagesDir}/spacer.gif" width="1" height="6" border="0"> {$minicart_total_items}<br />
<b>SubTotal:<IMG src="{$ImagesDir}/spacer.gif" width="2" height="6" border="0">{include file="currency.tpl" value=$minicart_total_cost}</b></TD>
</tr>
</table>
</a>
{/if}
{/if}
and clicking any part of the "box" should redirect to the cart. I haven't done this but I think it should work.
Also, my "top-cart-full.gif" is not the standard one in x-cart. It has text that says "Your Shopping Cart" to the right of the standard top-cart-full.gif.