Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #715191

    Hi there,

    On my restaurant site, I’ve managed to disable allowing a user to select passed months using monthRang c:c+10

    Can I do the same for dates? Currently a user can still select old day dates when making reservations. For example, within the date range, the user can select 1st Nov 2016. I was wondering whether it’s possible to disable selecting expired dates.

    Thank you.

    #716079

    Hey Jon,

    Please copy unmodified enfold/framework/php/class-form-generator.php file and paste it inside enfold-child folder and find following at the top and remove it (please do not remove PHP opening tag)

    if (  ! defined( 'AVIA_FW' ) ) exit( 'No direct script access allowed' );

    and then add following code to Functions.php file of your child theme

    require( 'class-form-generator.php' );

    Then open class-form-generator.php file in your child theme and find

    echo 'jQuery(document).ready(function(){ jQuery(".avia_datepicker").datepicker({

    and add following code right below that line

    minDate: 0,

    Best regards,
    Yigit

    #716179

    Hi Yigit,

    All I can say is…. you are a certified genius and your continued support in the forum and for my previous queries have always been fantastic and spot on! Thank you very much for your superb help and I can’t thank you enough!

    #716182

    Hi!

    You are welcome! We are always happy to help :)

    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Reservation Form disable selecting old dates’ is closed to new replies.