WC Fields Factory Plugin minDate

I'm using this plugin called WC Fields Factory. I have a datePicker on my "Single product" page on woocommerce so people can book in. I am trying to disable 48 hours (minDate:2) but I can't seem to make it work. I've tried so many examples, does anyone know how to make this work?

Example: If i want to book something now (10/03/2018), the earliest I can book is 12/03/2018.

1 answer

  • answered 2018-03-09 13:20 Eazy

    After going back and forward I finally figured it out.

    WC Fields Factory File Location: wc-fields-factory/includes/wcff-builder.php


    if ("past" == $_field["disable_date"]) {
                                echo ",minDate: new Date()";
    if ("past" == $_field["disable_date"]) {
                                echo ",minDate: 2";