Title: Min Date is Missing
Last modified: February 17, 2022

---

# Min Date is Missing

 *  Resolved [karlotito](https://wordpress.org/support/users/karlotito/)
 * (@karlotito)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/min-date-is-missing/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmin-date-is-missing%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [N-Media](https://wordpress.org/support/users/nmedia/)
 * (@nmedia)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/min-date-is-missing/#post-15375323)
 * Hi,
 * please check to disable paste dates, it will disable all paste dates.
 *  [1stop](https://wordpress.org/support/users/1stop/)
 * (@1stop)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/min-date-is-missing/#post-15376451)
 * 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.
 *  [khaikhidmah](https://wordpress.org/support/users/khaikhidmah/)
 * (@khaikhidmah)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/min-date-is-missing/#post-15377625)
 * Yes Mr Najeeb, the minDate is very helpful indeed.
 *  [N-Media](https://wordpress.org/support/users/nmedia/)
 * (@nmedia)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/min-date-is-missing/#post-15378054)
 * 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.
 *  [1stop](https://wordpress.org/support/users/1stop/)
 * (@1stop)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/min-date-is-missing/#post-15380943)
 * 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.`
 *  [brozra](https://wordpress.org/support/users/brozra/)
 * (@brozra)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/min-date-is-missing/#post-15386865)
 * 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](https://wordpress.org/support/users/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](https://api.jqueryui.com/datepicker/#option-defaultDate)
 *  [N-Media](https://wordpress.org/support/users/nmedia/)
 * (@nmedia)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/min-date-is-missing/#post-15386970)
 * Hi there,
 * [@brozra](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/woocommerce-product-addon/assets/icon-256x256.gif?rev=3186763)
 * [PPOM - Product Addons & Custom Fields for WooCommerce](https://wordpress.org/plugins/woocommerce-product-addon/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-product-addon/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-product-addon/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-product-addon/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-product-addon/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-product-addon/reviews/)

## Tags

 * [PPOM](https://wordpress.org/support/topic-tag/ppom/)

 * 7 replies
 * 5 participants
 * Last reply from: [N-Media](https://wordpress.org/support/users/nmedia/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/min-date-is-missing/#post-15386970)
 * Status: resolved