Want to use Appointments + for a day rental - it only shows hours as duration - please help.

I posted a Q - though not sure it went through.

I am using Appointments+ and want to rent a product by the day. The plugin only lists Hours as a duration. Can I change that to by the day? or can I remove it from the post when listing to clients?

  • Jack Kitterhing
    • Code Norris

    Hi there @scott

    I hope you are well today and thanks for your question.

    I'm afraid appointments+ currently only handles hours and not day/days, you could hide the time of the appointment if this would help?

    But your other clients could still book within the timebase defined, is this for say daily car rentals for example?

    Thank you!

    Kind Regards
    Jack

  • scott
    • New Recruit

    That's exactly it. It's a desk for a day scenario. I set the service 'duration' to 480 hours, ie and 8 hour day.

    I could make the Capacity 1, and have each desk be a new 'Service' for an 8 hour day.

    Do you think that would work? any other suggestions?

  • scott
    • New Recruit

    Can I use something like this function - and if so, where do I ad it?

    function convert_to_hour( $text, $duration ) {
    if ( $duration < 60 ) return $text;
    $hours = floor($duration/60);
    if ( $hours > 1 ) $hour_text = ' hours ';
    else $hour_text = ' hour ';
    $mins = $duration - $hours *60;
    if ( $mins ) $min_text = $mins . ' minutes';
    else $min_text = '';
    return $hours . $hour_text . $min_text;
    }
    add_filter('app_confirmation_lasts', 'convert_to_hour', 10, 2);

  • Jack Kitterhing
    • Code Norris

    Hi there @scott

    I hope you are well today.

    I don't believe that the function will work for what you require.

    On the 480 hour setup, what box would be the 480 part in the appointments+ settings?

    As it can't be the time base or duration, as 480 hours is months? Not sure if that was a typo? :slight_smile:

    Thank you!

    Kind Regards
    Jack.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.