Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Putting Total Order Weight on Orders Detail Page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #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
  #2  
Old 01-15-2008, 10:57 AM
 
brocillator brocillator is offline
 

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

Default Re: Putting Total Order Weight on Orders Detail Page

Is there a better way to ask this question? I'm a newbie.
__________________
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
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:36 AM.

   

 
X-Cart forums © 2001-2020