Bookings

The Booking HAPI component will pull data related to a member's "booked" events and schedulers from the Control Panel

Schedulers are a one-to-one relationship or a one-to-many depending on if it's an Appointment or Reservation.

Appointments examples: 1-on-1 Appointment, Spa Appointment, etc.

Reservation examples: Workspace, Hotel Rooms, Dining Reservations, etc.

There is no data-pv-type needed for this component.

<div data-pv-component="bookings" data-pv-type="" data-pv-object="abc">
    // Some code
</div>

Common HAPI elements used within the <div>:

  • {@booking_image@} - this will return the graphic if set

  • {@booking_title@} - this will return the booking's title

  • {@booking_type@} - this will return the type of booking i.e. event

  • {@start_date@} - this will return the start date/time of the booking

  • {@end_date@} - this will return the end date/time of the booking

Common data-pv-parameters used within the <div>:

  • customer_no: '{@customer_no@}'

  • returntotal: '999'

The code above has data-pv-object so you will be able to see all data pulled by typing "abc" into the developer console.

Last updated