View Single Post
  #12  
Old 03-05-2010, 06:00 PM
 
vixnfox vixnfox is offline
 

Advanced Member
  
Join Date: Feb 2006
Location: Adelaide, South Australia
Posts: 82
 

Default Re: display the total weight on the view cart page

Nice one. For anyone intrested in layout I added this to skin1/main.css

Code:
.totals .total-wt { white-space: nowrap; color: #cccccc; font-weight: bold; text-align: left; }

and used it this way in cart_totals.tpl (around line 191)

Code:
<div class="right-box"> <table cellspacing="0" class="totals" summary="{$lng.lbl_total|escape}"> <tr> <td class="total-wt">{$lng.lbl_totalwt}</td> <td class="total-name">{$total_weight_shipping_valid}g</td> </tr> <tr> <td class="total-name">{$lng.lbl_subtotal}:</td> <td class="total-value">{include file="currency.tpl" value=$cart.display_subtotal}</td> <td class="total-alt-value">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$cart.display_subtotal}</td> </tr>

the"g" is for grams BTW since I was too lazy to edit languages and put in a nice label, although I did for lbl_totalwt which you can do or just type in the text you want.


Vixnfox
__________________
V 4.3.1 Live:

Developing on
PHP 5.3.0
MySQL server 5.0.75-community-log
MySQL client 5.1.36
Web server Apache/2.2.11 (Unix) mod_ssl/2.2.11
Windows 7 64bit on a Toshiba Satellite P500

ADELAIDE, SOUTH AUSTRALIA
Reply With Quote