View Single Post
  #1  
Old 01-11-2008, 06:01 AM
 
brocillator brocillator is offline
 

Newbie
  
Join Date: Sep 2007
Location: Florida, USA
Posts: 8
 

Default Putting Total Order Weight on Orders Detail Page

Hello!
How can I put total order weight on the Orders Details page? I have found this useful thread on how to add total order weight to the "View Cart" page, (the Customer side). It works great.

http://forum.x-cart.com/viewtopic.php?t=7195

However, I would like to add total order weight to the "Order Details" page of the Admin side (Orders > Orders Management > Order Details) so that the fulfilment staff knows the total order weight.

I have modified shipping.php, (per the "View Cart" mod), adding the (bolded) line:
---------------------------------------------------------------------
#
# Get the total products weight
#
$total_weight_shipping = func_weight_shipping_products($cart['products'], true);
$smarty->assign("total_weight_shipping",$total_weight_ship ping);
---------------------------------------------------------------------


Then, in skin1/main/order_info.tpl, I added the (bolded) lines:
---------------------------------------------------------------------
<tr>
<td valign="top">{$lng.lbl_shipping_cost}</td>
<td valign="top">{include file="currency.tpl" value=$order.display_shipping_cost}</td>
</tr>
<tr>
<td valign="top">{$lng.lbl_package_weight}</td>
<td valign="top">{$total_weight_shipping}</td>
</tr>

---------------------------------------------------------------------

But, it does not work ... my customer side "View Cart" does show total weight fine, but the space where it should appear on the Admin side is blank. (The {$lng.lbl_package_weight} shows up, so I'm editing the correct .tpl, right?).

Am I missing something?
__________________
X-Cart Gold 4.1.8
AOM 4.1.8
Apache 1.3.37 (Unix)
OS Linux
PHP 5.2.3
SQL 5.0.45

Last edited by brocillator : 01-11-2008 at 06:09 AM. Reason: typo - post keeps putting a space in 'shipping' for '$smarty->assign("total_weight_shipping",$total_weight_shipping);'
Reply With Quote