system
March 16, 2020, 5:18am
1
Migrated from Redmine #494 | Author: Vu La
Status: New | Priority: Normal | Created: 2020-03-16
Hi,
If for example a provider schedule on Monday is 9:00-10:00 can only perform the Consult Service and 10:00-11:00 can only perform the Laser Service.
That is, if a client tries to book for Monday 9:00-10:00 they can only book the Consult Service.
How can we set this using the setWorkDayInfo?
system
March 16, 2020, 8:14am
2
Redmine Admin wrote:
Hi, here is example code for this method API documentation | SimplyBook.me Online Scheduling
you should pass date if want to set special date settings, you should not pass date and pass index instead if want to change weekday settings.
Please contact our Live help if it is not clear how company/service/provider common/week/special date schedule works.
system
March 16, 2020, 9:09am
3
Vu La wrote:
Hi, thanks for the reply.
I understand you can pass the date, however I cannot see how this will allow me to address my example.
It’s almost as if I need to call the setWorkDayInfo twice as per below. However I know that calling setWorkDayInfo again will overwrite.
Could you please advise how we could achieve my example?
{
“start_time”:“09:00”,
“end_time”:“10:00”,
“is_day_off”:0,
“breaktime”:,
“index”:“1”,
“name”:“Monday”,
“date”:“”,
“unit_group_id”:“1”,
“event_id”:“1”
}
{
“start_time”:“10:00”,
“end_time”:“11:00”,
“is_day_off”:0,
“breaktime”:,
“index”:“1”,
“name”:“Monday”,
“date”:“”,
“unit_group_id”:“1”,
“event_id”:“2”
}
system
March 16, 2020, 9:12am
4
Redmine Admin wrote:
it seems you need to set Mondays as day all for all services except Cosnult.
so, “is_day_off” needs to be set to 1 for all except one service if I understood your problem correctly.
system
March 16, 2020, 9:17am
5
Vu La wrote:
Hi,
For example a provider schedule can be:
9:00 - 10:00: General Consult
10:00 - 11:00: Laser Consult
11:00 - 12:00: Laser Consult
13:00 - 14:00: Derm Consult
14:00 - 15:00: General Consult
What does the info data input need to be when calling setWorkDayInfo to set up the provider so that it looks like that.
So that when a client tries to book a General Consult they can ONLY book 10:00 or 14:00 slot for that particular provider.
system
March 16, 2020, 9:18am
6
Vu La wrote:
So that when a client tries to book a General Consult they can ONLY book 9:00 or 14:00 slot for that particular provider.*
system
March 16, 2020, 9:19am
7
Redmine Admin wrote:
Please contact our Live help, they will help you with this schedule task settings wise.
system
March 16, 2020, 9:22am
8
Vu La wrote:
We did and they directed us to post any API related question here, because when we mentioned calling setWorkDayInfo they told us to post it here.
Please advise who we should contact for this? Is it actually the Live help?
system
March 16, 2020, 9:25am
9
Vu La wrote:
We are looking to use the API to do this configuration and not a manual set up*
system
March 16, 2020, 9:46am
10
Val Komarov wrote:
As far as I can see, you have to set Service worktime, not Provider worktime.
If your provider is connected to services like General Consult, Laser Consult etc., you should set 9:00 - 15:00 worktime for provider, and 9:00 - 10:00 for General Consult service and so on.
Manual set up gives the same possibilities as API set up, so our Live Help can help you better with understanding all the nuances.
system
March 16, 2020, 9:55am
11
Vu La wrote:
Ah okay, thanks for your help. We will contact Live Help.