You can preselect a location for site visitors on your Bookings service page by creating shareable Bookings service page links. Customers can still change the selected location.
To send a shareable Bookings service page link:
<SITE_URL>
and <SERVICE_SLUG>
from the URL. The URL will look something
like this:
https://<SITE_URL>/service-page/<SERVICE_SLUG>?referral=service_list_widget
listLocations()
or
queryLocations()
.<SITE_URL>
, <SERVICE_SLUG>
, and <LOCATION_ID>
to create the
shareable link using the following format. If you want to preselect multiple
locations, make sure to separate the IDs with commas.
https://<SITE_URL>/service-page/<SERVICE_SLUG>?location=<LOCATION_ID>
https://www.my-example-site.com/service-page/initial-consultation?location=70a4f77e-cd37-455f-bb1d-ce1f0a55ddb,17d4f88w-yt12-126e-bb1d-po1f9a12cfe
If you prefer to retrieve the Bookings service page URL directly from
your dashboard, follow these steps to obtain the correct <SITE_URL>
and
<SERVICE_SLUG>
.
<SITE_URL>
.
<SITE_URL>
is displayed in the Site address (URL) section.<SERVICE_SLUG>
.
<SERVICE_SLUG>
from the Page URL column. Avoid duplicating /service-page
when building your final link.