![]() |
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? |
Re: Putting Total Order Weight on Orders Detail Page
Is there a better way to ask this question? I'm a newbie.
|
All times are GMT -8. The time now is 11:27 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.