Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

One Service One priver

249 views
Skip to first unread message

p47...@gmail.com

unread,
Dec 15, 2020, 10:26:38 AM12/15/20
to Easy!Appointments - Support Group

Hello guys, I ve just one service and one provider,
how can I skip the service and provider selection step?

Andre Gronwald

unread,
May 10, 2021, 1:51:26 PM5/10/21
to Easy!Appointments - Support Group
did you find a solution? i am interested in this as well.
kind regards,
andre

Alex Tselegidis

unread,
May 17, 2021, 5:52:50 AM5/17/21
to Easy!Appointments - Support Group
Hello! 

This can be done with JavaScript and more specifically in the frontend_book.js file. 

You will find the "initialize" method that can check for the number of available service and provider options and if they are only one you could automatically proceed to the next step. 

  Alex Tselegidis, Easy!Appointments Creator
  Need a customization? Get a free quote!

Senne Gorris

unread,
Aug 1, 2021, 3:40:18 PM8/1/21
to Easy!Appointments - Support Group
I can't seem to set the right parameters to get directly to the next step in the booking procedure.

I have only one provider, and only one service. So that part is already ok.

To get this initialize  method going are these the things I have to change?

exports.manageMode = true;

 exports.initialize = function (defaultEventHandlers, manageMode) {
        defaultEventHandlers = defaultEventHandlers || true;
        manageMode = manageMode || true;

thank you!

Alex Tselegidis

unread,
Aug 2, 2021, 3:42:33 AM8/2/21
to Easy!Appointments - Support Group
Hello! 

> To get this initialize  method going are these the things I have to change?

No really,  you basically need to something like this in the initialize method: 

if ( GlobalVariables.availableServices.length === 1 &&   GlobalVariables.availableProviders.length === 1 ) {
  // Skip first step 
}


  Alex Tselegidis, Easy!Appointments Creator
  Need a customization? Get a free quote!


benel...@outback.ie

unread,
Nov 1, 2024, 12:42:20 PM11/1/24
to Easy!Appointments - Support Group
Alex, In V1.5.0-dev.3 (with some customization that you did for me in 2023) when I have only 1 provider available I can hide the provider <Div> and the system defaults to that provider and I can continue to the next page.

With the latest release public release 1.5.0 nothing happens when I click the 'Next' button.

I attempted to change the bookings.js line 197 to hardcode the ID; however it did have have any affect.

//            const selectedProviderId = App.Utils.Url.queryParam('provider');
            const selectedProviderId = 4;

How can i hide the provider and have it select the single provider available autmatically?
Thanks,
Ben

Alex Tselegidis

unread,
Nov 5, 2024, 6:37:05 AM11/5/24
to Easy!Appointments - Support Group
Hi Ben, 

This is only related to your custom package. 

More information in pm 

Cheers!


Alex Tselegidis, Easy!Appointments Creator
Need a customization? Get a free quote!


Reply all
Reply to author
Forward
0 new messages