Hi
I've been seeking answers and can't find any...
How can i display the total weight of customers products ordered on orders.php for the admin, the page where i edit the orders.
There are all others infos BUT the total weight....
Many thanks!
L.
![]()
Hi
I've been seeking answers and can't find any...
How can i display the total weight of customers products ordered on orders.php for the admin, the page where i edit the orders.
There are all others infos BUT the total weight....
Many thanks!
L.
![]()
The weight of the order is actually not saved once the order is complete. You could modify the checkout process to save it, but once the order has been placed and it's visible in admin, you'd have to go through all the products and their attributes to figure out the weight.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
Hi
Thanks for your answer but I don't get it...
If I select admin>configuration>shipping packaging>Display Number of Boxes and Weight Status=2
the total weight shows everywhere when the order is complete, orders.php included, it is also on the invoice.php...
what i want is to show it only on orders.php, so as it does show there must be a way to able it on orders.php only but i can't find the code used to display the total weight probably because it is something set up in the configuration...
Any idea where i can find this code?
Thanks
$shipping_weight is a catalog side variable.
This information is not available on the admin side. You will have to write code to figure it out.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
But invoice.php and orders.php ARE on the admin side, the total weight shows up on both with the configuration i described previously therefore there must be a variable available on the admin side to display this total weight....
otherwise, where does this total weight come from on those 2 files available only from the admin?
there is something used by the script to display this total weight on invoice.php and orders.php but i can't figure out what/where this is....
Looks like total weight is defined in the class order.php:
$shipping_method_query = "select title, value
from " . TABLE_ORDERS_TOTAL . "
where orders_id = '" . (int)$order_id . "'
and class = 'ot_shipping'";
$shipping_method = $db->Execute($shipping_method_query);
the variable must be $shipping_method I guess i have to stick the query somewhere on orders.php to use this variable... any idea about this?