Home  >  Q&A  >  body text

I want to display custom fields in Woocommerce Bookings Availability

I am using Woocommerce Booking and Woocommerce Bookings Availability to display my booking availability as a timetable. This is what it looks like now:

But I want to add custom field information inside each block, such as "vessel type", "destination", etc. How do I proceed?

This is what I want to achieve:

Thanks for any help. I've been stuck in this forever.

P粉130097898P粉130097898376 days ago455

reply all(1)I'll reply

  • P粉956441054

    P粉9564410542023-09-09 17:30:22

    There are some options you can try to achieve this, but this may require some development level knowledge as there are no options to configure from the admin dashboard. Hope these options will benefit you.

    WooCommerce provides detailed documentation for its main plugin, so it has developer documentation for the WooCommerce Bookings plugin, but I couldn't find the same documentation for Bookings Availability.

    <强>1. Booking Template

    You can use this to modify the display template of the booking screen. Please see more details here: https://woocommerce.com/document/bookings-templates/

    <强>2. hook up

    Introduced some filters before processing the fetched data (inserting some extra data/modifying the entered data) and sending the data to the frontend for display. You can find the right filter for your situation to accept the data (with some extra fields) and display it all on the screen.

    Hook details here: https://woocommerce.com/document/booking-actions-and-filters-reference/

    reply
    0
  • Cancelreply