| @@ -52,11 +52,12 @@ | ||
| 52 | 52 | 'start_month_calendar' => false, |
| 53 | 53 | 'shortcode_param__options' => '', |
| 54 | 54 | 'calendar_dates_start' => '', |
| 55 | 55 | 'calendar_dates_end' => '', |
| 56 | - 'booking_hash' => '', | |
| 57 | - 'form_status' => 'published', | |
| 58 | - 'calendar_request_overrides' => array(), | |
| 56 | + 'booking_hash' => '', | |
| 57 | + 'form_status' => 'published', | |
| 58 | + 'booking_workflow' => 'classic', | |
| 59 | + 'calendar_request_overrides' => array(), | |
| 59 | 60 | ); |
| 60 | 61 | $params_arr = wp_parse_args( $params_arr, $default_params ); |
| 61 | 62 | $is_echo = ( ! empty( $params_arr['is_echo'] ) ); |
| 62 | 63 | |
| @@ -125,15 +126,12 @@ | ||
| 125 | 126 | // Normalize calendar_dates_start/end. |
| 126 | 127 | // --------------------------------------------------------------------- |
| 127 | 128 | $calendar_dates_range = WPBC_FE_Attr_Postprocessor::normalize_calendar_dates_range( $params_arr['calendar_dates_start'], $params_arr['calendar_dates_end'] ); |
| 128 | 129 | $classic_booking_context_token = ''; |
| 129 | - if ( | |
| 130 | - function_exists( 'wpbc_classic_booking_context_encode' ) | |
| 131 | - && '' !== $calendar_dates_range['start'] | |
| 132 | - && '' !== $calendar_dates_range['end'] | |
| 133 | - ) { | |
| 130 | + if ( function_exists( 'wpbc_classic_booking_context_encode' ) ) { | |
| 134 | 131 | $classic_booking_context_token = wpbc_classic_booking_context_encode( |
| 135 | 132 | array( |
| 133 | + 'booking_workflow' => $params_arr['booking_workflow'], | |
| 136 | 134 | 'resource_id' => $params_arr['resource_id'], |
| 137 | 135 | 'calendar_dates_start' => $calendar_dates_range['start'], |
| 138 | 136 | 'calendar_dates_end' => $calendar_dates_range['end'], |
| 139 | 137 | 'custom_form' => $params_arr['custom_booking_form'], |