[#494] How to set Provider's day with different Services?

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?

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.

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”
}

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.

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.

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.*

Redmine Admin wrote:

Please contact our Live help, they will help you with this schedule task settings wise.

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?

Vu La wrote:

We are looking to use the API to do this configuration and not a manual set up*

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.

Vu La wrote:

Ah okay, thanks for your help. We will contact Live Help.