| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Putting Total Order Weight on Orders Detail Page | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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);' |
|||||||
#2
|
|||||||
|
|||||||
![]() 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 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|