Hi @zaidbinabubakar,
Sorry for the late reply. The notification went to spam :/ really sorry about that.
If you are still interested – unfortunately, our plugin is designed to add info to cart and checkout pages on frontend, so it can display total weight only there.
However, if you are ok with adding custom PHP code, it’s quite easy to do. Add this to your (child) theme’s functions.php file, or use some plugin for adding custom PHP code, e.g. our Custom CSS, JS & PHP plugin:
if ( ! function_exists( 'my_total_order_weight_on_admin_order_edit_page' ) ) {
add_action( 'woocommerce_admin_order_data_after_billing_address', 'my_total_order_weight_on_admin_order_edit_page' );
function my_total_order_weight_on_admin_order_edit_page( $order ) {
if ( is_a( $order, 'WC_Order' ) ) {
$weight = 0;
foreach ( $order->get_items() as $item ) {
$product_id = ( ! empty( $item['variation_id'] ) ? $item['variation_id'] : $item['product_id'] );
$product = wc_get_product( $product_id );
if ( $product ) {
$weight += $product->get_weight();
}
}
echo '<p><strong>Order Weight: </strong>' . $weight . get_option( 'woocommerce_weight_unit' ) . '</p>';
}
}
}
This will display order weight right below the “Billing” section. If you want it below the “Shipping” section instead, then replace this:
add_action( 'woocommerce_admin_order_data_after_billing_address', 'my_total_order_weight_on_admin_order_edit_page' );
with this:
add_action( 'woocommerce_admin_order_data_after_shipping_address', 'my_total_order_weight_on_admin_order_edit_page' );
Hope that helps. Please let me know if you have any questions.
Again, sorry for the late reply. And if you like the plugin or support, please consider leaving me a rating.