booking-form
Books the slot picked in its booking-calendar without a cart (an appointment): the booking, with the form's name, email, phone and note fields and the logged-in customer, is saved in the store's Bookings (Shopify admin → Content → Metaobjects) and shown in the Booking block of the product page in the Shopify admin. `[form-done]` and `[form-fail]` show the answer; a slot that filled up meanwhile is the form error and the calendar shows its places again.
Where it can go
- Anywhere on the page.
- Must contain
booking-calendar,form. - Out of place, Smootify removes it from the page: also on a site whose licence has no “Booking”; logs an error without a form.
What it requires
- The server plan: on other plans Smootify removes the element from the page.
- The Booking extension (server plan, the extension activated in the Smootify dashboard, the licensed domain). Without it, its markup is removed from the page.
Fields in the form
Each field’s name attribute tells Smootify what the field holds.
| Name | Field | What it does |
|---|---|---|
name, email, phone, note (any case) | input type="text", input type="email", input type="tel", textarea | Written on the Booking entry the submit creates in the store, trimmed; an empty value is not sent. |
| any other name | — | Not sent: only these four reach the store. |
Attributes inside it
| Group | Attribute name | Values |
|---|---|---|
| Booking form fields | name | 4 |