Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter sarbel

    (@sarbel)

    guys any response please?

    Hi sarbel, thanks for your patience, it looks like a simple JavaScript change will allow this. I’ll play with this now and update your topic ??

    https://jqueryui.com/datepicker/#dropdown-month-year

    Hi sarbel, looking at the code I’ll need to make a change exposing a WordPress Action for each Section (e.g. Billing, Shipping, Additional) so you can add a PHP snippet to your Theme’s functions.php file which will override our Plugin. I’ve made this change and it will be included in the next minor Plugin update going out this afternoon.

    If there’s enough demand for this feature to be made default I can add a UI option to control this but for now a WordPress Action is an interim solution.

    Here’s the PHP snippet to add to your WordPress Theme’s functions.php file when the 4.0.8 Plugin update is released, replace ‘billing’ with ‘shipping’ or ‘additional’ depending on the Section your DatePicker field is on:

    function custom_wooccm_js_datepicker_billing_args() {

    echo ‘changeYear: true
    ‘;

    }
    add_action( ‘wooccm_js_datepicker_billing_args’, ‘custom_wooccm_js_datepicker_billing_args’ );

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘add year dropdown list to datepicker’ is closed to new replies.