• Resolved karlotito

    (@karlotito)


    Hi the minimum date was been replaced by max date. Can you bring back the setting of minimum date on the input date?

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi,

    please check to disable paste dates, it will disable all paste dates.

    Disabling past dates does not do the same thing.I have a large Boston bakery and we do pickup only, no delivery. The customer must choose the pickup date and each item varies in when it’s available for pickup. Some are ready in 1-2 days others 4 or 7 days. This was done with minDate +2d but you can’t just disable past dates, it’s not yesterday i’m concerned about. I’ve had to shut the site down for a week to try and fix this. DateRange has minDate but it’s not the same field. I don’t want a range for pickup. Their food will spoil. Please put this back. I need my site on. We’re losing thousands every day.

    Yes Mr Najeeb, the minDate is very helpful indeed.

    Hi Gentles,

    yes you are right, we have realized it and therefore we just added it back and are compatible with disabled past dates as well. This is added in version 24.4 (next) and will be released soon.

    Thanks so much for using PPOM and feedback.

    It’s not just the past dates that’s broken, the ability to block certain future dates does not work. You do that in minDate by adding +2d (two days from now) as an example. You can do D = days, M = months or Y = Years. I need days and it’s worked since I’ve installed this plugin a few years back. Suddenly it stopped.

    The customer must choose a pickup date. This was done with minDate +2d or any other amount of days (+6d) but you can’t just disable past dates, it’s not yesterday I’m concerned about. My site is still down. DateRange has minDate but it doesn’t work like the “date” field. I don’t want a range for pickup. Their food will spoil if they are given two weeks to pick it up, which still doesn’t include the 1-2 days others 4 or 7 days that it takes to prepare the baked goods. Please put this back. I need my site on. We’re losing thousands every day.`

    If anyone wants to update their site with the minDate as a temporary fix without having to rollback PPOM to a different version, as I have for a client, then add this code in woocommerce-product-addon/js/ppom.inputs.js at line 145 just below the if (input.no_weekends === 'on') { ... } if statement:

    
    if( input.default_value.trim().length > 0){
         var min_date = input.default_value.trim();
         InputSelector.datepicker('option', 'minDate', min_date);
    }
    

    Then use the “Default Date” field in your PPOM meta group to add the min date back into the fold. I prefer the relative date (e.g. +10d or +10 for days).

    /* ===================== */
    I have no idea why @nmedia changed minDate to defaultDate. It isn’t even being used in the JavaScript code to generate the jQuery date field. Also, the example shown in the PPOM meta group doesn’t show the full usage of defaultDate and has incorrect information as well. defaultDate can be a specified date (2022-02-21) or a relative date (+1m +7d). A date format, as shown in the PPOM meta editor of YYYY-MM-DD, won’t work for the defaultDate option.

    https://api.jqueryui.com/datepicker/#option-defaultDate

    Hi there,

    @brozra thanks for the input, we have updated the script, and will be released soon.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Min Date is Missing’ is closed to new replies.