Okay
  Public Ticket #2890795
Oops... It seems like there are no employees or services created, or no employees are assigned to the service, at this moment.
Closed

Comments

  •  1
    Can - Ramanam started the conversation

    Hi,

    If i don't assign any working hours, even i have set up services, this breaking site comes when I want to book a slot of the employee. 

    "Oops...
    It seems like there are no employees or services created, or no employees are assigned to the service, at this moment."

    Same happens when i try to put a day off,  it breaks the entire booking form.

    In both cases, I want it to show the calendar, with no available slots, and not this this error page. 

  • [deleted] replied

    Hi, Ioana,

    Sorry for the delayed response.

    Please make sure that the Service duration fits in the Employee's working hours and that the Employees schedule is set through the working hours settings in the Employee's profile, for example:

    nyQciKqdlNb2l2cZJMDlhXNgUmfvb8PZWIQBbvwBfzn_J20tzuud-Oinsa3nhc5FfChzcEykmWTE9885EAd8f09ufqg8XFL-pu310BiXHTC8YijBoVcG122WSJRb28EV2cDJrRu3=s0

    If that doesn't help, please provide us with a temporary WP Admin user login and the link to the booking page for further investigation. You can post credentials as a private reply under this ticket. 

    Looking forward to hearing from you. 

  •   Can - Ramanam replied privately
  •   [deleted] replied privately
  •   Can - Ramanam replied privately
  •   [deleted] replied privately
  •  4
    Jeremy Avenarius replied

    Hi, was there a solution to disabling this error message when there are no appointments (so it just shows the calendar with no time slots), and if so, can you please share it? Thanks!


    Jeremy

  •  2,572
    Aleksandar replied

    Hello Jeremy.

    This message is for the administrators of the site, so they know that there's something missing in the setup in order for the form to appear. It can't be changed, nor can it be removed through plugin settings.

    At the moment, you can hide it by adding the following custom CSS to the page:

    .am-no-services {
    display: none;
    }

    Custom code needs to be applied to the page where the booking form is. Depending on what you're using (Gutenberg blocks, or some page builder), adding the CSS or JS can be done in a few different ways. 

    If you need help with adding custom CSS to the page, please take a look at this article.

    Another option would be to create a service that lasts 24 hours (for example). Since your employees probably don't have 24h work hours, you could enable "Show service on site" in this service settings, and disable that slider for all other services you no longer want to display on the front-end:

    5918050459.png

    Once this option is enabled for a service that has a duration longer than your employee's work hours, the site visitors would only see a blank calendar.

    What's the use case for this? Why would you remove employees and/or services from the site?

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  4
    Jeremy Avenarius replied

    Hi Aleksandar,

    The members (employees) on my site have a choice whether or not to fill out their working or special days calendar when they join and sometimes they take their sweet time to enter their first work day hours. So until they enter it for the first time, it shows that concerning error message that looks like something is broken but it isn't. I think it looks unprofessional so I'd like for it to show a blank calendar or even a custom message that I can shown instead.

    I might try the service trick and see how that goes.

    Thank you!

    Jeremy

  •  2,572
    Aleksandar replied

    Hi again Jeremy.

    Thank you for the explanation of your approach. I'll forward it to our development team so they can take it into consideration.

    At the moment, there's another thing you can do - you can modify the text and hide the "If you are the admin of this page..." section.

    To hide the "admin" section, you'd need to add the following CSS to the page:

    #amelia-booking-wrap > div.am-no-services > p, #amelia-booking-wrap > div.am-no-services > a:nth-child(5), #amelia-booking-wrap > div.am-no-services > span, #amelia-booking-wrap > div.am-no-services > a:nth-child(7) {
    display: none;
    }
    

    And to change the text, you can access ../wp-content/plugins/ameliabooking/src/Infrastructure/WP/Translations/FrontendStrings.php and in it find this line (around line 101):

    'no_services_employees'        => __('It seems like there are no employees or services created, or no  employees are assigned to the service, at this moment.'),
    

    Change the text within the brackets, and within the single quotes, for example like this:

    'no_services_employees'        => __('At the moment, there are no available time slots for booking. Please check in a day or two.'),
    

    And the form will look like this on the front-end:

    9335799271.png

    I hope that helps for now.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  4
    Jeremy Avenarius replied

    This is really helpful. Thank you for providing great service!

    Jeremy

  •  2,572
    Aleksandar replied

    You're welcome, Jeremy.

    If you have any further questions or issues, please feel free to open a new ticket, and we'll gladly help.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables