Exceptions for specific providers not working
-
Hi, thanks for that great plug-in.
I’ve been years of using it but i would like to know how to fix the exceptions functionality.I have two providers (morning and afternoon) assigned to the same service and try to set the holidays calendar to avoid non-valid reservations.
If I set the exception days for “No specific provider” it works but if I set it to any specific provider (even all) it does NOT work and the calendar continues rendering as available.
Thanks a lot for your help!
-
Hello @abuiza, I trust you are doing well!
I tested the plugin on my site and can’t replicate it, The exceptional non-working days are working on my site.
Please make sure that you are using the latest plugin and WordPress versions.
Would you please test for a conflict with another plugin? Deactivate all the plugins on your site, leave only the Appointments plugin activated. Clear the site’s cache and test again the issue.
If the issue still persists, switch to a WordPress default theme to test for a conflict with a theme.
If the issue is gone, activate one plugin at the time to find which plugin is causing this.
Let me know how it went!
Cheers,
NastiaThanks Nastia for your quick answer.
I’ve set the plugin on a test 4.7 WP and creating 1 service and 2 providers (morning/afternoon) with specific working hours (9-13:30h-Morning, and 16-19:30h-Afternoon), assigned the providers to the service and:
– If I set the Exception->Exceptional NON working days for the “No specific provider” it works and days become grey and not available.
– Otherwise if I set it for one specific provider (even all) it fails and days continue available.So the issue persists despite changing the WP installation.
Thanks a lot in advance!
Hello there @abuiza,
I still can’t replicate the same on my site. Would you please navigate to Appointments > Settings > Service Providers and make sure that the “Dummy” options are unchecked for all service providers?

