| @@ -40,9 +40,9 @@ | ||
| 40 | 40 | if ( ! empty( $existing_form->booking_form_id ) ) { |
| 41 | 41 | return absint( $existing_form->booking_form_id ); |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | - $template_record = wpbc_get_bfb_template_record_by_key( 'appointments_services_flow' ); | |
| 44 | + $template_record = wpbc_get_bfb_template_record_by_key( 'appointments_services_selection_summary' ); | |
| 45 | 45 | |
| 46 | 46 | if ( empty( $template_record ) || ! is_array( $template_record ) ) { |
| 47 | 47 | return new WP_Error( 'wpbc_booking_modes_quickstart_form_template_missing', __( 'The bundled Appointment Booking Form template is not available.', 'booking' ) ); |
| 48 | 48 | } |
| @@ -233,11 +233,20 @@ | ||
| 233 | 233 | } |
| 234 | 234 | |
| 235 | 235 | $booking_form_id = ! empty( $service['booking_form_id'] ) ? absint( $service['booking_form_id'] ) : 0; |
| 236 | 236 | $provider_id = ! empty( $service['resource_ids'] ) ? absint( reset( $service['resource_ids'] ) ) : absint( $default_provider_id ); |
| 237 | + $activation_page_configs = function_exists( 'wpbc_get_activation_booking_page_configs' ) | |
| 238 | + ? wpbc_get_activation_booking_page_configs() | |
| 239 | + : array(); | |
| 240 | + $appointment_page_config = isset( $activation_page_configs['appointment_booking'] ) | |
| 241 | + ? $activation_page_configs['appointment_booking'] | |
| 242 | + : array(); | |
| 243 | + $appointment_page_slug = isset( $appointment_page_config['page_slug'] ) | |
| 244 | + ? (string) $appointment_page_config['page_slug'] | |
| 245 | + : 'booking-calendar-appointment'; | |
| 237 | 246 | $page_result = wpbc_booking_modes_quickstart_ensure_page( |
| 238 | 247 | 'appointment_booking', |
| 239 | - 'wpbc-appointment-booking', | |
| 248 | + $appointment_page_slug, | |
| 240 | 249 | __( 'Book an Appointment', 'booking' ), |
| 241 | 250 | '[booking_appointment]', |
| 242 | 251 | '[booking_appointment' |
| 243 | 252 | ); |