Skip to content

TMI Book Program

File: sections/tmi-book-program.liquid

Templates: page.book-program.json, page.tmi-book-program.json

TMI Book Program

Description

TMI Book Program

Multi-step program booking form that collects attendee registration information and handles payment options (full payment vs. deposit). Data is passed from the program detail page via sessionStorage and submitted as line item properties to the Shopify cart.

Features:

  • Pre-fills logged-in customer data (name, email, address)
  • Gift purchase toggle (skips main attendee, collects guest info only)
  • Dynamic extra attendee fields for multi-quantity bookings
  • Full payment vs. $1,000 deposit payment toggle
  • Real-time price calculation with quantity, discount, and deposit logic
  • Program summary sidebar with image, dates, location, and trainers
  • Form validation with inline error highlighting
  • Fetches deposit product variant for deposit payments
  • Monthly installment messaging for full payments (ShopPay)
  • Hides deposit option for online programs or programs under $2,000
  • Session storage integration for booking data persistence

Settings:

  • title (text) — Form heading displayed above the registration fields
  • content (text) — Introductory paragraph below the heading
(Note: no {% schema %} block present; settings are referenced in Liquid
but must be configured via the template JSON)

Blocks: None

Usage

This section is referenced in JSON templates and cannot be added via the theme editor.

{% section 'tmi-book-program' %}