In this tutorial, we will take you through how to add BookThatApp Booking Forms to the Venture theme. Before you start we recommend you take a backup of your current theme.
Note: Widgets are our newest type of booking form. We highly recommend using a widget over a classic booking form. Our booking forms are available in the app for the Business or higher app subscriptions. Besides requiring no coding changes and having a more modern look that flows better with the theme, the widgets have more settings and greater app performance in comparison to the classic forms. Since the widgets require no coding changes you can easily have many different types of widgets in your store to handle all types of booking scenarios.
If you have not tried out a widget yet please see the following:
https://support.zetya.com/hc/en-us/articles/360000984495-Widgets
Step 1 - Choose Your Booking Form
- Login to BookThatApp
- In BTA Admin, select the Install link from the left hand navigation menu
- Click on the Install button next to the form that you want installed. Clicking the Install button creates a booking-form snippet in your current theme. Please refer to our article how to choose the booking form if you need help with this step.
Step 2 - Add the booking form to the Shopify product page
- In Shopify Admin, open your current theme.
- Open the product-template.liquid file under the Sections area of your Theme Editor.
- Paste
{% include 'booking-form' %}
below the</select>
element on line 149 as shown below.
- Click Save
Step 3 - Updating the Cart Page
- Continue with the instructions in the BTA Admin Install page. There is no need to add line item properties for this theme, however we recommend disabling the quantity in the cart page. The quantity code is at line 51 of the cart-template.liquid file in the Sections area of the Theme Editor.
Step 4 - Updating the Email Templates
- Continue with the instructions in the BTA Admin Install page.
Step 5 - Additional Code Changes
1. CSS Changes
We recommend adding the below CSS to the theme.scss.liquid file found in the Assets section:
.booking-form {
display: flex;
flex: 1 0 100%;
input.datepicker {
background: {
image: url('{{ "calendar.png" | asset_url }}');
repeat: no-repeat;
position: right 10px center;
color: #f4f4f4;
}
}
}
- Next make the variant selector the same length as the booking form fields. Find 'product-form__input' on line 3619. Change the width value from 100% to 240px as shown below:
3617. .product-form__input {
3618. display: block;
3619. width: 240px;
3620. }
2. Booking Form
To further style the date and time pickers we need to put them inside a <div class="selector-wrapper product-form__item">
element.
- Access the booking-form.liquid file located in the Snippets area of the Theme Editor. Change the
<div>
elements as shown below:
...
<div class="booking-form">
<div class="selector-wrapper product-form__item">
{% capture attribute %}booking-start{% endcapture %}
<label for="{{ attribute }}-{{ product.handle }}">Start date</label>
<input id="{{ attribute }}-{{ product.handle }}" type="text" name="properties[Date]" size="12"
...
<div class="selector-wrapper product-form__item">
{% capture attribute %}booking-time{% endcapture %}
<label for="{{ attribute }}">Time:</label>
<select id="{{ attribute }}" name="properties[{{ attribute }}]" class="bta-load-enable" data-datepicker="booking-start">
...
The app should now be successfully installed in the Venture theme. If you have any questions or the booking form is not appearing, please create a ticket and we'll be happy to help.
Comments
0 comments
Please sign in to leave a comment.