Add a month and year dropdown to the DatePicker Field in WooCommerce Checkout Manager

You can extend the behaviour of the default DatePicker Checkout Field in WooCommerce Checkout Manager by hooking into our exposed WordPress Filters. In the below example we add a year and month dropdown to the DatePicker Checkout Field.

Add the following PHP snippets to your current WordPress Theme’s functions.php file:

Billing Section

View Code

Shipping Section

View Code

Additional Section

View Code

2 thoughts on “Add a month and year dropdown to the DatePicker Field in WooCommerce Checkout Manager

  1. thank you . works great!

    btw during checkout I’m getting blocked script due to http call to the datepicker script rather than https:

    curl “http://www.pink-perfect.com/wp-content/plugins/woocommerce-checkout-manager/includes/pickers/di18n/jquery.ui.datepicker-en.js?ver=4.6.1&nocache=1” –compressed

    where can I make the change to the URL to use https?

    thanks
    Simon

    • Hi Simon, I’ll do some digging on this and respond in detail. We should be fetching the https:// version when is_ssl() is detected

Leave a Comment

Before you comment - Do you have a support request? If so, this is not the right place to post it. Please submit support requests for Premium Plugins on the Support page and in the community Support Forums for free Plugins.

Your email address will not be published. Required fields are marked *