Range: Number of Slots – Settings to Prevent Breaking the Day
Having a fixed number of displayed time slots is cool, but it has a potential issue: Table can end in the middle of a day, forcing client to click next button to see if there are other time slots for that day.
Book in Table View shortcode has settings to overcome this issue.
In this example the shortcode has these directives: Your target is to display 10 free slots. However, if you reach 8 slots (min) at the end of a day, you can stop there. If not, proceed to your target 10 (range). Now check if you have included all free time slots of the last day you have covered. If not, continue until you finish the day. However if you reach 15 (max) do not continue any further.
You can skip min or max settings. For example if you skip max, table will always completes the day.
These setting options ensures that a nearly fixed number of time slots are always displayed, regardless of date/time of booked time slots. The goodie here is the smart previous/next buttons: They can follow where previous instance of the table started and finished (which are potentially variable). When you click the next or previous links, they make the table start from a new value so not a single time slot is missed.
One Hour Service - September 9, 2024
Date | Day | Time | Starts | Action |
---|
Not available |
All times are set to Asia/Bangkok (Server Timezone)
Range: Days
Always shows set number of days. Empty days are compensated, for example if the next 2 days are holidays or sold out, it proceeds to the 3rd day (Compensation can be disabled by net_days=0). Number of displayed time slots will be variable depending on number of time slots booked in the covered days. This example is for 2 days.
One Hour Service - September 9 - 10, 2024
Date | Day | Time | Starts | Action |
---|
Not available |
All times are set to Asia/Bangkok (Server Timezone)
Range: Weeks
Shows set number of weeks, counting current week as 1. Therefore number of covered days are variable. This example is for 2 weeks and for a medium long service.
Four Hours Service - September 9 - 22, 2024
Date | Day | Time | Starts | Action |
---|
Not available |
All times are set to Asia/Bangkok (Server Timezone)
Range: Months
Shows set number of months, counting current month as 1. Therefore number of covered days are variable.
Please see this page for an example used with a 24 hours service.
Start and Add attributes
Using start or add attributes will shift start date of the table. The first one (start) is an absolute figure, that is, it is a date and the second one (add) is relative time unit to add current or selected date.
Combining the two is possible. The following example covers new year (December-January) period.
All Day Long Service - December 1 - 30, 2016
Date | Day | Time | Starts | Action |
---|
Not available |
All times are set to Asia/Bangkok (Server Timezone)
All Day Long Service - December 2 - 30, 2016
Date | Day | Time | Starts | Action |
---|
Not available |
All times are set to Asia/Bangkok (Server Timezone)
Show/Hide Page Content
<h4>Range: Number of Slots - Settings to Prevent Breaking the Day</h4>
Having a fixed number of displayed time slots is cool, but it has a potential issue: Table can end in the middle of a day, forcing client to click next button to see if there are other time slots for that day.
Book in Table View shortcode has settings to overcome this issue.
In this example the shortcode has these directives: Your target is to display 10 free slots. However, if you reach 8 slots (min) at the end of a day, you can stop there. If not, proceed to your target 10 (range). Now check if you have included all free time slots of the last day you have covered. If not, continue until you finish the day. However if you reach 15 (max) do not continue any further.
You can skip min or max settings. For example if you skip max, table will always completes the day.
These setting options ensures that a nearly fixed number of time slots are always displayed, regardless of date/time of booked time slots. The goodie here is the smart previous/next buttons: They can follow where previous instance of the table started and finished (which are potentially variable). When you click the next or previous links, they make the table start from a new value so not a single time slot is missed.
[app_book_table complete_day="1" logged="0" max="15" min="8" range="10"]
[app_pagination step="10" unit="number"]
<h4>Range: Days</h4>
Always shows set number of days. Empty days are compensated, for example if the next 2 days are holidays or sold out, it proceeds to the 3rd day (Compensation can be disabled by net_days=0). Number of displayed time slots will be variable depending on number of time slots booked in the covered days. This example is for 2 days.
[app_book_table range="2 days"]
[app_pagination step="2" unit="day"]
<h4>Range: Weeks</h4>
Shows set number of weeks, counting current week as 1. Therefore number of covered days are variable. This example is for 2 weeks and for a medium long service.
[app_book_table service="3" range="2 weeks"]
[app_pagination step="2" unit="week"]
<h4>Range: Months</h4>
Shows set number of months, counting current month as 1. Therefore number of covered days are variable.
Please see <a href="http://demo.wp-base.com/table-view-daily-services/">this page</a> for an example used with a 24 hours service.
<h4>Start and Add attributes</h4>
Using start or add attributes will shift start date of the table. The first one (start) is an absolute figure, that is, it is a date and the second one (add) is relative time unit to add current or selected date.
Combining the two is possible. The following example covers new year (December-January) period.
[app_book_table service="4" start="2016-12-01" range="1 month"]
[app_book_table service="4" start="2016-12-01" range="1 month" add="1"]
[app_confirmation]
<!-- This is a copy of the shortcode in the sidebar, wrapped with app_no_html. Required for ajax update -->
[app_no_html] [app_book_table logged="0" range="10"]
[/app_no_html]