Title: Date Picker and Time Picker JavaScript Loading
Last modified: October 21, 2021

---

# Date Picker and Time Picker JavaScript Loading

 *  Resolved [Daniel Chase](https://wordpress.org/support/users/riseofweb/)
 * (@riseofweb)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/date-picker-and-time-picker-javascript-loading/)
 * Thank you for spending the time to develop this useful plugin!
 * In the plugin, you have the option to not load the CSS of the date picker and
   time picker. However, you don’t have the option to not load the JavaScript files.
 * I have the CSS disabled for both of those and that is great! But why isn’t there
   an option to not load its JavaScript as well?

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

 *  Plugin Support [oluisrael](https://wordpress.org/support/users/oluisrael/)
 * (@oluisrael)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/date-picker-and-time-picker-javascript-loading/#post-15027925)
 * Hello [@riseofweb](https://wordpress.org/support/users/riseofweb/), thank you
   for using our plugin.
 * Just for the sake of clarification, can you let me know the option you are referring
   to? You can share screenshots with me.
 *  Thread Starter [Daniel Chase](https://wordpress.org/support/users/riseofweb/)
 * (@riseofweb)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/date-picker-and-time-picker-javascript-loading/#post-15029421)
 * Here is a local path of the settings page where these settings are located:
    /
   wp-admin/admin.php?page=wc-settings&tab=alg_wc_pif The options I am referring
   to are “Load Timepicker Style” and “Load Datepicker Style.”
 * A screenshot can be viewed here:
    [https://drive.google.com/file/d/1vEG9KeHV36kxxQlESU7iqKw24GEdqqP2/view?usp=sharing](https://drive.google.com/file/d/1vEG9KeHV36kxxQlESU7iqKw24GEdqqP2/view?usp=sharing)
 * Ideally, users would want options to disable the unused JavaScript as well.
 *  Plugin Support [oluisrael](https://wordpress.org/support/users/oluisrael/)
 * (@oluisrael)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/date-picker-and-time-picker-javascript-loading/#post-15056331)
 * [@riseofweb](https://wordpress.org/support/users/riseofweb/), my apologies for
   the delay in getting back to you on this. That option is for JavaScript as well.
   I’d also like to point out that we use JavaScript to show the pricing tables.
 *  Thread Starter [Daniel Chase](https://wordpress.org/support/users/riseofweb/)
 * (@riseofweb)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/date-picker-and-time-picker-javascript-loading/#post-15056439)
 * I have the options “Load Timepicker Style” and “Load Datepicker Style” unchecked
   in the admin.
 * Viewing the page source (HTML), I can see that the javascript is still loading
   for the time and date pickers.
 *     ```
       <script type='text/javascript' src='.../wp-content/plugins/product-input-fields-for-woocommerce/includes/js/alg-datepicker.js?ver=1.3.1' id='alg-datepicker-js'></script>
       <script type='text/javascript' src='.../wp-content/plugins/product-input-fields-for-woocommerce/includes/js/alg-weekpicker.js?ver=1.3.1' id='alg-weekpicker-js'></script>
       <script type='text/javascript' src='.../wp-content/plugins/product-input-fields-for-woocommerce/includes/js/jquery.timepicker.min.js?ver=1.3.1' id='jquery-ui-timepicker-js'></script>
       <script type='text/javascript' src='.../wp-content/plugins/product-input-fields-for-woocommerce/includes/js/alg-timepicker.js?ver=1.3.1' id='alg-timepicker-js'></script>
       <script type='text/javascript' src='.../wp-content/plugins/product-input-fields-for-woocommerce/includes/js/alg-wc-product-input-fields.js?ver=1.3.1' id='alg-wc-product-input-fields-js'></script>
       ```
   
 *  Plugin Support [oluisrael](https://wordpress.org/support/users/oluisrael/)
 * (@oluisrael)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/date-picker-and-time-picker-javascript-loading/#post-15057370)
 * [@riseofweb](https://wordpress.org/support/users/riseofweb/), that’s strange.
   The script shouldn’t be present if the option is unchecked and he is not using
   time picker, date picker, or week picker. So can you confirm if you’re not using
   either the date picker, time picker, or week picker?
 *  Thread Starter [Daniel Chase](https://wordpress.org/support/users/riseofweb/)
 * (@riseofweb)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/date-picker-and-time-picker-javascript-loading/#post-15059133)
 * Oluisrael,
 * I am using 1 input field and it is plain text.
 * Thanks.
 *  Plugin Support [oluisrael](https://wordpress.org/support/users/oluisrael/)
 * (@oluisrael)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/date-picker-and-time-picker-javascript-loading/#post-15081877)
 * Hello [@riseofweb](https://wordpress.org/support/users/riseofweb/), this is to
   let you know that we’re already fixing this issue you pointed out. I’ll share
   the solution with you once it is ready.
    Kindly bear with us.
 *  Thread Starter [Daniel Chase](https://wordpress.org/support/users/riseofweb/)
 * (@riseofweb)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/date-picker-and-time-picker-javascript-loading/#post-15082310)
 * Thanks.
 *  Plugin Support [oluisrael](https://wordpress.org/support/users/oluisrael/)
 * (@oluisrael)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/date-picker-and-time-picker-javascript-loading/#post-15083717)
 * Hello [@riseofweb](https://wordpress.org/support/users/riseofweb/), the patch
   for this is ready, and you can download the patch file from here [https://www.dropbox.com/s/tyigjn7s6ptmdnx/class-alg-wc-pif-core.php?dl=0](https://www.dropbox.com/s/tyigjn7s6ptmdnx/class-alg-wc-pif-core.php?dl=0).
   
   File name: _class-alg-wc-pif-core_ File path: _wp-content\plugins\product-input-
   fields-for-woocommerce\includes_
 *  Thread Starter [Daniel Chase](https://wordpress.org/support/users/riseofweb/)
 * (@riseofweb)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/date-picker-and-time-picker-javascript-loading/#post-15085798)
 * I have used your file and it fixes the issue. Thank you, [@oluisrael](https://wordpress.org/support/users/oluisrael/).
 *  Plugin Support [oluisrael](https://wordpress.org/support/users/oluisrael/)
 * (@oluisrael)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/date-picker-and-time-picker-javascript-loading/#post-15086601)
 * [@riseofweb](https://wordpress.org/support/users/riseofweb/) Thank you for the
   feedback. I’m happy I could be of help. I’ll proceed to mark this thread as resolved.

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

The topic ‘Date Picker and Time Picker JavaScript Loading’ is closed to new replies.

 * ![](https://ps.w.org/product-input-fields-for-woocommerce/assets/icon-256x256.
   png?rev=2717446)
 * [Product Input Fields for WooCommerce](https://wordpress.org/plugins/product-input-fields-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/product-input-fields-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/product-input-fields-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/product-input-fields-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/product-input-fields-for-woocommerce/reviews/)

## Tags

 * [date picker](https://wordpress.org/support/topic-tag/date-picker/)
 * [Time Picker](https://wordpress.org/support/topic-tag/time-picker/)

 * 11 replies
 * 2 participants
 * Last reply from: [oluisrael](https://wordpress.org/support/users/oluisrael/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/date-picker-and-time-picker-javascript-loading/#post-15086601)
 * Status: resolved