Confirming appointments resets provider schedules

Greetings,

I’m using appointments+ and buddypress to schedule online lessons. When a provider goes to the confirm appointments section of their buddypress profile ( in members/[user name]/appointments/my-appointments/ ), whenever they confirm an appointment, it resets their schedule – i.e. the schedule they set in members/[user name]/appointments/appointment-settings/ is reset to available on no days at no hours. Is there a way to allow service providers to confirm appointments using their buddypress appointments page without resetting their schedules? Thanks!

  • aecnu
    • WP Unicorn

    Greetings finchman,

    Sorry to see that you are having an issue with your WordPress installation and the Appointments + plugin

    The details you give sound like a bizarre occurrence of events (no pun intended):

    whenever they confirm an appointment, it resets their schedule

    The first thing we want to do is check for errors within the page itself and see if we can isolate any issues therein.

    In Firefox or Chrome please have the page alone in the browser and use control+shift+J to get the console up and troubleshoot the page itself.

    Let me know if there are any negative results.

    Are you running any caching on the web site other then that supplied within the plugin itself?

    Are you using two completely different browsers for development and testing? i.e. Firefox for development and Chrome for testing?

    Please advise.

    Cheers, Joe

  • finchman
    • Flash Drive

    Found a very very hacked together solution – whenever someone tries to confirm an appointment there, it saves *all* of the profile data, and for whatever reason, if you’re confirming an appointment, and you obviously haven’t changed yoru working hours, it resets all the working hours because it all uses the same method in appointments.php to do so. To change this I created a new method, that had all of the abilities to confirm appointments, but with the functionality to update schedule times taken out.

    the method is

    $this->save_profile( $user_id );

    on line 4326

    So the new method I created I called

    $this->save_profile_finch_app_conf( $user_id ) ;

    And got it to fire only when a user confirms an appointment using the following by checking to see the URL of where the profile update request came from – the url for confirming appointments has both “members” and “my-appointments” in it, so if both are in the URL, then it’s only confirming appointments.

    $furl = $_POST;

    $postmem = strpos( $furl, ‘members’:wink:;

    $postapp = strpos( $furl, ‘my-appointments’:wink:;

    if( $postmem != FALSE && $postapp != FALSE ) {

    $this->save_profile_finch_app_conf( $user_id ) ;

    }

    else {

    $this->save_profile( $user_id );

    }

    I *think* the fact that the same function was taking care of both tasks is the reason it was rescheduling every time, but I could be wrong – any developers ever come across this problem?

  • aecnu
    • WP Unicorn

    Greetings finchman,

    We have not heard back from you as to the status of this issue.

    If you are still having an issue please let us know so that we may try to get you fixed up as soon as possible by choosing to check mark this ticket as unresolved below and posting any new errors or symptoms you are noticing.

    This action will also bring your ticket up front back in plain view again within the ticket system.

    Thank you for being a WPMU DEV Community Member!

    Cheers, Joe

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.