heywatchoutdude
Forum Replies Created
-
Forum: Plugins
In reply to: [WP BASE Booking of Appointments, Services and Events] UI – Blank field/areaThe reason why the <html> tags in the middle of the website is because its a HTML container widget (Elementor)
But the issue is inside the shortcode [app_book] which I cannot edit via Elementor view – How to proceed?
Forum: Plugins
In reply to: [WP BASE Booking of Appointments, Services and Events] UI – Blank field/areaFixed by adding at Additional css Rules (Front end):
.app-step.active {
width: 100%; /* Change from 70% to 100% /
padding-right: 0; / Remove any padding */
}
Do you have any idea why I had to add that css rule?ok thanks for the explanation and urgent fix.
thanks, issue is fixed ??
what was the reason?
sure, here we go:
Issue solved. (WP BASE > Display Settings > Advanced > Provider wasnt selected)
Hi,
we want to cross-check if the “customer” has already paid.That’s why I need a “checkbox” within the app_list shortcode.
If you want to add your custom column (and check box inside) you can use?app_list_allowed_columns?and?app_list_add_cell?filters.?
– Can I enter a custom name for that column? If yes, how should it look regarding to my example (see main post).But is it possible? (Like mentioned in my example)
The custom function “app_monthly_calendar_html_after_td” works perfect, thanks!
Additional question:
When I set a value in “Late booking permission time (mins)” what is the starting point? Is it from 00:00 AM till 23:59 PM same day?
If yes, with a value of “1140” (mins) it should allow/enable late booking till 19:00 PM, right?Is it maybe possible to display slots within the calendar?
Yes that may works but now it wont display the slots (so the customer doesnt know how many slots are left) because im using the following function:
/** * Fill calendar cell with available worker count * Return array */ add_filter( 'app_weekly_calendar_cell_fill', 'app_calendar_cell_fill', 10, 2 ); add_filter( 'app_monthly_calendar_cell_fill', 'app_calendar_cell_fill', 10, 2 ); function app_calendar_cell_fill( $arr, $slot ) { if ( $slot->reason || is_admin() && !(defined( 'WPB_AJAX' ) && WPB_AJAX ) ) { return $arr; } if ( $slot->calendar->is_admin() ) { return $arr; } $start = $slot->get_start(); $end = $slot->get_end(); $busy = isset( $slot->stat[$start][$end]['count'] ) ? $slot->stat[$start][$end]['count'] : 0; if ( $slot->get_worker() ) { $avail = 1; } else { $avail = isset( $slot->stat[$start][$end]['available'] ) ? $slot->stat[$start][$end]['available'] : $slot->available_workforce( ); } $result = max( 0, $avail - $busy ); $fill = !empty($arr['fill']) ? $arr['fill'].'<span style="font-size: 14px;">'.$result.'/20</span>' : $result; return array( 'class_name' => 'app-cell-centered', 'fill' => $fill ); } /** * Example of custom time table display for monthly calendar for a 12-hours service * You can wrap the output with span tag for easier styling, e.g. return '<span>Morning Session</span>' */ add_filter( 'app_timetable_cell_fill', 'app_custom_time_display', 10, 2 ); function app_custom_time_display( $display, $slot ) { $service = $slot->get_service(); if ( $service != 1 || BASE()->is_package( $service ) ) # Replace with your service ID return $display; if ( date( 'G', $slot->get_start() ) < 12 ) { return '<span style="font-size: 14px;">Freie Pl?tze:</span>'; } else { return '<span style="font-size: 14px;">Freie Pl?tze:</span>'; } }
- This reply was modified 2 years, 6 months ago by heywatchoutdude.
Yeah but the slots are still available after 7:00 PM on the same day which makes no sense.
There is no other workaround available?
Because I don’t want to make the service the whole day available.
(We have opening time from 10:00 AM – 07:00 PM)Hi,
I want to make the function “late booking” available for all 20 slots per day.
Do I need to change the working hours from 9 hours to all day, in order to get it working?
Hi,
The time isn’t necessary because it will get removed anyway in the confirmation mail, custom function:
/** DATE_ONLY **/ add_filter( 'app_email_replace_pre', 'app_pholder_date_only', 10, 2 ); function app_pholder_date_only( $text, $r ) { if ( empty( $r->ID ) ) { return $text; } $booking = wpb_get_booking( $r->ID ); return str_replace( 'DATE_ONLY', $bo
Note: I have 20 slots per day, which are also gets displayed at the calendar, custom function:
/** * Fill calendar cell with available worker count * Return array */ add_filter( 'app_weekly_calendar_cell_fill', 'app_calendar_cell_fill', 10, 2 ); add_filter( 'app_monthly_calendar_cell_fill', 'app_calendar_cell_fill', 10, 2 ); function app_calendar_cell_fill( $arr, $slot ) { if ( $slot->reason || is_admin() && !(defined( 'WPB_AJAX' ) && WPB_AJAX ) ) { return $arr; } if ( $slot->calendar->is_admin() ) { return $arr; } $start = $slot->get_start(); $end = $slot->get_end(); $busy = isset( $slot->stat[$start][$end]['count'] ) ? $slot->stat[$start][$end]['count'] : 0; if ( $slot->get_worker() ) { $avail = 1; } else { $avail = isset( $slot->stat[$start][$end]['available'] ) ? $slot->stat[$start][$end]['available'] : $slot->available_workforce( ); } $result = max( 0, $avail - $busy ); $fill = !empty($arr['fill']) ? $arr['fill'].'<span style="font-size: 14px;">'.$result.'/20</span>' : $result; return array( 'class_name' => 'app-cell-centered', 'fill' => $fill ); } /** * Example of custom time table display for monthly calendar for a 12-hours service * You can wrap the output with span tag for easier styling, e.g. return '<span>Morning Session</span>' */ add_filter( 'app_timetable_cell_fill', 'app_custom_time_display', 10, 2 ); function app_custom_time_display( $display, $slot ) { $service = $slot->get_service(); if ( $service != 1 || BASE()->is_package( $service ) ) # Replace with your service ID return $display; if ( date( 'G', $slot->get_start() ) < 12 ) { return '<span style="font-size: 14px;">Freie Pl?tze:</span>'; } else { return '<span style="font-size: 14px;">Freie Pl?tze:</span>'; } }
- This reply was modified 2 years, 6 months ago by heywatchoutdude.