User documentation

  1. Home
  2. User documentation
  3. Booking Activities (basics)
  4. Display customers bookings list on the frontend

Display customers bookings list on the frontend

When calendars are diplayed on your product pages or booking forms are displayed on your website, your customers are able to make bookings. Thus, they need to see their bookings list and perform some actions on them. Here is how:

  • Go to the post / page where you want to display user’s bookings list in admin panel
    • Tip: My account page of any subpage is a good choice
  • Copy and paste this simple shortcode: [bookingactivities_list] wherever you want on this page
  • You can also display a calendar containing your customer’s bookings only. You just need to create a booking form with the calendar field only and to configure it to display events booked by the current user only, and past events. Then, paste its shortcode on your page.
  • Go to this page on the frontend and the connected user’s bookings list appears
    • Note: The user must be connected and have at least one booking, else nothing would appear.

The [bookingactivities_list] shortcode has a lot of attributes allowing you to filter the displayed bookings:

Attribute Expected value
user_id The desired user ID (integer) or current.
Default: current.
You can also set an email address instead of an integer, in order to display the bookings made without account.
per_page Number of rows to display per page (integer).
Default: 10.
status Allowed booking statuses (allowed values: delivered, booked, pending, cancelled, refunded, refund_requested, booked, in_cart, expired, removed) (comma separated).
Default: delivered,booked,pending,cancelled,refunded,refund_requested.
from Starting date (YYYY-MM-DD format, or a compatible relative format such as today or next monday).
to Ending date (YYYY-MM-DD format, or a compatible relative format such as +7 day or last day of this month).
order_by Order the list by columns (allowed values: id, event_id, event_start, event_end, state, payment_status, creation_date, quantity, active, form_id, user_id) (ordered and comma separated).
Default: creation_date,id,event_start.
order Sorting order of the list (allowed values: asc or desc).
Default: desc.
form_id Form ID where the bookings must come from (integer).
templates Calendar ID(s) where the bookings must come from (integer) (comma separated).
activities Activity ID(s) where the bookings must come from (integer) (comma separated).

Some of the bookings may have available actions such as ‘Cancel’ or ‘Reschedule’. Indeed users can perform actions on their bookings depending on their state, and if you allow your customers to manage their bookings.

Was this article helpful to you? Yes No

How can we help?