Skip to content
Advertisement

Add WooCommerce booking date and time to admin orders preview

Hey I am using Woocommerce with an additional extension (Woocommerce Bookings and I wondered if there is custom code that would display the booking date and time (not the order date and time) in the woocommerce order preview

I found several codes mostly by LoicTheAztec that let you insert product and customer information in certain columns.

If you click on the customer the actual booking information is loaded and the code that generates the information might be the one inserted below. Is there anybody that can create a code for the function.php so the information will be displayed in the Woocommerce order preview tables?

As for now my preview looks like that:

enter image description here

But I want the booking information (product information – bookable product) to be shown that is also loaded when clicking on the order number and the full client information (appointment date and time) loads:

enter image description here

JavaScript

Advertisement

Answer

Use the following to add the booking details below each order item in WooCommerce order preview:

JavaScript

Code goes in functions.php file of the active child theme (or active theme). Tested and works.

enter image description here

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement