'This time slot was taken while you were filling in the form. Please choose another time.', 'worker_unavailable' => 'The selected staff member is not working on this day. Please choose another day.', 'outside_schedule' => 'The selected time is outside the staff member\'s working hours. Please choose another time.', 'alternate_week' => 'The selected staff member only works every second week. Please choose another day.', 'after_hours' => 'The treatment would not finish before closing time. Please choose an earlier time.', 'too_far' => 'Bookings can only be made up to 3 months in advance.', 'category_mismatch' => 'The selected staff member does not perform the chosen services. Please start again.', 'service_not_offered' => 'The selected staff member does not perform all of the chosen treatments. Please pick another staff member or change the treatments.', 'single_service_only' => 'Only one treatment can be booked at a time. Please select just one.', 'invalid_email' => 'That e-mail address does not look valid. Please check it - your confirmation and the link to manage your booking are sent there.', 'no_service' => 'No service was selected. Please choose at least one service.', 'default' => 'Something went wrong with your booking. Please try again.', ); $shownError = isset($bookingErrorCode) && isset($bookingErrorMessages[$bookingErrorCode]) ? $bookingErrorMessages[$bookingErrorCode] : $bookingErrorMessages['default']; $backSubpage = isset($subpage) && $subpage != '' ? $subpage : 'barber'; $backUrl = SITEURL.'en/booking/'.$backSubpage; ?>