WooCommerce Booking – Override metabox

I am currently looking to display additional information in the booking summary (product options).

To do this I use the following hook: woocommerce_admin_booking_data_after_booking_details

If my reservation is linked to an order, I retrieve my datas using the function wc_get_order_item_meta

I would like to be able to retrieve my data when the reservation is not yet an order (simply added to the basket for example).

When browsing the database I saw that the information was stored in the table woocommerce_sessions. In the hook I use, I only have access to the ID of the reservation. Is it possible to retrieve the corresponding session from this one?

Read more here: WooCommerce Booking – Override metabox

Leave a Reply

Your email address will not be published. Required fields are marked *