Repository navigation
v1.5.3 — Required email/SMS consent at booking + signup
What's new
Booking form
- Phone number is now required.
- Two new required consent checkboxes — one for confirmation/reminder emails, one for confirmation/reminder text messages — must be ticked to book.
- The longer passive opt-in notice is replaced by the active checkboxes; the 24-hour cancellation note stays.
Account registration
- The post-booking quick-register form now collects phone (prefilled from the booking) and the same two consent checkboxes (prefilled checked, since the client just ticked them).
- The standalone account-page register form now collects phone and requires both consent checkboxes.
Admin
- Notifications → Consent Language: two new textareas let the owner edit the email and SMS consent wording. Default copy is TCPA-style.
{business_name}is interpolated from the configured business name (falls back to the site name).
Data
- Bookings: three new columns —
email_consent,sms_consent,consent_timestamp. Schema version bumps from 4 → 5;dbDeltaruns the migration on first page load after upgrade. - Registered users: three new meta keys —
_caswell_email_consent,_caswell_sms_consent,_caswell_consent_timestamp. Phone now also saved ascaswell_phoneuser meta. - Reschedule links: client isn't re-prompted. The new booking row inherits consent flags and timestamp from the original.