• Resolved angyboss20

    (@angyboss20)


    i have all bookable product.

    How can I add the date of the product booking in the pdf and the number of person?

    I use woocommerce booking.

    Thank you very much!

Viewing 1 replies (of 1 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi! To display the WooCommerce Bookings data, you have two options:

    1) With the Premium Templates extension you can check the “Show external plugin data” option in the Product block.
    2) With a custom code snippet (works with the free version too):

    
    add_action( 'wpo_wcpdf_after_item_meta', 'wpo_wcpdf_show_product_booking_data', 10, 3 );
    function wpo_wcpdf_show_product_booking_data ( $template_type, $item, $order ) {
        do_action( 'woocommerce_order_item_meta_end', $item['item_id'], $item['item'], $order );
    }
    

    If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use filters

    Hope that helps!
    Ewout

Viewing 1 replies (of 1 total)
  • The topic ‘add date of booking’ is closed to new replies.