Support » Plugin: Appointment Hour Booking - WordPress Booking Plugin » Add end hour to booking slots

  • Resolved andreasTypo

    (@andreastypo)


    Hi,

    I thought it’s a bit confusing that the slots don’t have an end time.

    In the fields-public js file “35_fbuilder.fapp.js” there’s a string that displays the available slots.
    Maybe it’s an idea to add a small piece to the output

    - "+formattime(st+duration,me.militaryTime)+"

    Changing this

    <div><a href=\"\" h1=\""+Math.floor((st)/60)+"\" m1=\""+((st)%60)+"\" h2=\""+Math.floor((st+duration)/60)+"\" m2=\""+((st+duration)%60)+"\">"+formattime(st,me.militaryTime)+"</a></div>

    to this

    <div><a href=\"\" h1=\""+Math.floor((st)/60)+"\" m1=\""+((st)%60)+"\" h2=\""+Math.floor((st+duration)/60)+"\" m2=\""+((st+duration)%60)+"\">"+formattime(st,me.militaryTime)+" - "+formattime(st+duration,me.militaryTime)+"</a></div>

    Your thoughts?

    Regards,
    Andreas

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add end hour to booking slots’ is closed to new replies.