Allowing customer to extend appointment

Hello,

I am looking to allow customers to change the duration of a booking and for the price to reflect their duration requirement.

We have a minimum booking requirement of 2 hours, however, we need the customer to be able to book 3 hours, 4 hours etc up to a maximum of 8 hours.

Is this possible through Appointments+?

Thanks for your help.
James

  • Ash
    • WordPress Hacker

    Hello @James

    Welcome to WPMU community!

    I hope you are well today and thanks for asking the question.

    Unfortunately, the users can't set/extend the duration. The duration of an appointment is always fixed, that is called service time. The booking time is calculated based on your settings, service time and working hours. So, there is no way for users to select the service duration, I am afraid.

    Cheers
    Ash

  • James Shead
    • WPMU DEV Initiate

    Hi Ash,

    I've found this in the FAQ's within the Appointments+ plugin:

    "I have a time base of 10 minutes. I have services up to 480 minutes. How can I achieve this?"
    The following example lets you select services with durations up to 48*10=480 minutes. Add these codes inside functions.php:
    function increase_service_selections( $n ){
    return 48;
    }
    add_filter( 'app_selectable_durations', 'increase_service_selections' );

    Would this work?
    Kind Regards,
    James

  • Ash
    • WordPress Hacker

    Hello @James Shead

    Would this work?

    I am afraid, no :slight_frown:

    The above code allows your set an additional duration time that you can select from Appointments > Settings > Services > Duration.

    There is no way for users to select or expand duration of a service.

    Cheers
    Ash

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.