If the issue is still there, please activate the debugging mode, add the bellow lines to your wp-config.php file:
define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false );Save the exceptional days for a service provider and visit the Appointments page to check if the changes have been made. The debug.log should be created inside the wp-content folder, let us know if you see any errors/warnings inside.
Also please share a link your appointment page here, so I can have a closer look.
Kind regards,
NastiaThanks again Nastia,
Providers have not the “Dummy” check.
I put the DEBUG lines on wp-config.php and made 3 log files, it is:Selecting provider log:
[11-Jan-2017 13:22:56 UTC] PHP Strict Standards: Redefining already defined constructor for class Appointments in D:\HTTPD\PROVESWP.RIPOLLET.CAT\wp-content\plugins\appointments\appointments.php on line 43 [11-Jan-2017 13:22:56 UTC] PHP Notice: ¡El método de llamada al constructor WP_Widget en Appointments_Widget_Services está <strong>obsoleto</strong> desde la versión 4.3.0! Utiliza <pre>__construct()</pre> en su lugar. in D:\HTTPD\PROVESWP.RIPOLLET.CAT\wp-includes\functions.php on line 3718 [11-Jan-2017 13:22:56 UTC] PHP Notice: ¡El método de llamada al constructor WP_Widget en Appointments_Widget_Service_Providers está <strong>obsoleto</strong> desde la versión 4.3.0! Utiliza <pre>__construct()</pre> en su lugar. in D:\HTTPD\PROVESWP.RIPOLLET.CAT\wp-includes\functions.php on line 3718 [11-Jan-2017 13:22:56 UTC] PHP Notice: ¡El método de llamada al constructor WP_Widget en Appointments_Widget_Monthly_Calendar está <strong>obsoleto</strong> desde la versión 4.3.0! Utiliza <pre>__construct()</pre> en su lugar. in D:\HTTPD\PROVESWP.RIPOLLET.CAT\wp-includes\functions.php on line 3718 [11-Jan-2017 13:22:56 UTC] PHP Notice: ¡El método de llamada al constructor WP_Widget en wdgtcstmzr está <strong>obsoleto</strong> desde la versión 4.3.0! Utiliza <pre>__construct()</pre> en su lugar. in D:\HTTPD\PROVESWP.RIPOLLET.CAT\wp-includes\functions.php on line 3718 [11-Jan-2017 13:22:56 UTC] PHP Strict Standards: Redefining already defined constructor for class AppointmentsGcal in D:\HTTPD\PROVESWP.RIPOLLET.CAT\wp-content\plugins\appointments\includes\class.gcal.php on line 26 [11-Jan-2017 13:22:57 UTC] PHP Notice: has_cap fue llamado con un argumento que está <strong>obsoleto</strong> desde la versión 2.0! El uso de niveles de usuarios por plugins y temas está obsoleto. Usa los perfiles y capacidades en su lugar. in D:\HTTPD\PROVESWP.RIPOLLET.CAT\wp-includes\functions.php on line 3842 [11-Jan-2017 13:22:57 UTC] PHP Warning: file_exists(): open_basedir restriction in effect. File(D:\HTTPD\PROVESWP.RIPOLLET.CAT/wp-content/plugins/http://proveswp.ripollet.cat/wp-admin/admin.php) is not within the allowed path(s): (D:\HTTPD;C:\WINDOWS\TEMP\) in D:\HTTPD\PROVESWP.RIPOLLET.CAT\wp-admin\menu-header.php on line 150 [11-Jan-2017 13:22:57 UTC] PHP Warning: file_exists(): open_basedir restriction in effect. File(D:\HTTPD\PROVESWP.RIPOLLET.CAT/wp-content/plugins/http://proveswp.ripollet.cat/wp-admin/admin.php) is not within the allowed path(s): (D:\HTTPD;C:\WINDOWS\TEMP\) in D:\HTTPD\PROVESWP.RIPOLLET.CAT\wp-admin\menu-header.php on line 219 [11-Jan-2017 13:22:57 UTC] PHP Warning: file_exists(): open_basedir restriction in effect. File(D:\HTTPD\PROVESWP.RIPOLLET.CAT/wp-content/plugins/http://proveswp.ripollet.cat/wp-admin/post-new.php) is not within the allowed path(s): (D:\HTTPD;C:\WINDOWS\TEMP\) in D:\HTTPD\PROVESWP.RIPOLLET.CAT\wp-admin\menu-header.php on line 219 [11-Jan-2017 13:22:57 UTC] PHP Notice: has_cap fue llamado con un argumento que está <strong>obsoleto</strong> desde la versión 2.0! El uso de niveles de usuarios por plugins y temas está obsoleto. Usa los perfiles y capacidades en su lugar. in D:\HTTPD\PROVESWP.RIPOLLET.CAT\wp-includes\functions.php on line 3842Setting exceptions log:
[11-Jan-2017 13:23:38 UTC] PHP Strict Standards: Redefining already defined constructor for class Appointments in D:\HTTPD\PROVESWP.RIPOLLET.CAT\wp-content\plugins\appointments\appointments.php on line 43 [11-Jan-2017 13:23:39 UTC] PHP Notice: ¡El método de llamada al constructor WP_Widget en Appointments_Widget_Services está <strong>obsoleto</strong> desde la versión 4.3.0! Utiliza <pre>__construct()</pre> en su lugar. in D:\HTTPD\PROVESWP.RIPOLLET.CAT\wp-includes\functions.php on line 3718 [11-Jan-2017 13:23:39 UTC] PHP Notice: ¡El método de llamada al constructor WP_Widget en Appointments_Widget_Service_Providers está <strong>obsoleto</strong> desde la versión 4.3.0! Utiliza <pre>__construct()</pre> en su lugar. in D:\HTTPD\PROVESWP.RIPOLLET.CAT\wp-includes\functions.php on line 3718 [11-Jan-2017 13:23:39 UTC] PHP Notice: ¡El método de llamada al constructor WP_Widget en Appointments_Widget_Monthly_Calendar está <strong>obsoleto</strong> desde la versión 4.3.0! Utiliza <pre>__construct()</pre> en su lugar. in D:\HTTPD\PROVESWP.RIPOLLET.CAT\wp-includes\functions.php on line 3718 [11-Jan-2017 13:23:39 UTC] PHP Notice: ¡El método de llamada al constructor WP_Widget en wdgtcstmzr está <strong>obsoleto</strong> desde la versión 4.3.0! Utiliza <pre>__construct()</pre> en su lugar. in D:\HTTPD\PROVESWP.RIPOLLET.CAT\wp-includes\functions.php on line 3718 [11-Jan-2017 13:23:39 UTC] PHP Strict Standards: Redefining already defined constructor for class AppointmentsGcal in D:\HTTPD\PROVESWP.RIPOLLET.CAT\wp-content\plugins\appointments\includes\class.gcal.php on line 26 [11-Jan-2017 13:23:39 UTC] PHP Notice: has_cap fue llamado con un argumento que está <strong>obsoleto</strong> desde la versión 2.0! El uso de niveles de usuarios por plugins y temas está obsoleto. Usa los perfiles y capacidades en su lugar. in D:\HTTPD\PROVESWP.RIPOLLET.CAT\wp-includes\functions.php on line 3842 [11-Jan-2017 13:23:39 UTC] PHP Warning: file_exists(): open_basedir restriction in effect. File(D:\HTTPD\PROVESWP.RIPOLLET.CAT/wp-content/plugins/http://proveswp.ripollet.cat/wp-admin/admin.php) is not within the allowed path(s): (D:\HTTPD;C:\WINDOWS\TEMP\) in D:\HTTPD\PROVESWP.RIPOLLET.CAT\wp-admin\menu-header.php on line 150 [11-Jan-2017 13:23:39 UTC] PHP Warning: file_exists(): open_basedir restriction in effect. File(D:\HTTPD\PROVESWP.RIPOLLET.CAT/wp-content/plugins/http://proveswp.ripollet.cat/wp-admin/admin.php) is not within the allowed path(s): (D:\HTTPD;C:\WINDOWS\TEMP\) in D:\HTTPD\PROVESWP.RIPOLLET.CAT\wp-admin\menu-header.php on line 219 [11-Jan-2017 13:23:39 UTC] PHP Warning: file_exists(): open_basedir restriction in effect. File(D:\HTTPD\PROVESWP.RIPOLLET.CAT/wp-content/plugins/http://proveswp.ripollet.cat/wp-admin/post-new.php) is not within the allowed path(s): (D:\HTTPD;C:\WINDOWS\TEMP\) in D:\HTTPD\PROVESWP.RIPOLLET.CAT\wp-admin\menu-header.php on line 219 [11-Jan-2017 13:23:39 UTC] PHP Notice: has_cap fue llamado con un argumento que está <strong>obsoleto</strong> desde la versión 2.0! El uso de niveles de usuarios por plugins y temas está obsoleto. Usa los perfiles y capacidades en su lugar. in D:\HTTPD\PROVESWP.RIPOLLET.CAT\wp-includes\functions.php on line 3842Reloading appointments page log:
[11-Jan-2017 13:24:04 UTC] PHP Strict Standards: Redefining already defined constructor for class Appointments in D:\HTTPD\PROVESWP.RIPOLLET.CAT\wp-content\plugins\appointments\appointments.php on line 43 [11-Jan-2017 13:24:04 UTC] PHP Notice: wp_register_style was called <strong>incorrectly</strong>. Scripts and styles should not be registered or enqueued until the <code>wp_enqueue_scripts</code>, <code>admin_enqueue_scripts</code>, or <code>login_enqueue_scripts</code> hooks. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.3.) in D:\HTTPD\PROVESWP.RIPOLLET.CAT\wp-includes\functions.php on line 3897 [11-Jan-2017 13:24:04 UTC] PHP Notice: wp_enqueue_style was called <strong>incorrectly</strong>. Scripts and styles should not be registered or enqueued until the <code>wp_enqueue_scripts</code>, <code>admin_enqueue_scripts</code>, or <code>login_enqueue_scripts</code> hooks. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.3.) in D:\HTTPD\PROVESWP.RIPOLLET.CAT\wp-includes\functions.php on line 3897 [11-Jan-2017 13:24:04 UTC] PHP Notice: ¡El método de llamada al constructor WP_Widget en Appointments_Widget_Services está <strong>obsoleto</strong> desde la versión 4.3.0! Utiliza <pre>__construct()</pre> en su lugar. in D:\HTTPD\PROVESWP.RIPOLLET.CAT\wp-includes\functions.php on line 3718 [11-Jan-2017 13:24:04 UTC] PHP Notice: ¡El método de llamada al constructor WP_Widget en Appointments_Widget_Service_Providers está <strong>obsoleto</strong> desde la versión 4.3.0! Utiliza <pre>__construct()</pre> en su lugar. in D:\HTTPD\PROVESWP.RIPOLLET.CAT\wp-includes\functions.php on line 3718 [11-Jan-2017 13:24:04 UTC] PHP Notice: ¡El método de llamada al constructor WP_Widget en Appointments_Widget_Monthly_Calendar está <strong>obsoleto</strong> desde la versión 4.3.0! Utiliza <pre>__construct()</pre> en su lugar. in D:\HTTPD\PROVESWP.RIPOLLET.CAT\wp-includes\functions.php on line 3718 [11-Jan-2017 13:24:04 UTC] PHP Notice: ¡El método de llamada al constructor WP_Widget en wdgtcstmzr está <strong>obsoleto</strong> desde la versión 4.3.0! Utiliza <pre>__construct()</pre> en su lugar. in D:\HTTPD\PROVESWP.RIPOLLET.CAT\wp-includes\functions.php on line 3718 [11-Jan-2017 13:24:04 UTC] PHP Strict Standards: Redefining already defined constructor for class AppointmentsGcal in D:\HTTPD\PROVESWP.RIPOLLET.CAT\wp-content\plugins\appointments\includes\class.gcal.php on line 26 [11-Jan-2017 13:24:05 UTC] PHP Notice: Undefined variable: header_image in D:\HTTPD\PROVESWP.RIPOLLET.CAT\wp-content\themes\twentyeleven\header.php on line 86Thanks again!
Hi again!
I’ve checked the issue in a clean WP installation over a free-host and after setting the preferences as I like the problem arrived.My settings are:
– Create 2 users (morning and afternoon)
– Create 1 service (Capacity=0, Duration=30, Price=0, DescPage=None)
– Assign the 2 users to the unique service
– Set the working hours as follow:
– Disable all days for “No specific provider”
– Enable Monday-Friday 8am-1pm for morning user
– Enable Monday-Friday 4pm-8pm for afternoon user
– Create a page with the shortcodes as follow:[app_schedule] [app_pagination] [app_login] [app_confirmation]I load the page and all the calendar is greyed/disabled.
If I delete one of the two providers the calendar is rendered well and the exceptions set are rendered also well. But when I re-assign the second provider it is disabled all again.Is that a bug or a missconfiguration?
Thanks a lot!
Hello abuiza,
– Disable all days for “No specific provider”
I load the page and all the calendar is greyed/disabled.Calendar is grayed because working hours for non specific provider have to be set like for all the providers – so start and end hour have to cover hours of providers.
I repeated steps you provide (except setting disabling hours for non specific providers) and exceptional days and working hours for providers are working correctly.
Can you check on your fresh installation with changed hours for non specific provider?kind regards,
KasiaHi Kasia, thanks for your support.
I think is not problem with default working hours named as “No specific provider”.
I am sure it is when a service is attended by 2 (or more) providers.
Let me explain.With “disabled” working hours for “No specific provider”:
– If I have a service (calendar) attended for 1 unique provider all works fine.
– If I add a second provider to it, all renders greyed.I discovered yesterday so I have configured my shortcodes pages the calendar appears grey so it is awaiting for a previous provicer selection.
If I add the sortcode [app_service_providers] like this:
[app_service_providers] [app_schedule] [app_pagination] [app_login] [app_confirmation]The calendar renders well when I make a dropdown selection but is not possible to select all the providers by default.
I would like to show the service whole week with all enabled hours instead of filtering by provider.Is it possible?
Thanks a lot!
-
This reply was modified 9 years, 3 months ago by
ABuiza.
Hello abuiza,
I would like to show the service whole week with all enabled hours instead of filtering by provider.
Is it possible?
Yes, this is possible but you have to set working hours for non specific provider so that they fit the same hours of providers.
The you will have calendar available from the start.
When you dont specify service provider when booking appointment then there booking done for “any” service provider. But to do that, hours have to be available for non specific provider.kind regards,
KasiaYes Kasia, I tested as you say but I have a provider for morning hours and another for afternoon. The exception days are different morning/afternoon. If I set an exception working day for “No specific provider” it greys the whole day but if i set a exception working day for the morning or afternoon provider (even two providers) the hours still renders available so the “No specific provider” is enabled.
Do you know what i’m trying to explain?
I am thinking to solve the situation rendering two calendar for the two providers on the same page, like this:
[app_schedule worker="2"][app_schedule worker="3" title="" logged=""] [app_pagination] [app_login] [app_confirmation]It works having “No specific provider” disabled.
But, is there any solution to make all providers availability on one single calendar?Hello abuiza,
I’m very sorry for delay on my side!
I think we have some misunderstanding here. In that post you wrote
– Set the working hours as follow:
– Disable all days for “No specific provider”
(..)
I load the page and all the calendar is greyed/disabled.In my further posts I was referring to working hours not the exceptional days like you are trying
If I set an exception working day for “No specific provider” it greys the whole day
Exceptional days should be for provider.
if i set a exception working day for the morning or afternoon provider (even two providers) the hours still renders available so the “No specific provider” is enabled.
I’m not able to replicate this issue – on my site it works correctly. I would like to take a closer look on your site.
Could you please contact us on contact [at] wpmudev.org and in subject line add ATTN: Kasia Swiderska – and provide link to that thread.kind regards,
KasiaThank you for using Appointments. I am going to mark this topic resolved because it was moved to email. If this issue was not resolved we can reopen it. Thanks again!
-
This reply was modified 9 years, 3 months ago by
The topic ‘Exceptions for specific providers not working’ is closed to new replies.