From the WooCommerce order list, when you click the "eye" icon it will show a modal containing a preview of the order.

enter image description here Image Source: https://docs.woocommerce.com/document/managing-orders/order-modal/

Currently, it has Billing Details, Shipping Details, Email, Phone, Payment via, and the products.

Is there a way to add extra data to it? Maybe like first name and last name which is supplied in the checkout form?

The code for the modal is located here: https://github.com/woocommerce/woocommerce/blob/master/includes/admin/list-tables/class-wc-admin-list-table-orders.php#L356

I can edit the plugin directly but I don't want to do that as it is a bad practice and changes will be removed upon update.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.