"Branch Logic" possible with Appointments+?

0

I have 3 services available with 3 different service providers. What I’d like is for people to be able to select a service, THEN select the service provider, and THEN be presented with a list of available times based on those TWO criteria. Instead, it is showing calendars based on only ONE element of availability–either the service OR the service provider. So it is confusing for the user, and if they do select both fields, then it ends up booking it incorrectly. Please see the page here:

http://poweroftwocounseling.com/make-an-appointment/

If you choose a service, and click on “show available times,” it does. But then if you choose a service provider and click “show available times,” it does–but it resets the service you have chosen.

Do I need to approach this in a different way to make this work? Thanks!

  • Vinod Dalvi
    • WP Unicorn

    Hi @emily_garman,

    I hope you are well today and thank you for your question.

    After selecting service you can click on “Show available times” and then the provider list updates.

    There is already a feature request here https://wpmudev.com/forums/topic/service-provider-list-not-updating-when-service-is-selected for it but as the member has gone inactive I will move this over to the features & feedback section. This way it can be considered for future development, and we can also see what other community members think about the feature request.

    Cheers.

  • pxwm
    • Code Wrangler

    Hi @Vinod Dalvi – I hope you don’t mine me making a suggestion

    Hi @emily_garman,

    If I’ve understood your requirement correctly, and also based on the post link, which is:-

    You have 3 x Services

    You have 3 x Service Providers who ONLY offer a single Service

    Therefore one Service is assigned to one Service Provider and they is no overlap.

    If this is correct then you may wish to try the following:-

    >Login to your WordPress dashboard as Admin

    >Then Select ‘Appointments’ then ‘Settings’ from the left hand menu

    >Then Select the ‘Service Providers’ tab

    >Then for each ‘Service Provider’ check the ‘Services Provided’ column and ensure they ONLY have the single ‘Service’ assigned to them

    >This will ensure they are ONLY assigned to the single unique ‘Service’

    >Then Save

    >Then Select the ‘Working Hours’ tab

    >Then Select ‘no specific provider’ from the dropdown

    >Set all the ‘Work?’ fields to ‘NO’

    >Then Select each ‘Service Provider’ in turn from the dropdown

    >Set the relevant ‘Work?’ field to ‘Yes’ and the ‘Start’ and ‘End Times’ for the days they are working

    >Set any ‘Break?’ fields to ‘Yes’ and Break times if they require a break in the day(s)

    >Click on Save for each ‘Service Provider’

    >Then Select ‘Pages’ from the left hand menu

    >Then Select the ‘Appointment’ page

    >Then Set the page to ‘Text’

    >Then for the following shortcodes add a parameter as follows:-

    [app_services autorefresh=”1″]

    [app_service_providers autorefresh=”1″]

    This will ‘hide’ the ‘Show Available Times’ and will auto refresh the page when you Select a ‘Service’ and ‘Service Provider’

    Then Update the page

    If you could then try making an appointment

    If you Select a ‘Service’ the page should auto refresh

    It should then only show the relevant ‘Service Provider’ that you assigned to the ‘Service’

    I hoep this helps and please let me know how you get on.

    Regards

    SteveB

  • emily_garman
    • Site Builder, Child of Zeus

    Hi SteveB and Vinod–thanks for the suggestions.

    Steve, I have 3 service providers and 3 services, but ANY of the providers can offer the service. (see page here: http://poweroftwocounseling.com/make-an-appointment/)

    So if you choose “45 minute counseling session”, you can choose any of the three counselors to provide that service.

    But what is not happening is once you choose a service OR a provider, the calendar is updating with availability–but that availability only reflects one or the other (provider OR service). So maybe one counselor is booked from 1:00 – 1:45, but the other one isn’t. And the calendar is not reflecting that properly.

    I guess what I need to do is instead of having 3 providers and 3 services, I need to make 9 services–each one identified with its provider. And then just have ONE dropdown. I don’t really want to do it that way, but it seems to be the only way to make this work?