Datepicker – Bookings with 24hrs. in advance.

Home Forums Quform WordPress Datepicker – Bookings with 24hrs. in advance.

This topic is: not resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #14723
    atrfede
    Participant

    Hi there.

    I´m using Quform as a basic restaurant table booking form.

    Bookings need to be confirmed by telephone, and this might take time, so we want to set a minimum of 24hrs. from the booking time. For eg. (If I perform the booking today Monday 20/3 at 15.35, the first ‘bookable’ date should be Tuesday 21 -nevermind the time-)

    I guess we can achieve this by setting the current time 24hrs. in advance using the code:


    function mytheme_date_today()
    {
    $now = current_time('timestamp');

    return array(
    'day' => date('j', $now),
    'month' => date('n', $now),
    'year' => date('Y', $now)
    );
    }
    add_filter('iphorm_element_value_today', 'mytheme_date_today');

    …but I don´t know how to do it.

    Can you help?

    Highly appreciated.

    #14741
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy