Title: Datepicker Override
Last modified: August 12, 2020

---

# Datepicker Override

 *  Resolved [nurzki](https://wordpress.org/support/users/nurzki/)
 * (@nurzki)
 * [6 years ago](https://wordpress.org/support/topic/datepicker-override/)
 * Is it possible to pass url parameters overriding the datepicker’s checkin and
   checkout?
 * like in example [http://www.mywebsite.com?checkin=20200815&checkout=20200818](http://www.mywebsite.com?checkin=20200815&checkout=20200818)
 * It would be useful for customization if ever a user would use a different datepicker
   or adding search filter like room categories (?room_cat=19)

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

 *  Plugin Author [benitolopez](https://wordpress.org/support/users/benitolopez/)
 * (@benitolopez)
 * [6 years ago](https://wordpress.org/support/topic/datepicker-override/#post-13243162)
 * Hello,
 * The easiest way is override the datepicker template (wp-hotelier/templates/global/
   datepicker.php) copying it to yourtheme/hotelier/global/datepicker.php.
 * Then change the method to “get” and the action URL to the URL you need here:
   
   [https://github.com/wp-hotelier/wp-hotelier/blob/master/templates/global/datepicker.php#L21](https://github.com/wp-hotelier/wp-hotelier/blob/master/templates/global/datepicker.php#L21)
 * It is something you need to integrate yourself, there’s not a ready to use solution.
 * Best Regards,
    Benito
 *  Thread Starter [nurzki](https://wordpress.org/support/users/nurzki/)
 * (@nurzki)
 * [6 years ago](https://wordpress.org/support/topic/datepicker-override/#post-13247263)
 * Hello,
 * Thanks for the tip it works.
 * Also edited a core file in wp-hotelier/includes/class-htl-form-functions.php 
   at line 325 /*Process the datepicker form*/ changing $_POST to $_GET.

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

The topic ‘Datepicker Override’ is closed to new replies.

 * ![](https://ps.w.org/wp-hotelier/assets/icon-256x256.png?rev=1680801)
 * [WP Hotelier](https://wordpress.org/plugins/wp-hotelier/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-hotelier/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-hotelier/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-hotelier/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-hotelier/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-hotelier/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [nurzki](https://wordpress.org/support/users/nurzki/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/datepicker-override/#post-13247263)
 * Status: resolved