| @@ -95,8 +95,9 @@ | ||
| 95 | 95 | // ================================================================================================================= |
| 96 | 96 | |
| 97 | 97 | $replace_arr = wpbc__get_replace_shortcodes__email_new_visitor( $params_arr['booking_id'], $params_arr['resource_id'], $params_arr['form_data'] ); |
| 98 | 98 | |
| 99 | + | |
| 99 | 100 | $replace_arr['readable_dates'] = '<div class="wpbc_ty__section_text_dates">'. wpbc_get_redable_dates( $params_arr['dates_ymd_arr'] ) . '</div>'; |
| 100 | 101 | $replace_arr['readable_times'] = ''; |
| 101 | 102 | if ( |
| 102 | 103 | ( wpbc_transform__24_hours_his__in__seconds( $params_arr['times_his_arr'][0] ) > 0 ) |
| @@ -105,8 +106,14 @@ | ||
| 105 | 106 | // -- Times text -- |
| 106 | 107 | $replace_arr['readable_times'] = '<div class="wpbc_ty__section_text_times">' . wpbc_get_redable_times( $params_arr['dates_ymd_arr'], $params_arr['times_his_arr'] ) . '</div>'; |
| 107 | 108 | } |
| 108 | 109 | |
| 110 | + $is_no_date = apply_filters( 'wpbc_maybe_no_booking_date', false, $params_arr['dates_ymd_arr'] ); | |
| 111 | + if ( $is_no_date ) { | |
| 112 | + $replace_arr['readable_dates'] = '<div class="wpbc_ty__section_text_dates">---</div>'; | |
| 113 | + $replace_arr['readable_times'] = ''; | |
| 114 | + } | |
| 115 | + | |
| 109 | 116 | // Top - Thank you |
| 110 | 117 | $title_after_reservation = html_entity_decode( esc_js( wpbc_lang( get_bk_option( 'booking_title_after_reservation' ) ) ) ); |
| 111 | 118 | $title_after_reservation = wpbc_replace_booking_shortcodes( $title_after_reservation, $replace_arr, ' --- ' ); |
| 112 | 119 | $title_after_reservation = stripslashes( $title_after_reservation ); |
| @@ -206,9 +213,9 @@ | ||
| 206 | 213 | 'resource_id' => $params_arr['resource_id'] // '2' |
| 207 | 214 | , 'str_dates__dd_mm_yyyy' => $params_arr['str_dates__dd_mm_yyyy'] // '14.11.2023, 15.11.2023, 16.11.2023, 17.11.2023' |
| 208 | 215 | , 'times_array' => $params_arr['times_array'] // [ ["10","00","00"], ["12","00","00"] ] |
| 209 | 216 | , 'form_data' => $params_arr['form_data'] // 'text^selected_short_timedates_hint4^06/11/2018 14:00...' |
| 210 | - , 'is_discount_calculate' => ! true // Default true | |
| 217 | + , 'is_discount_calculate' => false // FixIn: 10.11.5.7. // Default true | |
| 211 | 218 | , 'is_only_original_cost' => false // Default false |
| 212 | 219 | ) ); |
| 213 | 220 | $total_cost_without_discount = floatval( $total_cost_without_discount ); // from double > float |
| 214 | 221 | |