Drupal Commerce Total Order Weight I am writing a custom module to add surcharge values to a commerce order at the time of UPS shipping calculations. I am trying to find a way to access the total weight of the order.

I thought I would be able to access the weight from the array returned by:

entity_metadata_wrapper('commerce_order', $order);

Unfortunately it's not present in the data that I can see.  

Does anyone know how I can access the total weight of an order or are these generated dynamically when the UPS shipping process is called?
I believe it is generated when it's needed, and not stored. But, after looking at the Commerce Order Weight Token module, you can get the weight using the following:

$weight = commerce_physical_order_weight($order);