PluginProbe
Booking Calendar / 11.9
Booking Calendar v11.9
11.9 11.8.4 11.8.3 11.8.2 11.8.1 11.8 11.7 11.6.1 11.6 11.5 11.4.3 11.4.2 11.4.1 11.4 11.3 11.2.1 11.2 11.1 11.0 10.15.7 10.15.6 10.1.3 10.10 10.10.1 10.10.2 All 205 releases
← All changes | includes/booking_modes_v3/quickstart/appointment.php +11 -2 11.8 → 11.9 View file →
@@ -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 );