Show the order's total weight on the admin edit/view order page
-
I am trying to add a new custom field on the admin edit order page after the “Payment Method” field. The custom field must be the total weight of the order.
function order_custom_field_function_name( $order ) { echo "<p><strong>Total Weight:</strong>" . . " kg</p>"; } add_action( 'woocommerce_admin_order_data_after_billing_address', 'order_custom_field_function_name', 10, 1 );
With the above code I am displaying the “Total Weight” in the desired place, but I don’t know how to get the “total weight” value of the order.
Any indication would be helpful. Thanks.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Show the order's total weight on the admin edit/view order page’ is closed to new replies.