Pro add-ons · 5 min read

Set up the Customer Portal

The Customer Portal is a page on your site where logged-in guests see their bookings, add them to a calendar and cancel them.

In short

Switch on Customer Portal under HarborBook, Pro. Create a page with the portal shortcode, then select it as Portal Page under HarborBook, Settings, Customer Portal. Guests sign in with a WordPress account and see the bookings they made while logged in.

What the add-on does

The Customer Portal adds a page where a guest who is logged in to your site can:

  • See a list of their bookings with date, time, guests, reference, status and total.
  • Open a booking to see its details, including pickup, extras, the amount paid and any balance due.
  • Download a calendar file for a booking with Add to calendar.
  • Cancel a booking. Your cancellation policy decides whether a refund is requested. See Cancellation policy, refund requests and portal emails.

It also fills the manage-booking link in your booking emails, so guests can open their booking from an email.

What it does not do

Read this before you plan your setup:

  • Guests sign in with a WordPress account on your site. There is no sign-in by emailed link and no lookup by booking reference and email.
  • The add-on does not create accounts and has no registration form. Guests need an account from another source, for example WordPress registration or a membership plugin.
  • The portal shows only bookings that are linked to the account: bookings the guest made while logged in, and bookings you created in WordPress for that customer. A booking made while logged out does not appear, even if the guest later registers with the same email address.
  • Guests cannot move a booking to another date, change contact or passenger details, pay a balance, or download a ticket or invoice in the portal.

Before you start

  • HarborBook Pro with an active licence, and the Customer Portal add-on switched on under HarborBook → Pro. See Install and switch add-ons on or off.
  • A way for guests to get a WordPress account and log in on your site.

Set up the portal page

No page is created for you. Make one and tell HarborBook where it is.

  1. Create a new page in WordPress and give it a title, for example My bookings.
  2. Add the shortcode below to the page content and publish the page.
  3. Go to HarborBook → Settings → Customer Portal. The General sub-tab opens.
  4. Under Portal Page, select the page you created.
  5. Click Save Portal Settings.
  6. Open the page while logged in to check that it shows the heading My Bookings.
[harborbook_portal]

The shortcode has no attributes. Use it once per page.

Settings on the General sub-tab

  • Portal Page: the page that holds the portal shortcode. It is used for the manage-booking link in emails. Default: no page selected.
  • Portal Shortcode: shows the shortcode with a Copy button. It is not a setting.
  • Save Portal Settings: saves the Customer Portal settings.

The Cancellation Policy sub-tab is described in Cancellation policy, refund requests and portal emails.

The placeholder {manage_booking_url} in your email templates becomes the address of the portal page with the booking reference added, so the link opens that booking directly. If no Portal Page is selected, the placeholder is empty and the link paragraph is left out of the email. See Placeholders you can use in emails.

A guest who follows the link must still log in, and the booking must belong to their account.

What guests see

  • Logged out: the text “Please log in to manage your bookings.” and a Log in button that goes to the WordPress login page and returns to the portal afterwards.
  • No bookings: “You have no bookings yet.” and a Book an activity button that links to your home page.
  • List: the heading My Bookings and one card per booking, newest date first, in every status. Each card shows the activity, date, time, guests, reference, status and total, with View details.
  • Details: Reference, Date, Time, Guests, and Pickup and Extras when the booking has them. Below are Total, Paid and, when money is still owed, Balance due.
  • Add to calendar: shown for pending and confirmed bookings. It downloads a calendar file.
  • Cancel Booking: shown for pending and confirmed bookings whose departure has not started.

Dates, times and prices follow your HarborBook format settings.

Change the portal colours

The portal has its own colours and does not take the brand colour of the booking form. To change them, add CSS to your theme, for example under Appearance → Customize → Additional CSS. These are the available variables with their defaults:

body #hb-customer-portal,
body .hbcp-portal {
	--hbcp-primary: #00695c;
	--hbcp-border: #e2e8f0;
	--hbcp-muted: #5b6b80;
	--hbcp-bg: #f8fafc;
	--hbcp-text: #0f172a;
	--hbcp-danger: #b42318;
}

Troubleshooting

The portal shows “You have no bookings yet.” but the guest has a booking. The booking was made while the guest was logged out, so it is not linked to their account. Bookings are not matched by email address.

“Booking not found.” The reference in the link is wrong, or the booking is not linked to the account that is logged in.

“Please log in to manage your bookings.” The visitor is not logged in.

“Authentication required.” The guest’s login session ended while the page was open. They log in again and reload the page.

“Invalid or missing security token.” The page was served from a cache. Exclude the portal page from page caching. See Caching, CDNs and security plugins.

“The customer portal is not available.” The add-on is switched off or the licence is not active. Check HarborBook → Pro.

The page shows the text [harborbook_portal]. The add-on is switched off. Switch it on under HarborBook → Pro.

The page is empty where the portal should be. HarborBook Pro has no active licence. See Fix licence and add-on problems.

Emails have no manage-booking link. No Portal Page is selected, or the page was deleted.

“Invalid download request.” The Add to calendar link has expired. The guest reloads the portal and clicks it again.

Switching the add-on off

The portal page stops working, the Customer Portal settings tab is hidden and the portal emails are no longer sent. The policy text in emails becomes “Contact us for cancellation terms.” Your settings, the bookings, existing refund requests and the page itself are kept.