Note: This tutorial and its steps are based on a Wix Editor site. You can adapt the steps for a Wix Studio site by using the equivalent Wix Studio features.
This article presents some ideas for how you can enhance your Bookings site with Velo.
Throughout this article we refer to this site to illustrate the process. It is a travel site that offers tours in different locations. It features a page that lists all the services at each location as well as a customized booking page for each service.
Specifically, we'll describe:
Most of the ideas in this article do not require any code. The page that displays the reviews and the form that lets visitors add reviews, however, do require some simple code that we include here in the article. You'll be able to copy and paste the code onto your page and make some minor adjustments to get it to work.
The first thing we did was to create new collections to store the information we wanted to showcase on our site. We used reference fields to connect our new collections to the Services collection that comes from the Wix Bookings app. Later in this article, you'll see how we filtered datasets based on these reference fields so that our pages display only relevant information each time.
This collection stores the locations where our services take place. It includes images, various descriptions, and a field for the dynamic page URL. We'll use this collection to create a dynamic item page for our locations.
This collection maps each of our services to its location using two reference fields, one pointing to the Services collection and the other to the Locations collection we just created. Later in this article, you'll see how we used this collection when we created the Locations dynamic item page to display the services available at each location.
This collection contains additional information about each of our services, including the pickup point, target audience, time of day, and additional images. Here again we used a reference field to connect this information to each service in the Services collection. Later in this article we'll use this collection when we create our customized booking page.
This collection stores the reviews left by users for each service. This collection also has a reference field pointing to the Services collection as well as fields for storing the date the review was submitted, text of the review and information about the reviewer.
We made sure to set this collection's permissions so that visitors can create content for it.
Our demo site has 2 master/detail pages, both of which are also dynamic item pages. Both pages use multiple datasets that are filtered by reference fields. See this article for more information.
To view this page, from the home page of the demo site, click the "Explore" button in the "Portland Metro Area" item. This page you are now viewing is a dynamic item page connected to the Locations collection. Note how in addition to displaying information about the Portland location, it also lists the services offered there. Let's see how we set this page up.
This is what our page looks like in the Editor. Elements connected to the "Locations" dataset are marked in red. The repeater and all its elements are connected to the filtered "Services_Locations" dataset and are marked in blue.
From the Portland Metro Area page, click the "Book It" button under "Food Cart Tastings" to go to the customized booking page for that service. This is also a master/detail dynamic item page, but with a twist: it displays 2 sets of details
The top part of the Services dynamic item page displays the information we stored in the Extra_Service_Info collection. We built it much the same way as the previous page.
Starting from the Wix App Services collection, we created and designed the dynamic item page. The "Book It" button is linked to the "Booking Flow Entry URL" field in the Services collection. This means that when our visitors click "Book It," they end up at our regular Wix Bookings App calendar page.
We added another dataset to the page and connected it to the Extra_Service_Info collection. We filtered this dataset by its "Service" reference field. Then we connected elements to this filtered dataset. The elements under "When," "For Who," and "Pickup" are connected directly to our Extra_Service_Info collection, as are the images at the bottom of the page.
The review section of the customized booking page is connected to the Service_Reviews collection. It displays the reviews received for this service and a form for getting reviews. This part of the page requires some code to make it work.
If you want to use this code on your site, you’ll need to make these substitutions:
If you want to use this code on your site, you’ll need to make these substitutions:
At the bottom of the customized booking page is a form where visitors can submit reviews for the service being displayed on the dynamic item page. This is how we created it.
If you want to use this code on your site, you’ll need to make these substitutions:
If you want to use this code on your site, you’ll need to make this substitution: