Note: This feature is not yet available to all users.
You can replace your site’s default Wix Bookings Service page with your own customized version. This enables you to modify or extend the page’s functionality to suit your precise business needs.
Note: Custom app pages are available only on Wix Editor.
To integrate the page into your site’s booking flow and implement its functionality, you need to add code to the page and use Velo APIs.
Your code has to do several things:
- Get data about the selected service.
- Handle UI initialization and interactions.
- Implement any customized business logic.
- Direct users to the next page in the flow.
To create a custom service page, do the following:
- Turn on Dev Mode.
- Click Pages & Menu
on the left side of the Editor.
- Click Bookings Pages, and then on the Service Page page, click
and select Replace with custom page.
- In the confirmation panel, click Replace.
Add elements to the page to create your business’s customized design and functionality.
At a minimum, these elements must:
- Display information about the selected service.
- Provide an action button that navigates to the next page in the flow (usually the Booking Calendar).
- Use the
getAppPageData()
function to get the service object associated with the page.
For example:
Copy Code
import wixWindow from 'wix-window';import wixLocation from 'wix-location';$w.onReady(async function () {const pageData = await wixWindow.getAppPageData();const serviceName = pageData.service.name;});
-
Depending on the functionality you’re developing, implement any business logic that your customized page requires.
-
Add an event handler to the page’s action button so that it navigates to the next page in the flow, which is typically your site’s Booking Calendar. You can create a link to a Booking Calendar with preset values.
Note: Courses do not need a Booking Calendar. Their service page should navigate directly to the Booking Form.
For example:
Copy Code
$w('#nextButton').onClick(() => {const serviceSlug = pageData.service.supportedSlugs[0].name;const nextUrl = `/booking-calendar/${serviceSlug}`;wixLocation.to(nextUrl);})
Your custom page can now display the service’s data and direct site visitors to the next page in the booking flow.